Could anyone help explain the following snippet of code? I'm not quite sure how it works. Thanks!
[CODE=vb]Public Counter As Integer
Private Sub Form_Load()
If Me.CurrentRecor d > 0 Then
DoCmd.GoToRecor d acActiveDataObj ect, "", acLast
Counter = Me.CurrentRecor d
DoCmd.GoToRecor d acActiveDataObj ect, "", acFirst
Else
MsgBox "There are no new issues.", vbOKOnly, "First Issues"
DoCmd.Close acForm, "frmEditReport" , acSaveNo
Exit Sub
End If
End Sub[/CODE]
Software: Access 2003
Form: frmEditReport
Form's Record Source: qryEditReport
[CODE=vb]Public Counter As Integer
Private Sub Form_Load()
If Me.CurrentRecor d > 0 Then
DoCmd.GoToRecor d acActiveDataObj ect, "", acLast
Counter = Me.CurrentRecor d
DoCmd.GoToRecor d acActiveDataObj ect, "", acFirst
Else
MsgBox "There are no new issues.", vbOKOnly, "First Issues"
DoCmd.Close acForm, "frmEditReport" , acSaveNo
Exit Sub
End If
End Sub[/CODE]
Software: Access 2003
Form: frmEditReport
Form's Record Source: qryEditReport
Comment