467,864 Members | 1,855 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,864 developers. It's quick & easy.

Error 424 Access 2007

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
  • viewed: 1975
1 Reply
Expert Mod 8TB
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.

Similar topics

17 posts views Thread by =?Utf-8?B?RGF2ZQ==?= | last post: by
5 posts views Thread by Jeff | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.