AccessProgram
Registered User.
- Local time
- Today, 14:14
- Joined
- Dec 7, 2009
- Messages
- 68
Private Sub Form_Open(Cancel As Integer)
Dim db As DAO.Database
Dim ws As DAO.Workspace
Dim rst As DAO.Recordset
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase(CurrentProject.Path & "\container\config.accdb", False, False, "MS Access;PWD=""")
Set rst = db.OpenRecordset("confpath",dbopentable)
rst.close
Set rst = Nothing
db.close
Set db = Nothing
Set ws = Nothing
End Sub
I have code above. I dont know where is the error in it. It is not showing records on my form textboxes.
Dim db As DAO.Database
Dim ws As DAO.Workspace
Dim rst As DAO.Recordset
Set ws = DBEngine.Workspaces(0)
Set db = ws.OpenDatabase(CurrentProject.Path & "\container\config.accdb", False, False, "MS Access;PWD=""")
Set rst = db.OpenRecordset("confpath",dbopentable)
rst.close
Set rst = Nothing
db.close
Set db = Nothing
Set ws = Nothing
End Sub
I have code above. I dont know where is the error in it. It is not showing records on my form textboxes.