Look up fields in forms

Lauralou

New Member
Joined
Oct 11, 2004
Messages
32
Hi

I think this is fairly easy but I'm totally stumped!

I have a table with my staff info in it together with a staffID as the primary key. I have another table where I will be recording other staff related things which has a relationship set up between the staffID fields. I want a form set up so that I type in the staffID in a form (to be logged in the 2nd table) and it automatically brings up the persons name from the first table. Is there a simple way of doing this?

Thanks so much

Laura
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Hi Laura
Yes this can be done. Your form must be based on a query that includes both tables. On the form, make the staff id a combo box and untick the enable property of the name box. When you select an employee id their name will show on the form.
HTH, Andrew. :)
 
Upvote 0

Forum statistics

Threads
1,221,848
Messages
6,162,419
Members
451,764
Latest member
giannip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top