Carly
Active Member
- Joined
- Aug 21, 2002
- Messages
- 370
I have got a form with the following code attached to a button:
which then calls this code:
When I debug through this code, it works, hides the form & works through the rest of the code but then I run it properly, the form is always in view.
Is there anything I am doing wrong?
Code:
Private Sub btn_Stage1_Click()
If txtMonth.Value = "" Then
MsgBox ("You need to enter a month MMMYY")
txtMonth.SetFocus
Else
vMonth = txtMonth.Value
frmStages.Hide
Call Stage1
End If
End Sub
which then calls this code:
Code:
Sub Stage1()
Application.ScreenUpdating = False
.....etc
When I debug through this code, it works, hides the form & works through the rest of the code but then I run it properly, the form is always in view.
Is there anything I am doing wrong?