I am trying to create this query for my logfile to filter by UserName and it will not work. Here is the query:
I even put me.requery in the form that is attached to this code. What am I missing?
Code:
SELECT tblLog.ErrorNum, tblLog.ErrMessage, tblErrors.Description2007, tblLog.UserName, tblLog.ErrTime, tblLog.BuildNum, tblLog.CurrentSub, tblLog.CurrentControl, tblLog.Notes, tblLog.Server
FROM tblLog LEFT JOIN tblErrors ON tblLog.ErrorNum = tblErrors.ErrorID
WHERE (((tblLog.UserName)=[Forms]![frmLogFile]![cobUserName]))
ORDER BY tblLog.ErrTime;
I even put me.requery in the form that is attached to this code. What am I missing?