Hi,
I have a number of text boxes in an Access 2000 form that I want the user to enter data, and then will use as parameters for a stored procedure (in VBA, using a command object to call the stored procedure). The program is blowing up when I first try and access the .text property of the first text box (to build a parameter string). The error I get is:
Err.number = 2185
Err.description = You can't reference a property or method for a control unless the control has the focus.
I'm wondering if this could be in the way the command button was set up, but am not sure. Does anyone have any ideas?
Thanks,
Ray
I have a number of text boxes in an Access 2000 form that I want the user to enter data, and then will use as parameters for a stored procedure (in VBA, using a command object to call the stored procedure). The program is blowing up when I first try and access the .text property of the first text box (to build a parameter string). The error I get is:
Err.number = 2185
Err.description = You can't reference a property or method for a control unless the control has the focus.
I'm wondering if this could be in the way the command button was set up, but am not sure. Does anyone have any ideas?
Thanks,
Ray