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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

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