F
floyd33 via AccessMonster.com
I am developing a query that needs to show several fields of straight data,
along with one field that needs to look up someone's name, if they fit
certain criteria.
Query
FirstName LastName Suffix MeetingID ProjectCode Faculty
Basically, this faculty person is also someone registered to this meeting,
under a different attendee type and needs to appear in the data row for each
attendee we would invite, so it would be the same name for as many people as
are invited. If I just do a formula to look up the name of the person
matching that typeID, then it will only show the faculty's name when it hits
the faculty row, which doesn't work for the user. So I thought using a
DLookUp from another query (qryConfirmedFaculty) would make sense. I am
having issues lining up the meeting ID's though and am stumped.
It should look like this:
=DLookUp("FacultyName","qryConfirmedFaculty","MeetingID=MeetingID")
but of course that isn't working because it's reading the MeetingID funky and
giving error messages. I know how to use DLookUp matching a value in the
query to a value in a form, but since this is searching a value in another
query, how do I proceed? Any help is appreciated!
along with one field that needs to look up someone's name, if they fit
certain criteria.
Query
FirstName LastName Suffix MeetingID ProjectCode Faculty
Basically, this faculty person is also someone registered to this meeting,
under a different attendee type and needs to appear in the data row for each
attendee we would invite, so it would be the same name for as many people as
are invited. If I just do a formula to look up the name of the person
matching that typeID, then it will only show the faculty's name when it hits
the faculty row, which doesn't work for the user. So I thought using a
DLookUp from another query (qryConfirmedFaculty) would make sense. I am
having issues lining up the meeting ID's though and am stumped.
It should look like this:
=DLookUp("FacultyName","qryConfirmedFaculty","MeetingID=MeetingID")
but of course that isn't working because it's reading the MeetingID funky and
giving error messages. I know how to use DLookUp matching a value in the
query to a value in a form, but since this is searching a value in another
query, how do I proceed? Any help is appreciated!