Hi guys
In the Main Form , I have few buttons and I am writing the following code to open the right form when a button is clicked but unfortunately the code isn't doing anything. No form is opening. I am using MS office 2010. ANy help would be much appreciated.
In the Main Form , I have few buttons and I am writing the following code to open the right form when a button is clicked but unfortunately the code isn't doing anything. No form is opening. I am using MS office 2010. ANy help would be much appreciated.
Code:
Private Sub BtnOption_Click()
DoCmd.OpenForm "Form1", acNormal, , , acFormAdd, acDialog
End Sub
Private Sub Form_Load()
'Me!Label1.Caption = "Welcome " & Environ("username") & "!"
Me!Label1.Caption = "Welcome "
End Sub
Private Sub Option1_Click()
DoCmd.OpenForm "Form1", acNormal, , , acFormAdd, acDialog
End Sub
Private Sub Option2_Click()
DoCmd.OpenForm "Form5", acNormal, , , acFormAdd, acDialog
End Sub
Private Sub Option3_Click()
DoCmd.OpenForm "Form6", acNormal, , , acFormAdd, acDialog
End Sub
Private Sub Option4_Click()
DoCmd.OpenForm "Form8", acNormal, , , acFormAdd, acDialog
End Sub