Auto Fill a Form

one3nine0

Board Regular
Joined
Jul 21, 2014
Messages
127
I have two tables Customer and Notes

Customer Table has: CustomerID, Customer Name

Notes Table has: NoteID, Customer ID, Notes

There is already a 1 to many relationship based on CustomerID

I want to create a form that adds entries into the Notes table where the user can enter in the CustomerID and the Customer name will auto populate.

I originally tried to do this by having the Customer ID in the form be a combo box selecting from the customer table.
I then changed the control source of the Customer Name field to comboboxname.column(2)

This auto filled the form correctly, but it would not save that data into the Notes table.

What am I doing wrong?
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
If you have the information in the Customer Table, why would you need it in the Notes table? If you need to extract the information, you can write a query since the tables are linked.
 
Upvote 0
Yes, but when the user is entering the notes into the form, it would be nice to have validation that the customer ID used matches with the correct name.

IE I could type in customer ID 115 and "Joe Smith" fills the customer name, but i realize i mis-typed and meant to put in 1115 for "Jane Doe"

Also looking to expand my access skills as I know auto fill is possible, just not sure why this is not working and updating my table
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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