1 - Start by writing a report containing whatever it is you want to print.
2 - Place a Command Button on your form that will print the report after the record is updated.
3 - This goes in the OnClick event of that Command Button that will print a report containing the current record:
- - -
Private Sub cmdPrintRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "rptYourReport"
strCriteria = "[FieldIdentifyingTheRecord]='" & Me![FieldIdentifyingTheRecord] & "'"
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub
- - -
In this case, 'FieldIdentifyingTheRecord' is used to tell Access what record to print. It should probably be the Primary Key, to insure you're printing the proper record.
This assumes that whatever field you are using for the link criteria will define as a string. If you are using an autonumber field, for example (which is 'Long') the syntax is slightly different.
Once you get this working, you may want to do something to trap the AfterUpdate event of your form, so that every time you update a record, you are presented a message box that asks if you want to print the report.
Hope this helps.
- - - -
Bryan