Help with Audit, Can't assign value

C

charles.kendricks

I have a form which is used to input customer data and has a control
which is set to record the current user using the CurrentUser()
function tied to the Before Insert event of the form. The same form
contain a lookup button with which I can close the form and reopen it
with an openargs that causes the form to us a dataset tied to a query
which requests the customer last name and returns matching records.
The problem is that when I click the button to look up customers I get
an error stating that "You can't assign a value to this object". In
the VBE the line that I used to assign the current user to a field in
the record is highlighted. I'm confused.
 

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