W
William
I searched for a replacement of the "Me.Requery" function
and came across the function that was posted in a thread
some time ago (problem is that I don't want to move back
to first record after refreshing a form).
After integrating the function, I performed some initial
analysis.
The function really works well, except that I am having
problems with the first record of the recordset. Once I
make changes on the first record, it some locks up other
text fields.
Does anyone know what the issue might be and how I can
work around this? How can I ensure that the first record
will be handled differently than all other records of the
record set?
Regards,
William
Dim rs As DAO.Recordset
Dim lngID As Long
With Me
lngID = .AutoNumberFieldName
.Requery
DoEvents
Set rs = .RecordsetClone
rs.FindFirst "[AutoNumberFieldName] = " & lngID
If rs.NoMatch = False Then
.Bookmark = rs.Bookmark
End If
End With
and came across the function that was posted in a thread
some time ago (problem is that I don't want to move back
to first record after refreshing a form).
After integrating the function, I performed some initial
analysis.
The function really works well, except that I am having
problems with the first record of the recordset. Once I
make changes on the first record, it some locks up other
text fields.
Does anyone know what the issue might be and how I can
work around this? How can I ensure that the first record
will be handled differently than all other records of the
record set?
Regards,
William
Dim rs As DAO.Recordset
Dim lngID As Long
With Me
lngID = .AutoNumberFieldName
.Requery
DoEvents
Set rs = .RecordsetClone
rs.FindFirst "[AutoNumberFieldName] = " & lngID
If rs.NoMatch = False Then
.Bookmark = rs.Bookmark
End If
End With