G
Guest
I am not efficient in code. I am using Access for the first time and the last
time I did any computer programming I was in high school (a long time ago). I
am trying to get one form to goto a specific record on another form when I
double click. I found some code on the internet to use but I don't quite
understand it. Could someone please help. The code I found is:
Private Sub Text1_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[staffID] = " & Str(Nz(Me![Text1], 0))
If rs.EOF = False Then
Me.Bookmark = rs.Bookmark
Else
DoCmd.GoToRecord acActiveDataObject, , acNewRec
I don't understand exactly what the "Text1" is in reference to. Can someone
please explain?
time I did any computer programming I was in high school (a long time ago). I
am trying to get one form to goto a specific record on another form when I
double click. I found some code on the internet to use but I don't quite
understand it. Could someone please help. The code I found is:
Private Sub Text1_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[staffID] = " & Str(Nz(Me![Text1], 0))
If rs.EOF = False Then
Me.Bookmark = rs.Bookmark
Else
DoCmd.GoToRecord acActiveDataObject, , acNewRec
I don't understand exactly what the "Text1" is in reference to. Can someone
please explain?