Sabtu, 06 Juni 2020

[MSAccessProfessionals] Moving cursor to a control

On my Add Record button I would like to add a line to move the cursor to the LastName Text Box.  I tried adding "DoCmd.GoToControl, LastName"  but it did not work.  What should I do to make my cursor go to the LastName Text Box?   Here is what is in the Event Procedure now:

Private Sub AddRecord_Click()
On Error GoTo Err_AddRecord_Click
 
 
    DoCmd.GoToRecord , , acNewRec
 
      
    
Exit_AddRecord_Click:
Me.List42.Requery
    Exit Sub
 
Err_AddRecord_Click:
    MsgBox Err.Description
    Resume Exit_AddRecord_Click
    
End Sub
_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#115561) | Reply To Group | Reply To Sender | Mute This Topic | New Topic

Your Subscription | Contact Group Owner | Unsubscribe [sugeng.panjalu.access@blogger.com]

_._,_._,_

Tidak ada komentar:

Posting Komentar