I use this code below to find record for client in client form. My problem when I run the application I get this error message.
Cannot start you application. The workgroup information file is missing or open exclusively by another user.
Dim Conn2 As ADODB.Connection
Dim Rs1 As ADODB.Recordset
Dim SQLCode As String
Set Conn2 = New ADODB.Connection
Set Rs1 = New ADODB.Recordset
Conn2.Open "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\Gasim\My Documents\New changes\Copy of Hipaa code\MC-HIPPA.mdb;Password =H1pPaCla1M;"
SQLCode = "SELECT * FROM CLIENT WHERE CLIENTID = FIRSTNAME;"
Rs1.Open SQLCode, Conn2, adOpenStatic, adLockOptimistic
' Note: do normal rs1! or rs1. stuff from now on like
Me.txtPatFirstName = Rs1!FirstName
' close it this way
Set Rs1 = Nothing
Set Conn2 = Nothing
Can some one help me.
Cannot start you application. The workgroup information file is missing or open exclusively by another user.
Dim Conn2 As ADODB.Connection
Dim Rs1 As ADODB.Recordset
Dim SQLCode As String
Set Conn2 = New ADODB.Connection
Set Rs1 = New ADODB.Recordset
Conn2.Open "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = C:\Documents and Settings\Gasim\My Documents\New changes\Copy of Hipaa code\MC-HIPPA.mdb;Password =H1pPaCla1M;"
SQLCode = "SELECT * FROM CLIENT WHERE CLIENTID = FIRSTNAME;"
Rs1.Open SQLCode, Conn2, adOpenStatic, adLockOptimistic
' Note: do normal rs1! or rs1. stuff from now on like
Me.txtPatFirstName = Rs1!FirstName
' close it this way
Set Rs1 = Nothing
Set Conn2 = Nothing
Can some one help me.