When dealing with the criteria portion of a domain function (Dcount, Dlookup, etc.), you have to be cognizant of which parts are strings and which parts are variables. The criteria is essentially one big string which you can put data fields into.
Your criteria never started the string back up once it used the [TOrderNum] field. You need more quote mark after it:
"[TOrderNum] <" & [TOrderNum] & " And [PartsFID]=" & [PartsFID]
If you have any other questions could you post a new structure screenshot?
Your criteria never started the string back up once it used the [TOrderNum] field. You need more quote mark after it:
"[TOrderNum] <" & [TOrderNum] & " And [PartsFID]=" & [PartsFID]
If you have any other questions could you post a new structure screenshot?