I am trying to put a print current record code behind a button on my form
this code prints ALL of the records
I want just the record that is currently being viewed in Form View
Code
DoCmd.SelectObject acForm, "Legal Process"
DoCmd.PrintOut acPages, 1,1
be advised!
this form record source is a query
CasePlainDefend
which is a combination of two tables
tblCase Primary key= CaseID
tblPlain_Defend Primary key = IDPlainDefend
Both autonumbers
these PK are not needed in the form view so they were not placed there
the relationship is between
CaseNo and PLCaseNo one to many No integrity
the CaseNo is text and is different in every case and used to identify
the plaintiffs and defendants in tblPlainDefend
can you help me print the form? is it possible?
and NO I dont want a Report
i
this code prints ALL of the records
I want just the record that is currently being viewed in Form View
Code
DoCmd.SelectObject acForm, "Legal Process"
DoCmd.PrintOut acPages, 1,1
be advised!
this form record source is a query
CasePlainDefend
which is a combination of two tables
tblCase Primary key= CaseID
tblPlain_Defend Primary key = IDPlainDefend
Both autonumbers
these PK are not needed in the form view so they were not placed there
the relationship is between
CaseNo and PLCaseNo one to many No integrity
the CaseNo is text and is different in every case and used to identify
the plaintiffs and defendants in tblPlainDefend
can you help me print the form? is it possible?
and NO I dont want a Report
i