I have been getting the following error:
An unhandled exception of type 'System.NullReferenceException' occurred in Sample LogIn.exe
Additional information: The database could not be found!!
my code is below
Dim strSQL As String
Dim ws As DAO.Workspace
Dim db As DAO.Database
Dim tbd As DAO.TableDef
Dim qrd As DAO.QueryDef
Try
db = ws.OpenDatabase("C:\LogIn_Samples.mdb")
Catch f As NullReferenceException
Throw New NullReferenceException("The database could not be found!!", f)
End Try
Does anyone know how to remedy this error.
An unhandled exception of type 'System.NullReferenceException' occurred in Sample LogIn.exe
Additional information: The database could not be found!!
my code is below
Dim strSQL As String
Dim ws As DAO.Workspace
Dim db As DAO.Database
Dim tbd As DAO.TableDef
Dim qrd As DAO.QueryDef
Try
db = ws.OpenDatabase("C:\LogIn_Samples.mdb")
Catch f As NullReferenceException
Throw New NullReferenceException("The database could not be found!!", f)
End Try
Does anyone know how to remedy this error.