Hi all,
I have a dropdown combo box that i use to change fields displayed on an input / search form.
With each selection a different tab is selected allowing the user to search on different products / customers / suppliers etc....
obviously for each of these different searches / inputs i want to run a different process on submitting the form.
So my main question is, can i set a command button to access a different sub or functionfrom my code.
tried setting the .onclick = func1, unfortunately this runs func1 with the selection not the button.
tried setting the .onclick = "func1", unfortunately when i click the button it tells me there is no macro named func1!!!
is there some syntax i need to insert before "func1" to get it to change the onclick function to my function.
should i be adding in somewhere [event procedure]!!!!!
I know i can use several if statements within the command button but would really like to keep the code tidy by setting this on selection of my pull down.
is this possible, or am i just insane!!!
Any pointers greatfully received
cheers
daveJam
*two wrongs don't make a right..... but three lefts do!!!!*
I have a dropdown combo box that i use to change fields displayed on an input / search form.
With each selection a different tab is selected allowing the user to search on different products / customers / suppliers etc....
obviously for each of these different searches / inputs i want to run a different process on submitting the form.
So my main question is, can i set a command button to access a different sub or functionfrom my code.
tried setting the .onclick = func1, unfortunately this runs func1 with the selection not the button.
tried setting the .onclick = "func1", unfortunately when i click the button it tells me there is no macro named func1!!!
is there some syntax i need to insert before "func1" to get it to change the onclick function to my function.
should i be adding in somewhere [event procedure]!!!!!
I know i can use several if statements within the command button but would really like to keep the code tidy by setting this on selection of my pull down.
is this possible, or am i just insane!!!
Any pointers greatfully received
cheers
daveJam
*two wrongs don't make a right..... but three lefts do!!!!*