C
Chad Cameron
Hi All,
I am using Access 2000.
We are using a form to enter employee timecards. The way it is set up now,
I have to enter the employee number for every entry. What I want to do is
add a textbox and have the drop down list of employees check it the textbox
has a number in it. If it does use that, if not, allow me to enter it
manually.
So, I set it up with the GotFocus event of the dropdown list. Now when I tab
through the dropdowns, I get to the Emp. Number. It tries to grab the
number in the textbox, but I get the Error 2185 'You can't reference a
property or method for a control unless the control has the focus'
So I give the textbox focus, it seems to fix the error, but now when I try
to enter that number into the Dropdown list it says that need focus, so I
setfocus, but now it puts me into an infinite loop.
Any ideas?
Chad
I am using Access 2000.
We are using a form to enter employee timecards. The way it is set up now,
I have to enter the employee number for every entry. What I want to do is
add a textbox and have the drop down list of employees check it the textbox
has a number in it. If it does use that, if not, allow me to enter it
manually.
So, I set it up with the GotFocus event of the dropdown list. Now when I tab
through the dropdowns, I get to the Emp. Number. It tries to grab the
number in the textbox, but I get the Error 2185 'You can't reference a
property or method for a control unless the control has the focus'
So I give the textbox focus, it seems to fix the error, but now when I try
to enter that number into the Dropdown list it says that need focus, so I
setfocus, but now it puts me into an infinite loop.
Any ideas?
Chad