vernthemerciless
New member
- Local time
- Yesterday, 16:07
- Joined
- Aug 21, 2008
- Messages
- 3
Hi
I'm a newbie to VBA and i'm trying to get a msg box to pop up when you open a form in my database asking if you want to generate this weeks work, which is held in a query. The msgbox pops up ok but when you click enter it just does nothing. Can someone help me please? Here is the code...
Private Sub Form_Open(Cancel As Integer)
MsgBox "Is it Monday today? If so do you need to get this week's list of follow-up work?", vbYesNo, "Good Morning Paul and Clem"
If Response = vbYes Then
DoCmd.OpenQuery "THIS_WEEK"
Else
End Sub
End If
End Sub
Thanks
V
I'm a newbie to VBA and i'm trying to get a msg box to pop up when you open a form in my database asking if you want to generate this weeks work, which is held in a query. The msgbox pops up ok but when you click enter it just does nothing. Can someone help me please? Here is the code...
Private Sub Form_Open(Cancel As Integer)
MsgBox "Is it Monday today? If so do you need to get this week's list of follow-up work?", vbYesNo, "Good Morning Paul and Clem"
If Response = vbYes Then
DoCmd.OpenQuery "THIS_WEEK"
Else
End Sub
End If
End Sub
Thanks
V