Automatically Update Form Fields from Combo Box Selection

nikik

New Member
Joined
Apr 7, 2011
Messages
21
I am using Access 2007 and would like my subform to fill in the remaining text boxes in my form once I choose an item from the drop down combo box. Meaning if my table has "Fred, accounting, 555-5555". In the form, I'd like to be able to choose Fred from the drop down box and his department and phone number fill in automatically.

I've tried Me!TextBoxName=Me!ComboBoxName.Column(#) to no avail.

It seems like this would be easy to do and it DOES fill in the text boxes the very first time I choose something, but then the next thing I choose, it sends the data already there back to my table and screws up all my info. Perhaps I should be using a report or filter?

Any help would be greatly appreciated - Thanks!
 
When I try to select Microsoft DOA 3.6 Object Library it says:

"Name conflicts with existing module, project or object library"

I'm not sure why the second mulitiple lookup option isn't working. Everything is going along fine and then at the end when I change my drop down selection nothing happens.
You didn't read my response carefully did you? I said -

DAO in Access 2007 IS NOT NAMED DAO. It is named:

Microsoft Office 12.0 Access Database Engine Object Library

THAT is the reference that needs to be checked in order to use DAO in Access 2007, NOT the Microsoft DAO 3.6 Object Library. You have to use the right one. So, does that make it a bit more clear?
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
OMG - I don't know why it worked, Alan, but I tried both methods again today and they're working great! Thanks so much!

Now, I'm off to try and figure out if I can have more than 1 recordset clone per form for the same table...yikes.

Thanks again and have a great weekend!
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,480
Members
452,915
Latest member
hannnahheileen

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