Access 2000. I've encontered Too Few Parameters, Syntax Errors, and Type Mismatch errors on this code. Right now I have worked through the other errors and I am left with Type Mismatch and I know it relates to the syntax after the last "and" condition. I have tried many alternatives but I just can't seem to get it. I can get the conditions to work individually but not together. Any help would be very much appreciated.
Code:
Set rs = CurDB.OpenRecordset("SELECT * from UnprocessedBatchQuantityUsedSummationQuery WHERE" & _
" BatchID =" & [Forms]![ProductionForm]![ProductionSubForm1]!BatchID And ItemUsed = " & Me.ItemUsed & ")