Hello, beginner here.
I want an Access database to be closed as a VB form is closed. Firstly I'm not sure how to call the procedure, I thought it would come under:
Private Sub Form_Close()
However nothing happens when I close the form, so I assume that is wrong.
Secondly, I want the Access...
Can anyone tell me why this doesn't work? I am new to VB but it seems to me that this should just work! It comes up with run time error 2486.
Private Sub Command1_Click()
Dim dbMyDB As Database
Set dbMyDB = OpenDatabase("C:\TideWeather.mdb")
DoCmd.OpenForm ("Start Sending")
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.