Using Combo Box to Auto Fill Data

L

Linda

I have a form set up with a sub form in it. I want to have a drop down box
auto fill the fields on the main part of the entry window where the
information is not changable. The only part of the combo box that comes up
does not allow me to take information from the data I am working on. How do
I get it to do this with a subform in the form? I can get it to work on a
basic form with no subform but this isn't working. I have tried separating
the forms and it still doesn't work. Please email me at my work email
(e-mail address removed). I am really in need of getting this to work soon!!!
 
P

PieterLinden via AccessMonster.com

Linda said:
I have a form set up with a sub form in it. I want to have a drop down box
auto fill the fields on the main part of the entry window where the
information is not changable. The only part of the combo box that comes up
does not allow me to take information from the data I am working on. How do
I get it to do this with a subform in the form? I can get it to work on a
basic form with no subform but this isn't working. I have tried separating
the forms and it still doesn't work. Please email me at my work email
(e-mail address removed). I am really in need of getting this to work soon!!!

the standard way to do something like this is this... say you have one
combobox and 3 fields to display non-changeable data. Make your combobox
have at least 4 columns (one for the data to be displayed and 3 more that are
not visible (width = 0). Then you can reference the columns of the combobox
like this:

Me.txtFirstTextBox = Me.cboChooseAValue.Column(1)
Me.txtSecondTextBox = Me.cboChooseAValue.Column(2)

and so on...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top