A akika Registered User. Local time Today, 12:48 Joined Aug 7, 2018 Messages 102 Oct 28, 2019 #1 Hi, I have a text box "txt_name" in access16, with input mask as "AB "0000a;0 How can i set the cursor to start after AB <Space> for the textbox "txt_name".
Hi, I have a text box "txt_name" in access16, with input mask as "AB "0000a;0 How can i set the cursor to start after AB <Space> for the textbox "txt_name".
isladogs MVP / VIP Local time Today, 20:48 Joined Jan 14, 2017 Messages 19,012 Oct 28, 2019 #2 Access options...client settings. Set behaviour entering field value to End of Field. However this change will apply to all controls throughout your database.
Access options...client settings. Set behaviour entering field value to End of Field. However this change will apply to all controls throughout your database.
A akika Registered User. Local time Today, 12:48 Joined Aug 7, 2018 Messages 102 Oct 28, 2019 #3 is there a way to do it via vba codes? instead of changing the access settings. the text box value going to be like "AB |1234" cursor should be at the pipe when to input the values.
is there a way to do it via vba codes? instead of changing the access settings. the text box value going to be like "AB |1234" cursor should be at the pipe when to input the values.
isladogs MVP / VIP Local time Today, 20:48 Joined Jan 14, 2017 Messages 19,012 Oct 28, 2019 #4 Yes. Use the SelStart property for your textbox and if necessary SelLength as well https://docs.microsoft.com/en-us/office/vba/api/Access.TextBox.SelStart Something like Me.ControlName.SelStart= Len(Me.ControlName)
Yes. Use the SelStart property for your textbox and if necessary SelLength as well https://docs.microsoft.com/en-us/office/vba/api/Access.TextBox.SelStart Something like Me.ControlName.SelStart= Len(Me.ControlName)
missinglinq AWF VIP Local time Today, 15:48 Joined Jun 20, 2003 Messages 6,420 Oct 28, 2019 #5 See if this suits your needs: Code: Private Sub txt_Name_Click() Me.txt_Name.SelStart = 3 End Sub Private Sub txt_Name_Enter() Me.txt_Name.SelStart = 3 End Sub Linq ;0)>
See if this suits your needs: Code: Private Sub txt_Name_Click() Me.txt_Name.SelStart = 3 End Sub Private Sub txt_Name_Enter() Me.txt_Name.SelStart = 3 End Sub Linq ;0)>