Hi, i got a subform and inside got some records. But i want to press a
button and make all those records to a report. It only display all
those records with same Job Order no. I want to display all job order
no. and part. Pls advise.
partid = " [part_no] = '" & Forms!main!Overdue_sub.Form!Part_No & "'
"
MyReport = "select * from overdue_qry " & _
"where" & "[Job_order] = '" &
Forms!main!Overdue_sub.Form!Jobid
& "'" & " and " & partid
DoCmd.OpenReport "overdue_print", acViewPreview, MyReport
Regards,
Daniel