M
MDW
I've been having this problem off-and-on, and I can't for
the life of me figure out what to do. I'm using Access
97, and one of my forms has a decent number of text box
controls - maybe 20-25. They are all unbound.
As I try to get all the values from the textboxes, I run
into a snag - I get an error that says "Microsoft Access
Could Not Move The Focus To [TextBoxName]. It may be
hidden, disabled, or of a type that cannot receive the
focus." The thing is, none of those conditions are true.
All the text boxes are perfoectly normal, unhidden
controls. It's like Access gets confused or something.
Has anyone else had this problem? What in the world causes
it? Is there some opposite version of the .SetFocus
method that I can use to remove focus from the box when
I'm done with it?
It was once suggested that I just assign variables to the
default value of the text boxes. I know that you can just
use the name of the textbox since the ".Text" property is
the default; e.g., strVariable = txtMyBox. However, that
causes problems if the user leaves the box blank...I get
an "Invalid use of null" error. Does anyone know a way
around THAT? That would be a solution to my problems.
the life of me figure out what to do. I'm using Access
97, and one of my forms has a decent number of text box
controls - maybe 20-25. They are all unbound.
As I try to get all the values from the textboxes, I run
into a snag - I get an error that says "Microsoft Access
Could Not Move The Focus To [TextBoxName]. It may be
hidden, disabled, or of a type that cannot receive the
focus." The thing is, none of those conditions are true.
All the text boxes are perfoectly normal, unhidden
controls. It's like Access gets confused or something.
Has anyone else had this problem? What in the world causes
it? Is there some opposite version of the .SetFocus
method that I can use to remove focus from the box when
I'm done with it?
It was once suggested that I just assign variables to the
default value of the text boxes. I know that you can just
use the name of the textbox since the ".Text" property is
the default; e.g., strVariable = txtMyBox. However, that
causes problems if the user leaves the box blank...I get
an "Invalid use of null" error. Does anyone know a way
around THAT? That would be a solution to my problems.