I am converting an old Access database (2.0) to 2000.
The conversion seemed to go well.
I am having some problems with some of the forms.
The old code goes like this:
SQLString = “SELECT DISTINCTROW tblPurchaseOrderLineItems.* FROM ”
SQLString = SQLString + “tblPurchaseOrderLineItems WHERE (tblPurchaseOrderLineItems.[PO#]=”
SQLString = SQLString + Me![cmbPOGet]
SQLString = SQLString + “) AND (tblPurchaseOrderLineItems.[LineItem#]=”
SQLString = SQLString + Me![cmbLineItems]
SQLString = SQLString + “);”
The de###### tells me that the second line is bad.
When I try to make it one line – like this:
SQLString = “SELECT DISTINCTROW tblPurchaseOrderLineItems.* FROM ”
SQLString = SQLString + “tblPurchaseOrderLineItems WHERE (tblPurchaseOrderLineItems.[PO#]= SQLString + Me![cmbPOGet] = SQLString + “) AND (tblPurchaseOrderLineItems.[LineItem#]= SQLString + Me![cmbLineItems] = SQLString + “);”
The de###### says “Compile Error Expected End of statement” and it highlights the ).
I have similar circumstances in a couple of forms.
Any help will be appreciated.
Thanks,
Mark