Keith
Registered User.
- Local time
- Today, 11:24
- Joined
- May 21, 2000
- Messages
- 129
I have the following code as the record source of a report. It is not my code and I have a lot to learn about coding.
SELECT tblInvoiceHeaders.* , tblQuoteLayout.*, qryQuoteItems.* FROM tblQuoteLayout, tblInvoiceHeaders INNER JOIN qryQuoteItems ON tblInvoiceHeaders.InvoiceHeaderNum=qryQuoteItems.InvoiceItemHeader;
I need to insert the following WHERE clause to select only InvoiceHeaders that are quotes.
WHERE tblInvoiceHeaders.Quote = True (Quote is a True/False field)
I have modified the code as follows
SELECT tblInvoiceHeaders.* , tblQuoteLayout.*, qryQuoteItems.* FROM tblQuoteLayout, tblInvoiceHeaders WHERE tblInvoiceHeaders.Quote = "True" INNER JOIN qryQuoteItems ON tblInvoiceHeaders.InvoiceHeaderNum=qryQuoteItems.InvoiceItemHeader;
When I open the report I get a message saying there is a syntax error in the select statement. I would appreciate any advice.
SELECT tblInvoiceHeaders.* , tblQuoteLayout.*, qryQuoteItems.* FROM tblQuoteLayout, tblInvoiceHeaders INNER JOIN qryQuoteItems ON tblInvoiceHeaders.InvoiceHeaderNum=qryQuoteItems.InvoiceItemHeader;
I need to insert the following WHERE clause to select only InvoiceHeaders that are quotes.
WHERE tblInvoiceHeaders.Quote = True (Quote is a True/False field)
I have modified the code as follows
SELECT tblInvoiceHeaders.* , tblQuoteLayout.*, qryQuoteItems.* FROM tblQuoteLayout, tblInvoiceHeaders WHERE tblInvoiceHeaders.Quote = "True" INNER JOIN qryQuoteItems ON tblInvoiceHeaders.InvoiceHeaderNum=qryQuoteItems.InvoiceItemHeader;
When I open the report I get a message saying there is a syntax error in the select statement. I would appreciate any advice.