Printing column from a subform

Leventcos21

New member
Local time
Yesterday, 22:13
Joined
Oct 21, 2005
Messages
7
Hi,
I am stuck on trying to print data from a combobox (cboEmpName) that is located in a continuous subform. Example, cboEmpName has a column count of 3, so when the record is printed it will show the name of the person and what is column 3 in the report.


Code:
Private Sub Report_Open(Cancel As Integer)
Label14.Caption = Forms![frmEmpTrainingDoc]![sfrmTraining]![cboEmpName].Column(2)

But I get a run-time error 2465
 

Users who are viewing this thread

Back
Top Bottom