Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query error message runtime '3071'

Status
Not open for further replies.

Bobnz

IS-IT--Management
Aug 19, 2002
116
NZ
This query works sometimes and not at other times.
When it doesnt work the error message is..
"the expression is type incorrectly or is to complex to be evaluated".


Code:
SELECT tblworksheet.jobnumber, tblworksheet.clientname, tblproducts.ProductID, tblproducts.ProductName, tblproducts.ProductDescription, tblproducts.SupplierID, tblsuppliers.SupplierName, tblsuppliers.ContactName
FROM tblworksheet, tblsuppliers INNER JOIN tblproducts ON tblsuppliers.SupplierID = tblproducts.SupplierID
WHERE (((tblworksheet.jobnumber)=[Forms]![frmworksheet]![txtjobnumber]) AND ((tblproducts.ProductID)=Eval("[Forms]![tblworksheet]![cmboven].column(0)")));

any help appreciated.

TIA

Bob
 
You've got a mix of SQL dialects there. Why don't you develop the query afresh using the QBE screen? It will give you pukka Access SQL.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top