A
Amateur
I'm trying to preview a report from DB1 in DB2 with help of a coomand button.
This I did so far:
I created the Reference in DB1.
I created in DB 2 a Module like this:
**************************
Public Sub OpenCommissionReport()
DoCmd.OpenReport "salespersonalcommission", acViewPreview
End Sub
***************************
I use the following code for my command button in DB 1
****************************
Private Sub OpenCommissionReport_Click()
OpenSalesPersonalCommission
End Sub
*****************************
I alwauys get the error message "Sub or Function not defined" - Can you tell
me what I did wrong?
Thanks
Klaus
This I did so far:
I created the Reference in DB1.
I created in DB 2 a Module like this:
**************************
Public Sub OpenCommissionReport()
DoCmd.OpenReport "salespersonalcommission", acViewPreview
End Sub
***************************
I use the following code for my command button in DB 1
****************************
Private Sub OpenCommissionReport_Click()
OpenSalesPersonalCommission
End Sub
*****************************
I alwauys get the error message "Sub or Function not defined" - Can you tell
me what I did wrong?
Thanks
Klaus