DLookUp Issue

  • Thread starter floyd33 via AccessMonster.com
  • Start date
F

floyd33 via AccessMonster.com

I am trying to use a DLookUp to display a value from a table to a form.

Field to display: Phone, tblAttendee, with criteria of AttendeeType2,
tblAttendee=48
Form to display it on:frmMeeting

I need the Phone field to pull from tblAttendee, where field AttendeeType2=48
and it matches up tblAttendee.MeetingID to tblMeeting.MeetingID.

I can't figure this one out. Any help is appreciated.
 
M

Mark Andrews

Try
=Dlookup("Phone","tblAttendee","(AttendeeType2 = 48) AND (MeetingID = " &
CStr(Me.MeetingID) & ")")

HTH,
Mark
 
F

floyd33 via AccessMonster.com

I get the dreaded "#Name?" displayed.

Mark said:
Try
=Dlookup("Phone","tblAttendee","(AttendeeType2 = 48) AND (MeetingID = " &
CStr(Me.MeetingID) & ")")

HTH,
Mark
I am trying to use a DLookUp to display a value from a table to a form.
[quoted text clipped - 7 lines]
I can't figure this one out. Any help is appreciated.
 
M

Mark Andrews

is the table named "tblAttendee"?
are there fields ("phone","attendeeType2" and "MeetingID") in table
"tblAttendee?
is there a control on your form with the name "MeetingID" that holds the
meetingid from table tblMeeting
that you want to use in the lookup?

Mark


floyd33 via AccessMonster.com said:
I get the dreaded "#Name?" displayed.

Mark said:
Try
=Dlookup("Phone","tblAttendee","(AttendeeType2 = 48) AND (MeetingID = " &
CStr(Me.MeetingID) & ")")

HTH,
Mark
I am trying to use a DLookUp to display a value from a table to a form.
[quoted text clipped - 7 lines]
I can't figure this one out. Any help is appreciated.
 
F

floyd33 via AccessMonster.com

Yes to all of this.

Mark said:
is the table named "tblAttendee"?
are there fields ("phone","attendeeType2" and "MeetingID") in table
"tblAttendee?
is there a control on your form with the name "MeetingID" that holds the
meetingid from table tblMeeting
that you want to use in the lookup?

Mark
I get the dreaded "#Name?" displayed.
[quoted text clipped - 10 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top