G
Guest
I have some code that inserts the username, date and file location of the
..mdb file into a table called tblUsers. This works on some pc's but not
others.
Here is the code:
DoCmd.RunSQL "INSERT INTO tblUsers ([Username],[Date],[Server]) VALUES_
(Environ('USERNAME'), now(),Application.CurrentDb.Name)"
On some pc's I get the error:
Function isn't available in expressions in query expression
Environ('USERNAME').
Does anyone know why this works on some pc's and not others? Is it becuase
the function is missing from the mda file?
Many thanks,
Martin
Runtime error 3075
..mdb file into a table called tblUsers. This works on some pc's but not
others.
Here is the code:
DoCmd.RunSQL "INSERT INTO tblUsers ([Username],[Date],[Server]) VALUES_
(Environ('USERNAME'), now(),Application.CurrentDb.Name)"
On some pc's I get the error:
Function isn't available in expressions in query expression
Environ('USERNAME').
Does anyone know why this works on some pc's and not others? Is it becuase
the function is missing from the mda file?
Many thanks,
Martin
Runtime error 3075