D
Dave
When I send "frmOrders" to print (print preview), I want to stamp a field
"LastOrderDate" in the table "refCustomers" with the field "OrderDate" in
the current form ("frmOrders")
Current code on the button that sends to print
Private Sub cmdPrint_Click()
On Error GoTo Err_cmdPrint_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Dim stDocName As String
stDocName = "Order Invoice"
DoCmd.OpenReport stDocName, acPreview
'DoCmd.Close acForm, "frmOrders", acSaveYes
Exit_cmdPrint_Click:
Exit Sub
Err_cmdPrint_Click:
MsgBox Err.Description
Resume Exit_cmdPrint_Click
Any pointers?
Thanks in advance
"LastOrderDate" in the table "refCustomers" with the field "OrderDate" in
the current form ("frmOrders")
Current code on the button that sends to print
Private Sub cmdPrint_Click()
On Error GoTo Err_cmdPrint_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Dim stDocName As String
stDocName = "Order Invoice"
DoCmd.OpenReport stDocName, acPreview
'DoCmd.Close acForm, "frmOrders", acSaveYes
Exit_cmdPrint_Click:
Exit Sub
Err_cmdPrint_Click:
MsgBox Err.Description
Resume Exit_cmdPrint_Click
Any pointers?
Thanks in advance