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  

Dynamic form Feilds



 
 
Thread Tools Display Modes
  #1  
Old May 12th, 2008, 07:55 PM posted to microsoft.public.access.forms
ChestMnednhlp
external usenet poster
 
Posts: 2
Default Dynamic form Feilds

Okay I am working with a access database and I am trying to format the form
to display certain information based on a combo box answer.

so I've garnered so far I need to go to on current event of the form and
type in my commands (I planned in using expression builder)

but I'm having trouble with the coding. I can't even get a simple label to
change text on click event.

the basic concept that I am trying to do is on combo field value "dark" then
display feilds "screw in light bulb" and "turn on light switch" (these are
examples of course and not the actual field names.)

any and all help would be greatly appreciated.
  #2  
Old May 12th, 2008, 08:58 PM posted to microsoft.public.access.forms
Golfinray
external usenet poster
 
Posts: 1,597
Default Dynamic form Feilds

To use a combo as a filter first use the wizard to make your combo and pick
the field you want to lookup. Then go into the afterupdate event and type:
Me.filter = "[myfield] = """ & Me.yourcombobox# & """"
Me.filteron=true

"ChestMnednhlp" wrote:

Okay I am working with a access database and I am trying to format the form
to display certain information based on a combo box answer.

so I've garnered so far I need to go to on current event of the form and
type in my commands (I planned in using expression builder)

but I'm having trouble with the coding. I can't even get a simple label to
change text on click event.

the basic concept that I am trying to do is on combo field value "dark" then
display feilds "screw in light bulb" and "turn on light switch" (these are
examples of course and not the actual field names.)

any and all help would be greatly appreciated.

  #3  
Old May 12th, 2008, 10:40 PM posted to microsoft.public.access.forms
ChestMnednhlp
external usenet poster
 
Posts: 2
Default Dynamic form Feilds

I'm not sure filtering is really what I am looking for, perhaps a rephrase...

when a certain state is selected in a combo box lets say - georgia
then I want two other feilds to become visible - "peaches" and "southern
hospitality" so the user can input information.

"Golfinray" wrote:

To use a combo as a filter first use the wizard to make your combo and pick
the field you want to lookup. Then go into the afterupdate event and type:
Me.filter = "[myfield] = """ & Me.yourcombobox# & """"
Me.filteron=true

"ChestMnednhlp" wrote:

Okay I am working with a access database and I am trying to format the form
to display certain information based on a combo box answer.

so I've garnered so far I need to go to on current event of the form and
type in my commands (I planned in using expression builder)

but I'm having trouble with the coding. I can't even get a simple label to
change text on click event.

the basic concept that I am trying to do is on combo field value "dark" then
display feilds "screw in light bulb" and "turn on light switch" (these are
examples of course and not the actual field names.)

any and all help would be greatly appreciated.

 




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 09:31 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.