I am new to VBA
I have a form that has a command button called cmdSubmit
that one click I want to connect to a Database called "NCAA"
stored at the following location "\\serv1\db\"
within the NCAA database I have a table call tblPatientLanguage
that contains two colomns "PatientID" and "Language"
I need to display the contents stored in both "PatientID" and "Language" in a msgbox
I have gotten as far as this
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = CurrentProject.Connection
Set rs = New ADODB.Recordset
Set rs = Nothing
any ideas on how to accomplish this task??
Newbie in search of knowledge
I have a form that has a command button called cmdSubmit
that one click I want to connect to a Database called "NCAA"
stored at the following location "\\serv1\db\"
within the NCAA database I have a table call tblPatientLanguage
that contains two colomns "PatientID" and "Language"
I need to display the contents stored in both "PatientID" and "Language" in a msgbox
I have gotten as far as this
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Set cn = CurrentProject.Connection
Set rs = New ADODB.Recordset
Set rs = Nothing
any ideas on how to accomplish this task??
Newbie in search of knowledge