zelarra821
Registered User.
- Local time
- Today, 15:20
- Joined
- Jan 14, 2019
- Messages
- 803
Good afternoon.
I'm trying to get my cursor at the end in a textbox after updating it, but I can't. I have recorded a short video that supports my words and you can see the behavior.
Video
This is the code I have after updating:
The problem is in the DoCmd.Requery, which I use to update the form and the calculated values that you see throughout the form. The rest of the code that you see commented does not affect the problem, that's why I have it like this.
If I put a breakpoint in VBA it just goes through that DoCmd.Requery, for nothing else.
If I try to force it, for example, like this:
continues to be at the beginning.
How can i fix it?
Thanks.
I'm trying to get my cursor at the end in a textbox after updating it, but I can't. I have recorded a short video that supports my words and you can see the behavior.
Video
This is the code I have after updating:
Code:
Private Sub Leido1_AfterUpdate()
' If IsNull(Me.Leido1) Then
' Me.Leido1 = 0
' End If
DoCmd.Requery
' CargarValores Me
End Sub
The problem is in the DoCmd.Requery, which I use to update the form and the calculated values that you see throughout the form. The rest of the code that you see commented does not affect the problem, that's why I have it like this.
If I put a breakpoint in VBA it just goes through that DoCmd.Requery, for nothing else.
If I try to force it, for example, like this:
Code:
Me.Leido1.SelStart = Len(Me.Leido1) + 1
continues to be at the beginning.
How can i fix it?
Thanks.