I use 'Environ("UserName")' in several places and it has always worked well.
In Office 2007 (without Service Pack 1 yet) I can use the variable in VBA but not in a query.
i.e.
Does anyone know if this is fixed in SP1, if I need to add a reference or if it simply does not work anylonger.
Thank you
In Office 2007 (without Service Pack 1 yet) I can use the variable in VBA but not in a query.
i.e.
Code:
SELECT UCase(tbl_Job_Access.Job_No) as Job_No
FROM tbl_Job_Access
LEFT JOIN Job_Desc
ON tbl_Job_Access.Job_No = Job_Desc.Job_No
WHERE (((tbl_Job_Access.User_ID)=Environ("UserName")))
Does anyone know if this is fixed in SP1, if I need to add a reference or if it simply does not work anylonger.
Thank you