pl456
Registered User.
- Local time
- Today, 05:24
- Joined
- Jan 31, 2008
- Messages
- 150
I have a piece of code that builds a query passing some variable from combo boxes on a form.
Generally works fine but for some reason when I pass Like”*” it returns all of the records from that field that are not nulls, I was expecting it to list everything.
This is the code I have, any help great appreciated.
If Nz(Me!cbocust) = "" Then
strcust = "Like '*'"
Else:
strcust = "='" & Me!cbocust.Value & "'"
End If
I have a similar peice of code in the same module that works just like this but works fine.
Generally works fine but for some reason when I pass Like”*” it returns all of the records from that field that are not nulls, I was expecting it to list everything.
This is the code I have, any help great appreciated.
If Nz(Me!cbocust) = "" Then
strcust = "Like '*'"
Else:
strcust = "='" & Me!cbocust.Value & "'"
End If
I have a similar peice of code in the same module that works just like this but works fine.