Prev: Command Button not working
Next: Closing Balance figure to be carried as Opening Balance in a new record
From: Linda on 12 Feb 2010 15:02 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 linda.l.neils(a)census.gov. I am really in need of getting this to work soon!!!
From: PieterLinden via AccessMonster.com on 18 Feb 2010 02:26
Linda wrote: >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 >linda.l.neils(a)census.gov. 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... -- Message posted via AccessMonster.com http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201002/1 |