ghudson
Registered User.
- Local time
- Today, 14:10
- Joined
- Jun 8, 2002
- Messages
- 6,194
The Environ() function works great unless you have the Sandbox mode turned on in
Access 2003. You will need to add this public function to your Access 2003 db's if you
want to continue using the Environ() funciton...
Access 2003. You will need to add this public function to your Access 2003 db's if you
want to continue using the Environ() funciton...
Code:
'This function is used to allow the use of the Environ function in Access 2003
Public Function Environ(Expression)
On Error GoTo Err_Environ
Environ = VBA.Environ(Expression)
Exit_Environ:
Exit Function
Err_Environ:
MsgBox Err.Number & " - " & Err.Description
Resume Exit_Environ
End Function