R
Randall Arnold
I need to set a table status flag after a report has run. The field is
Printed with a boolean of True or False. I set a flag in the Detail_Print
sub (fPrinted = true) then expect the following code to do the table update:
----------------------------------------------------
Private Sub Report_Close()
Dim iPrintOK As Integer
If fPrinted Then
iPrintOK = MsgBox("Did all prints come out okay?", vbYesNo, "Print
Confirmation")
If iPrintOK = vbYes Then
Me.Recordset.MoveFirst
While Not Me.Recordset.EOF
Me.Recordset![Printed] = True
Me.Recordset.MoveNext
Wend
Me.Recordset.Update
Else
DoCmd.OpenForm "DT_check"
End If
End If
End Sub
---------------------------------------------------
When the VB interpreter hits the Me.Recordset.Movefirst code, I get an error
stating "this functionality is not available in an MDB". ??? I don't get
that. Does this mean there's no way to accomplish my goal? Or does anyone
else know of a way to do this?
TIA,
Randall Arnold
Printed with a boolean of True or False. I set a flag in the Detail_Print
sub (fPrinted = true) then expect the following code to do the table update:
----------------------------------------------------
Private Sub Report_Close()
Dim iPrintOK As Integer
If fPrinted Then
iPrintOK = MsgBox("Did all prints come out okay?", vbYesNo, "Print
Confirmation")
If iPrintOK = vbYes Then
Me.Recordset.MoveFirst
While Not Me.Recordset.EOF
Me.Recordset![Printed] = True
Me.Recordset.MoveNext
Wend
Me.Recordset.Update
Else
DoCmd.OpenForm "DT_check"
End If
End If
End Sub
---------------------------------------------------
When the VB interpreter hits the Me.Recordset.Movefirst code, I get an error
stating "this functionality is not available in an MDB". ??? I don't get
that. Does this mean there's no way to accomplish my goal? Or does anyone
else know of a way to do this?
TIA,
Randall Arnold