Auto populate a form with data from another table?

lorenambrose

Active Member
Joined
Sep 17, 2008
Messages
265
I have the following setup:

1. Form called "Master Details" and is linked to the "Master Library" table.

a) the table has fields for "ID", "Part Number", "Revision", "Release Date", "Description"

b) the form "Master Details" has text boxes linked to these fields

-------------------------------------------------------------------------------------------------

2. Form called "Details" and is linked to the "Software Control" table.

a) the table has fields for "ID", "Part Number", "Revision", "Release Date", "Description"

b) the form "Details" has text boxes linked to these fields

-------------------------------------------------------------------------------------------------


What I want to do is create an UNBOUND text box on the details form that when the ID of a record in the "Master Library" is entered and when a command button is clicked:

a) If the ID does not exist in the "Master Library" table a message box tells the user "No Such Record" and nothing else happens.

b) If the ID does exist in the "Master Library" table then the "Part Number", "Revision", "Release Date", "Description" information for the record in the "Master Library" table is entered into the "Part Number", "Revision", "Release Date", "Description" text boxes of the "Details" form.


Can someone help me with this?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,224,581
Messages
6,179,668
Members
452,936
Latest member
anamikabhargaw

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