emorris1000
Registered User.
- Local time
- Today, 12:54
- Joined
- Feb 22, 2011
- Messages
- 125
I'm adding a little duct tape to my split design and trying to maintain a simple persistent connection that opens and closes with the switchboard, and I think I've got it working but I want to make sure I'm not doing something completely moronic. I appreciate that in terms of style there are issues, but will this cause performance problems?
Public dbsOpen As Dao.Database
Private Sub Form_Load()
Dim StrDBName As String
StrDBName = "XXXXXXXXXXXXXXXXX"
Set dbsOpen = OpenDatabase(StrDBName)
End Sub
Private Sub Form_Close()
dbsOpen.close
End Sub
Public dbsOpen As Dao.Database
Private Sub Form_Load()
Dim StrDBName As String
StrDBName = "XXXXXXXXXXXXXXXXX"
Set dbsOpen = OpenDatabase(StrDBName)
End Sub
Private Sub Form_Close()
dbsOpen.close
End Sub