By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,164 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,164 IT Pros & Developers. It's quick & easy.

Error 424 Access 2007

P: 1
VBA code in the load event to check if a form is loaded. I get error 424 on the line, but there is a form.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Load()
  2. If frmwip.IsLoaded Then
  3. MsgBox ("Make sure to enter a Sale Invoice Number")
  4. End If
  5. End Sub
frmwip is in the project window
Dec 4 '07 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 10K+
P: 12,392
The correct syntax is
Expand|Select|Wrap|Line Numbers
  1. CurrentProject.AllForms("FormName").IsLoaded
Dec 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.