I have a have a form that needs to tab from the detail to the footer on lost focus. Is there something wrong with my code?
Private Sub QA_Count_LostFocus()
Dim dbs As Database, rst As Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("QA_Count")
If CurrentRecord = rst.RecordCount Then
DoCmd.GoToControl "UPDATE"
Else
rst.Close
End If
End Sub
Thanks Rich
Private Sub QA_Count_LostFocus()
Dim dbs As Database, rst As Recordset
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("QA_Count")
If CurrentRecord = rst.RecordCount Then
DoCmd.GoToControl "UPDATE"
Else
rst.Close
End If
End Sub
Thanks Rich