Hello Capricorn1,
I noticed it and tried it out, it is capturing the correct username, but everytime i run the code i get a Run-time error '13' type mismatch and it highlightes the
dateExists4wks = DCount("Winner_Name", "tblWinners_ResOps", "Winner_Name = '" & strUserName & "'" And "[Winner_Date] BETWEEN #" & dtStart & "# AND #" & dt4Weeks & "#")
When I hover over it I get a value of 0... I know there is data in the table because I put it myself and I should be getting 2 instead.
Any suggestions???
Main Topics
Browse All Topics





by: capricorn1Posted on 2009-05-20 at 09:40:56ID: 24433764
it looks good..
strFName = DLookup("UserFirstName", "tblHSGUsers_ResOps", " [UserNetworkName] = '" & fOSUserName() & "'")
'ADD this line to verify you got the correct name, remove later
msgbox strFName