' only print the current record
Dim filter
filter = "Ref:= Forms!ARTScript!Ref:"
DoCmd.OpenReport "ART", acViewPreview, , filter
ok i put this code into the print script on_click event along with the other code i have posted and it still doesnt work!
Private Sub PrintScript_Click()
On Error GoTo Err_PrintScript_Click
DoCmd.RunCommand acCmdSaveRecord
' only print the current record
Dim filter
filter = "Ref:= Forms!ARTScript!Ref:"
DoCmd.OpenReport "ART", acViewPreview, , filter
'print the record with three headings
Me.fld_ReportTitle = "Pharmacy Copy"
DoCmd.OpenReport "ART", acViewNormal
Me.fld_ReportTitle = "Case Notes Copy"
DoCmd.OpenReport "ART", acViewNormal
Me.fld_ReportTitle = "GP Copy"
DoCmd.OpenReport "ART", acViewNormal
Exit_PrintScript_Click:
Exit Sub
Err_PrintScript_Click:
Msgbox Err.Description
Resume Exit_PrintScript_Click
End Sub
please help me as i just cant see whats going on!someone else may see a little mistake thats soo clear but i just cant see it!