What's new

Visual Basic Help

Spaghetto

Eternal Poster
Joined
Feb 23, 2017
Posts
435
Reaction
680
Points
289
Pa help po bakit not defined po
1665735104680.png
1665735098843.png

Code:
Imports System.Data.SqlClient
Module Module1
    Public cn As New SqlConnection
    Public cm As New SqlCommand
    Public dr As SqlDataReader

    Sub Connection()
        Try
            cn = New SqlConnection
            cn.ConnectionString = "Data Source=SPAGHETTO\SQLEXPRESS;Initial Catalog=BillingDB;Integrated Security=True"
        Catch ex As Exception
            MsgBox(ex.Message, vbCritical)
        End Try
    End Sub

End Module
 

Attachments

Similar threads

Back
Top