A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Using Combo Box to Auto Fill Data



 
 
Thread Tools Display Modes
  #1  
Old February 12th, 2010, 09:02 PM posted to microsoft.public.access.forms
Linda
external usenet poster
 
Posts: 661
Default Using Combo Box to Auto Fill Data

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
. I am really in need of getting this to work soon!!!
  #2  
Old February 18th, 2010, 08:26 AM posted to microsoft.public.access.forms
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Using Combo Box to Auto Fill Data

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
. 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/For...forms/201002/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.