Jeffreyb723
Registered User.
- Local time
- Today, 18:48
- Joined
- Nov 20, 2013
- Messages
- 10
What I was looking to do was to make my query show everything including Nulls when there was nothing in txtCustomer and to not show nulls when there was something in there. I came up with this:
WHERE (tblCompanies.CompanyName) Like "*" & [Forms]![frmSearch]![txtCustomer] & "*" OR [Forms]![frmSearch]![txtCustomer]
However, it does exactly the opposite of what I wanted it to do and frankly it makes no sense to me. Shows everything except Nulls when txtCustomers is null and shows everything with nulls when any character is in txtCustomers.
WHERE (tblCompanies.CompanyName) Like "*" & [Forms]![frmSearch]![txtCustomer] & "*" OR [Forms]![frmSearch]![txtCustomer]
However, it does exactly the opposite of what I wanted it to do and frankly it makes no sense to me. Shows everything except Nulls when txtCustomers is null and shows everything with nulls when any character is in txtCustomers.