johandenver
Registered User.
- Local time
- Today, 03:40
- Joined
- May 4, 2010
- Messages
- 27
Hello!
I have a problem that someone might know the answer for:
I have a database with 4 columns (Firstname, Middlename, Lastname and UniqueID)
I'm trying to make a query that filters out only certain people by typing names in textboxes. My problem is that Middlename and UniqueID may often be NULL and the query won't work then.
If I add "Or IS NULL" to the query I get too many records back.
Example (all rows below are different people):
Firstname Middlename Lastname UniqueID
Patrick Henry 1
Patrick Henry
Patrick R Henry
Patrick Henry 2
I'd like to be able use the textboxes below and only get "Patrick Henry 1"
Firstname Textbox: Patrick
Middlename Textbox:
Lastname Textbox: Henry
UniqueID Textbox: 1
I have a problem that someone might know the answer for:
I have a database with 4 columns (Firstname, Middlename, Lastname and UniqueID)
I'm trying to make a query that filters out only certain people by typing names in textboxes. My problem is that Middlename and UniqueID may often be NULL and the query won't work then.
If I add "Or IS NULL" to the query I get too many records back.
Example (all rows below are different people):
Firstname Middlename Lastname UniqueID
Patrick Henry 1
Patrick Henry
Patrick R Henry
Patrick Henry 2
I'd like to be able use the textboxes below and only get "Patrick Henry 1"
Firstname Textbox: Patrick
Middlename Textbox:
Lastname Textbox: Henry
UniqueID Textbox: 1