evanscamman
Registered User.
- Local time
- Today, 15:19
- Joined
- Feb 25, 2007
- Messages
- 274
I'm trying to select the contents of a text box like this:
ItemID.SetFocus
ItemID.SelStart = 0
ItemID.SelLength = len(ItemID)
End Sub
The SelStart and SelLength have no effect no matter how I have tried to use them. I have tried SelStart = 0, 1, 2, 3, etc... The position of the cursor never changes. Pressing TAB in the form (ItemID is the only tabbed control) selects the text in ItemID, so I'm considering using SendKeys... but I know that is 2nd rate programming.
Please help!
I'm using Access 2003.
Evan
ItemID.SetFocus
ItemID.SelStart = 0
ItemID.SelLength = len(ItemID)
End Sub
The SelStart and SelLength have no effect no matter how I have tried to use them. I have tried SelStart = 0, 1, 2, 3, etc... The position of the cursor never changes. Pressing TAB in the form (ItemID is the only tabbed control) selects the text in ItemID, so I'm considering using SendKeys... but I know that is 2nd rate programming.
Please help!
I'm using Access 2003.
Evan