Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Undefined Function Error 1

Status
Not open for further replies.

mkallover

Programmer
Feb 6, 2008
88
US
I have two users that test database changes for me and they're both getting an error with an MDE file that I can't replicate. The error centers around a function that I have to save a chosen option in a drop-down list as the default. When they click the button it calls a basic query:

Code:
UPDATE tblUsers SET MainQuery = Forms!frmMain!Display
WHERE UserID = Environ("Username");

This works just fine for me. However, when I send the MDE to them they both get this error:

The expression On Click you entered as the event property setting produced the following error:
Undefined function 'Environ' in expression

I use that function in several other places without any problems but I don't think I actually use it in a query. Is that is what is causing the problem?
 
Ahhh, that seems to have done the trick.

Thanks dhookom!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top