textbox formatting

jlabre01

Registered User.
Local time
Today, 04:01
Joined
May 26, 2008
Messages
62
Hi,
I'm having problems with the syntax on a query for a text box, i want it to check a couple values from the same table then output a 3rd value from that table, but access keeps saying there is a syntax error, please help, query is listed below:

=SELECT [Price List].Price, [Price List].ServiceID, [Price List].PriceCategoryID FROM [Price List] WHERE (([Price List].ServiceID = [Forms]![SubQuotes Subform]![ServiceID]) && ([Price List].PriceCategoryID = [Forms]![Quotes]![PriceCategoryID]));
 
Howzit

Try changing the two ampersands with "AND"

Code:
=SELECT [Price List].Price, [Price List].ServiceID, [Price List].PriceCategoryID FROM [Price List] WHERE ((([Price List].ServiceID)= [Forms]![SubQuotes Subform]![ServiceID]) AND (([Price List].PriceCategoryID)= [Forms]![Quotes]![PriceCategoryID]));
 

Users who are viewing this thread

Back
Top Bottom