kevinh2320
Board Regular
- Joined
- May 13, 2016
- Messages
- 61
In my Access DB I'm trying to open a form called "f-home" to page number 7 with the following code but, it doesn't seem to like the hypen in the form name. I've tried to bracket the form name and put into quotes but can't find the right method.
Private Sub import_rpt_data_Click()
DoCmd.OpenForm "f-home"
Forms!f-home.GoToPage 7
End Sub
Any suggestions?
Private Sub import_rpt_data_Click()
DoCmd.OpenForm "f-home"
Forms!f-home.GoToPage 7
End Sub
Any suggestions?