Error on login form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a query as the Record Source of a login form.

I placed the following code at the end of the Click Event on the submit
button:

If Me.CU.Value = "Yes" Then

MsgBox "You have Uncompleted Requests - Please review and update."

End If

I know the value of CU is Yes as it is currently visible on the form when I
open it. However, I get the error "The expression you entered refers to an
object that is closed or doesn't exit."

Where am I going wrong?

Thanks.
 
Hi Gary,

Is this the line that is actually producing the error or is there follow-up
code which creates the error.

Try the following line:

If Me.CU = -1 then .....

instead of If Me.CU.Value = "Yes"

hth
 

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

Back
Top