A
accesswanabe
This thing is going to make me rip what little hair I have right out...
Okay, I have a main form. On the main form, I have a subform and, on that
subform, an additional nested subform. I'm trying to set the focus to a
control on the nested subform, but can't get it to work. I've added the
following lines as researched on-line:
Forms![Main].Form!Preview.SetFocus
Forms![Main].Form!Preview.Form![EstimatesSub].SetFocus
Forms![Main].Form!Preview.Form![EstimatesSub].form![ServiceType].SetFocus
Here's the rub...upon code execution, the expected control does not appear
to have the focus; there's no cursor or highlight at all on the control.
But, when I press the delete key (discovered this behavior by mistake) the
data in the control that I intended to have the focus gets deleted. Of
course, at that point the control really does have the focus...but I really
need my data.
My intent is to set the focus prior to making a search feature available
thereby saving my users some keystrokes...just can't seem to get that control
fully exposed.
Anyone have any ideas? Sure appreciate it.
Okay, I have a main form. On the main form, I have a subform and, on that
subform, an additional nested subform. I'm trying to set the focus to a
control on the nested subform, but can't get it to work. I've added the
following lines as researched on-line:
Forms![Main].Form!Preview.SetFocus
Forms![Main].Form!Preview.Form![EstimatesSub].SetFocus
Forms![Main].Form!Preview.Form![EstimatesSub].form![ServiceType].SetFocus
Here's the rub...upon code execution, the expected control does not appear
to have the focus; there's no cursor or highlight at all on the control.
But, when I press the delete key (discovered this behavior by mistake) the
data in the control that I intended to have the focus gets deleted. Of
course, at that point the control really does have the focus...but I really
need my data.
My intent is to set the focus prior to making a search feature available
thereby saving my users some keystrokes...just can't seem to get that control
fully exposed.
Anyone have any ideas? Sure appreciate it.