D
Don
I know I am close, I just don't have the quotes in the
right spot....
I have a button in which I want to apply a form filter
the Field I want to filter is called AssignedTo. I want
to filter it based upon a variable called ITTech stored in
the database
Me.Filter = "AssignedTo=" & ITTEch
'Me.Filter = "AssigedTo = 'ITTech'"
Me.FilterOn = True
I've tried single quotes, but then doesn't that use ITTech
as literal text (which of course I don't want)
Also....
Can I filter on two fields in code easily? Say,
AssignedTo = ITTech and Status <> "Resolved" ?
Thanks in Advance for any insight. I am enjoying learning
VBA, but am beginning to realize the importance of exact
syntax.
Don
right spot....
I have a button in which I want to apply a form filter
the Field I want to filter is called AssignedTo. I want
to filter it based upon a variable called ITTech stored in
the database
Me.Filter = "AssignedTo=" & ITTEch
'Me.Filter = "AssigedTo = 'ITTech'"
Me.FilterOn = True
I've tried single quotes, but then doesn't that use ITTech
as literal text (which of course I don't want)
Also....
Can I filter on two fields in code easily? Say,
AssignedTo = ITTech and Status <> "Resolved" ?
Thanks in Advance for any insight. I am enjoying learning
VBA, but am beginning to realize the importance of exact
syntax.
Don