Look-up Fields (I think!)

G

Guest

I would like to enter a customers ID number on a form and then it automatically populate the First Name and Last name fields. All of these fields are contained within one table called 'customer details' for which there is a form designed to enter the details in. There is a relational table called appointments by the customer ID field. It is from this table I wish to enter the ID number and for it to display the First Name and Last name from the Customer Details table????

Hope this makes sense? Help please................
 
K

Ken Snell

Use a combo box to select the ID. Then see The ACCESS Web for how to
populate the textboxes:
http://www.mvps.org/access/forms/frm0058.htm


--

Ken Snell
<MS ACCESS MVP>

Amanda Dale said:
I would like to enter a customers ID number on a form and then it
automatically populate the First Name and Last name fields. All of these
fields are contained within one table called 'customer details' for which
there is a form designed to enter the details in. There is a relational
table called appointments by the customer ID field. It is from this table I
wish to enter the ID number and for it to display the First Name and Last
name from the Customer Details table????
 
S

Steve Schapel

Amanda,

Make your form based on a query, which includes both your Customer
Details table and the Appointments table, joined on the Customer ID
field. That way, you have the customer names directly available for you
to include on the form, and as soon as you enter the Customer ID for the
Appointment (probably by using a combobox), the names will automatically
display. If you use this method, you should set the Enabled property to
No and the Locked property to Yes for the customer name controls.
 

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