Lookup

chef

Well-known Member
Joined
Jul 10, 2002
Messages
610
Office Version
  1. 365
  2. 2016
I am hoping someone can help....

I have table called tblstaff which has details of paynumber,forename,surname,department,location.

I want to type in a paynumber in a form which would then lookup tblstaff and automatically populate each field with forename,surname,department and location.

Hope this makes sense and hopefully someone can point me in the right direction.

Regards
Chef
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I wonder if you are able to use a subform to display your data. Shed loads of help in the Access help file on this one, one should suit your needs.

Good luck with your project
 
Upvote 0
Maybe you'd consider a combo box with all of your available choices already loaded in rather than manually typing? If so:
-Drag-drop a combo box onto your form. When the wizard comes up, select the third selection "Find a record on my form based...". For some reason the wizard sometimes doesn't offer this option; if you need the code (it's really simple), then post back.
 
Upvote 0

Forum statistics

Threads
1,221,527
Messages
6,160,342
Members
451,638
Latest member
MyFlower

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