Looking at the site Paul gave you a link to, you'll note that your syntax
"[Username]=" & Forms! frm_SystemEntry![txt_UserName])
is only correct if Username is defined as a Number, which seems unlikely. For a Field defined as Text, the syntax would be
"[Username]='" & Forms! frm_SystemEntry![txt_UserName] & "'")
Assuming that frm_SystemEntry is the Form this code appears in, you could simply use
"[Username]='" & Me.txt_UserName & "'")
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007