S
Slez via AccessMonster.com
I have a form that imports data and was working fine until I added another
criteria to the WHERE clause. Originally I had:
strDetailSQL = strDetailSQL + " WHERE (((Project.JobNumber)=Forms!
frmImportNewProject!NewProject));"
I then changed to:
strItemSQL = strItemSQL + " WHERE (((Project.JobNumber)=[Forms]!
[frmImportNewProject]![NewProject]) AND ((Bid.BidStatus)="Awarded"));"
I keep getting compile errors having to do with the end of the statement. I
think it is due to the parentheses, but haven't been able to correct it by
trying different combinations. The first thing I did was remove one of the
parentheses after "Awarded", but I got the same message. When I look at how
it is laid out, it seems like it should work.
Any help is appreciated!
criteria to the WHERE clause. Originally I had:
strDetailSQL = strDetailSQL + " WHERE (((Project.JobNumber)=Forms!
frmImportNewProject!NewProject));"
I then changed to:
strItemSQL = strItemSQL + " WHERE (((Project.JobNumber)=[Forms]!
[frmImportNewProject]![NewProject]) AND ((Bid.BidStatus)="Awarded"));"
I keep getting compile errors having to do with the end of the statement. I
think it is due to the parentheses, but haven't been able to correct it by
trying different combinations. The first thing I did was remove one of the
parentheses after "Awarded", but I got the same message. When I look at how
it is laid out, it seems like it should work.
Any help is appreciated!