Maybe a problem in
TestMasterTbl.LabNo)=[?]))
with the "?" variable.
I had some problem when i wrote queries for SQL and Access in a dataset.
Now it's crystal reports, so i cannot be sure.