G
Guest
I have set up a very simple database, basically so I can learn how to do
things before I construct a more complex one.
The simple database consist of a table with the fields "First Name",
"Surname" and "Suburb". I have created a parameter query so the user is
prompted to enter a First Name, Surname and Suburb (actually, I have gone a
step further and created a form in which this information is put into, but
that isn't important to the problem I am having).
I have a few records in my table, amoung them Bill Smith Bayswater and John
Cleary Bayswater.
When I run the query and enter "Bill" into the first name box when promted
(leaving surname and suburb blank), I get the correct record. When I enter
"John", I get the correct record. If I enter "Bill" in the first name box and
"Bayswater" in the suburb box, I get the records for Bill and John. ie I am
getting the records for everyone who has a first name of Bill and everyone
who lives in Bayswater.
What I want to get are the records for everyone who has a first name of Bill
AND lives in Bayswater.
Hope this makes sense. Any help is greatly appreciated.
PS. As you can probably tell, I am new to Access, so please be gentle.
things before I construct a more complex one.
The simple database consist of a table with the fields "First Name",
"Surname" and "Suburb". I have created a parameter query so the user is
prompted to enter a First Name, Surname and Suburb (actually, I have gone a
step further and created a form in which this information is put into, but
that isn't important to the problem I am having).
I have a few records in my table, amoung them Bill Smith Bayswater and John
Cleary Bayswater.
When I run the query and enter "Bill" into the first name box when promted
(leaving surname and suburb blank), I get the correct record. When I enter
"John", I get the correct record. If I enter "Bill" in the first name box and
"Bayswater" in the suburb box, I get the records for Bill and John. ie I am
getting the records for everyone who has a first name of Bill and everyone
who lives in Bayswater.
What I want to get are the records for everyone who has a first name of Bill
AND lives in Bayswater.
Hope this makes sense. Any help is greatly appreciated.
PS. As you can probably tell, I am new to Access, so please be gentle.