Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Search for Specific Field?

Status
Not open for further replies.

Dedicated

Programmer
Dec 26, 2003
38
US
I would like to generate a command button where I can search by first and last name to pull the record up in my main form. I have (2) fields [ProviderFirstN] and [ProviderLastN]. Do I need to create a macro?

My main table is linked to the "qry Provider Main".

Thanks,

Dedicated
 
A simpler approach would be to use a lookup combo on the form.

If you are using a query behind the form, concatenate the Last and First names (call it fullname).

On the form (make sure the wizard is on), add a combo box, select the 3rd option (look up a record), add the record's primary key and the fullname field, and then follow the rest of the prompts.

Should do what you are looking for.

HTH

Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top