themurph2000
Fat, drunk, and stupid
- Local time
- Yesterday, 18:38
- Joined
- Sep 24, 2007
- Messages
- 181
I know this is an easy one, but I can't get it to work. :banghead: I have a form where, if you double-click on a text box, a smaller form will pop up and it has a single text box where you can type in a number, hit [ENTER], and search for the number you typed in the table the first form is based on. The trouble is I can't get SetFocus to place the cursor in the box. I know this doesn't sound like much, but if someone starts typing right away, they could ruin the data in the table.
This should be easy, but Forms!frmsearchJCN!searchidnumber.SetFocus just isn't working, whether I put in in the OnLoad event of frmsearchJCN or put it in as part of the double-click in the other form, which opens up that form box.
Any thoughts?
This should be easy, but Forms!frmsearchJCN!searchidnumber.SetFocus just isn't working, whether I put in in the OnLoad event of frmsearchJCN or put it in as part of the double-click in the other form, which opens up that form box.
Any thoughts?