L
Leslie Isaacs
Hello All
What wrong with this:
Private Sub Command11_Click()
Me.Filter = "[dr_work_competed] is Null"
Me.Filter = Me.Filter & [dr_work_gp].Value =
DLookup("[tblUser]![useractualname]", "[tblUser]",
"[tblUser]![UserName]=currentuser()")
Me.FilterOn = True
End Sub
I know that the problem lies with the 2nd part of the filter, because if I
'rem' it out the 1st part works fine.
I have tried putting single/double quotes, and apostrophies, around the 2nd
part, but the line keeps going red.
I know that the DLookup expression is OK because that is used elsewhere.
Hope someone can help.
Many thanks,
Leslie Isaacs
What wrong with this:
Private Sub Command11_Click()
Me.Filter = "[dr_work_competed] is Null"
Me.Filter = Me.Filter & [dr_work_gp].Value =
DLookup("[tblUser]![useractualname]", "[tblUser]",
"[tblUser]![UserName]=currentuser()")
Me.FilterOn = True
End Sub
I know that the problem lies with the 2nd part of the filter, because if I
'rem' it out the 1st part works fine.
I have tried putting single/double quotes, and apostrophies, around the 2nd
part, but the line keeps going red.
I know that the DLookup expression is OK because that is used elsewhere.
Hope someone can help.
Many thanks,
Leslie Isaacs