handling 2450 error

R

rum23

Microsoft Office Access can't find the form 'frmLogin' referred to in a macro
expression or Visual Basic code.

How can I handle this error? I basically set bunch of things on the frmLogin
form, from a different form's method. And I don't want to do these settings,
if the frmLogin form is null. Want to do something like......

if (Forms.frmLogin <> Null) then
......
.......
endif

Not sure how to do this in ACCESS 2007. Can somebody please help?

Thanks a ton.
 
M

Marshall Barton

rum23 said:
Microsoft Office Access can't find the form 'frmLogin' referred to in a macro
expression or Visual Basic code.

How can I handle this error? I basically set bunch of things on the frmLogin
form, from a different form's method. And I don't want to do these settings,
if the frmLogin form is null. Want to do something like......

if (Forms.frmLogin <> Null) then
.....
......
endif

Not sure how to do this in ACCESS 2007. Can somebody please help?


This has nothing to do will Null. You need to check if the
form is open, the same as inA2003:

If CurrentProject.AllForms!frmLogin.IsLoaded Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top