G
Guest
I have a form in which I am scheduling speakers it called “Speaker Assignmentsâ€
I am trying to use DLookup to retrieve information from a Table called
“SpeakerInfo†I have created a unbound text box called “txtSelectSpeakerâ€.
What I want to do is enter the last name of the speaker in the unbound text
box and using after update when I tab out I want the information to be placed
in other field..
In the “SpeakerInfo†Table I have the following fields: “SpeakerName†(just
Last Name) “CityName†, “PhoneNumber†and finally “FullNameâ€. What I want
to accomplish is to be able to type in the last name of speaker and tabbing
out place the “FullName†in the field “Speaker†the “CityName†in the field
“City†and finally the “PhoneNumber†in a the field “ContactNumber†the first
line of code that was to place the FullName into the “Speaker†field is:
Me.Speaker = Nz(DLookup("[SpeakerName]", "[SpeakerInfo]", "[FullName]= " &
Me.txtSelectSpeaker), "")
This of course didn’t work. Can anyone help.
I am trying to use DLookup to retrieve information from a Table called
“SpeakerInfo†I have created a unbound text box called “txtSelectSpeakerâ€.
What I want to do is enter the last name of the speaker in the unbound text
box and using after update when I tab out I want the information to be placed
in other field..
In the “SpeakerInfo†Table I have the following fields: “SpeakerName†(just
Last Name) “CityName†, “PhoneNumber†and finally “FullNameâ€. What I want
to accomplish is to be able to type in the last name of speaker and tabbing
out place the “FullName†in the field “Speaker†the “CityName†in the field
“City†and finally the “PhoneNumber†in a the field “ContactNumber†the first
line of code that was to place the FullName into the “Speaker†field is:
Me.Speaker = Nz(DLookup("[SpeakerName]", "[SpeakerInfo]", "[FullName]= " &
Me.txtSelectSpeaker), "")
This of course didn’t work. Can anyone help.