Setfocus command in Access
Posted on 2007-10-01
i am trying to use the setfocus command to focus on a specific text box based on what is picked. What needs to happen in that when a user picks any of the 4 award types from a combobox the setfocus command will move them to the textbox to fill in information. Following is what they can pick with the text box that needs to setfocus.
Quality step increase setfocus on amount textbox
suggestion setfocus on amount textbox
sustained superior performance award set focus on amount textbox
time off award setfocus on hours textbox
i am guessing that a variable needs to be set for this, here is some code I was trying but with no luck
dim awardtype as combobox
if awardtype = "suggestion" then
This is where i get stuck on if its not, or if I am even correct.