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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|