G
Guest
Hi. Im using Access 2002 on XP.
Can anyone help me modify the following code? Its part of a set of On Click
code associated with a forms command button and is intended to identify a set
of records where the SchoolID field has the same value as the record being
viewed on the form. I want to add an AND statement to this because the set of
records identified must also have a null value in a field called
MovedFromSchoolID, which is also in tblMentorSBTSchool.
varCheck = DLookup("[MentorID]", "[tblMentorSBTSchool]",
"[tblMentorSBTSchool].SchoolID=" & SchoolID)
Thanks in advance, JohnB
Can anyone help me modify the following code? Its part of a set of On Click
code associated with a forms command button and is intended to identify a set
of records where the SchoolID field has the same value as the record being
viewed on the form. I want to add an AND statement to this because the set of
records identified must also have a null value in a field called
MovedFromSchoolID, which is also in tblMentorSBTSchool.
varCheck = DLookup("[MentorID]", "[tblMentorSBTSchool]",
"[tblMentorSBTSchool].SchoolID=" & SchoolID)
Thanks in advance, JohnB