June7,
Thank you so much for your reply. Your coding technique was instrumental in helping me solve the problem. It was, as I thought, in the ampersands and quotes. I was treating the DLookup function, as well as, field names in the function as a variants by ending my string and then using ampersands to add them to the string. That was all wrong as I needed to just treat it all as characters and add extra quotes so the resultant string looked like what was in the Row Source Property. So the part of the string which was WRONG was:
Code:
"WHERE (((""" & DLookup("[Credit]", "tblReferee Credit Rates", "[Level] = """ & [tblAssignments].[Level] & """ " & _
"And [Position] = """ & [tblAssignments].[Position] & """") & """) Is Null))"
and after being CORRECTED is:
Code:
"WHERE ((DLookup(""[Credit]"", ""[tblReferee Credit Rates]"", ""[Level] = """""" & [tblAssignments]![Level] & """""" " & _
"And [Position] = """""" & [tblAssignments]![Position] & """""""") Is Null))"
The the table name with spaces that was not in [] was not a problem because the table name was already in quotes for the domain part of the DLookup function but I went ahead added the brackets just to be consistant.