Text Box Parameter Query

stapleford

New member
Local time
Today, 11:15
Joined
Jun 13, 2012
Messages
7
Hi Everyone,

I have created a pricing database to let me price specific items for specific customers. I have created a customer and and item table independant of each other. Right now i just want to return the Customer Name and the Item Number specified.

I have made a form that has a combo box to choose your customer and then i have made a few text boxes. I would look to be able to type in the item numbers in to these text boxes.

I have a made a query that allows me to search by customer and by item, but only for the first item. Once i add in the second text box criteria the query is returned blank.

This works:
Criteria:[Forms]![Price Lookup]![Text14]

qryPrice1Customer NameItem NumberDectron000016

This doesn't work:
Criteria: [Forms]![Price Lookup]![Text14] And [Forms]![Price Lookup]!
[Text16]


If anyone could provide some insight as to why this is occuring and how i could fix it, it would be greatly appreciated.

Thank you in advance,
Andrew
 
I suspect you want Or instead of And.
 
Hi Paul,

I would like the query to ouput the all of the item numbers that were entered. For example if I decided to fill out three texts boxes with 3 different item number all for the same customer, I would like the query to output 3 lines with customer name and the corresponding item in the next column.

Thanks,
Andrew
 
Happy to help Andrew.
 

Users who are viewing this thread

Back
Top Bottom