G
Guest
Does anyone know how to write a VB script to run different queries based upon the value that the user enters into a form?
Ex: If the user enters the number 1 in the form field, I want to run query#1
and if the user enters the number 2 in the form field, I want to run query#2.
I want to insert this VB code in the "ON ENTER" event of the field in the form.
I already tried to do this with a macro and logged a question under macros section but the nice person
that responded to my question indicated that I would not be able to handle this type of thing with a macro.
Unfortunately although I am very experienced with creating forms and programs in MS ACCESS, I am not
familiar with VB or SQL (never had to use it till now).
I am pulling my hair out trying to figure out how to just do this 1 thing. The rest of my program runs is done otherwise!
Thanks in advance for anyone's help on this.
Ex: If the user enters the number 1 in the form field, I want to run query#1
and if the user enters the number 2 in the form field, I want to run query#2.
I want to insert this VB code in the "ON ENTER" event of the field in the form.
I already tried to do this with a macro and logged a question under macros section but the nice person
that responded to my question indicated that I would not be able to handle this type of thing with a macro.
Unfortunately although I am very experienced with creating forms and programs in MS ACCESS, I am not
familiar with VB or SQL (never had to use it till now).
I am pulling my hair out trying to figure out how to just do this 1 thing. The rest of my program runs is done otherwise!
Thanks in advance for anyone's help on this.