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
Private Sub Command1_Click()
Dim dbMyDB As Database
Set dbMyDB = OpenDatabase("C:\TideWeather.mdb")
DoCmd.OpenForm ("Start Sending")
End Sub