Derek Brown
asked on
Query filter
What is the difference between:
Like Left([Forms]![ProjectForm] ![Details] .[Form]![F ireRating] ,4) & "*" and
Like nz(Left([Forms]![ProjectFo rm]![Detai ls].[Form] ![FireRati ng],4) & "*","*")
How would I get a different result
What I would like is:
Like [Forms]![ProjectForm]![Det ails].[For m]![FireRa ting] or isnull.
What I'm trying to acheive is, filter records by the exact content of the form field unless the field is empty (Is null and "") in which case show all the records.
Like Left([Forms]![ProjectForm]
Like nz(Left([Forms]![ProjectFo
How would I get a different result
What I would like is:
Like [Forms]![ProjectForm]![Det
What I'm trying to acheive is, filter records by the exact content of the form field unless the field is empty (Is null and "") in which case show all the records.
You would want:
[Forms]![ProjectForm]![Details].[Form]![FireRating] Is Null or Left([Forms]![ProjectForm]![Details].[Form]![FireRating],4) & "*"
Jim.
ASKER
Hi Jim
I'm using access 2002 but that does not work for me I have to use
On this occasion I don't need the Left and ,4)
So finally this works. Like nz(([Forms]![ProjectForm]! [Details]! [FR]),"*")
I can't quite understand why I can't use Like [Forms]![ProjectForm]![Det ails]![FR] ) Or IsNull
Hi Als315 could not get that to work either
I'm using access 2002 but that does not work for me I have to use
On this occasion I don't need the Left and ,4)
So finally this works. Like nz(([Forms]![ProjectForm]!
I can't quite understand why I can't use Like [Forms]![ProjectForm]![Det
Hi Als315 could not get that to work either
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks Both
ASKER
Thanks Als315 Git I can see what I was doing wrong.
Thanks Jim Got it
Thanks Jim Got it
You always can add separate field to your query equal to
Isnull([Forms]![ProjectForm]![Details].[Form]![FireRating])
with OR criteria True
to your main criteria