could some tell me what is the matter with this line of code?
INSERT INTO tblLog ( TheUser, TheReport, OpenDateTime ) " & _ " SELECT """ & fOSUserName() & """ AS TheUser, 'Report1' AS TheReport
'tbllog has the field theuser, thereport and opendatetime.
I'm trying to retrieve the UserName with which the user is logged into the network, using the function fOSUserName
I'm attempting to run this on the onopen event of report1
INSERT INTO tblLog ( TheUser, TheReport, OpenDateTime ) " & _ " SELECT """ & fOSUserName() & """ AS TheUser, 'Report1' AS TheReport
'tbllog has the field theuser, thereport and opendatetime.
I'm trying to retrieve the UserName with which the user is logged into the network, using the function fOSUserName
I'm attempting to run this on the onopen event of report1