ScriptHam
02-02-2006, 07:17 AM
Hi
I have a print button, cmdPrintRun, on a form, frmPrint1, in db1 which I want to operate from a form, frmPrint2, in a different database, db2. The print button, which does work, prints out a number of reports. I just want to be able to operate it remotely. How do I go about this please.
Is this anything like just to open the second database
Private Sub cmdPrintRun_Click()
On Error GoTo Err_cmdPrintRun_Click
'...To open the database
Dim dbMyDb As Database
Set dbMyDb = DBEngine(0).OpenDatabase("db1.mdb", False, False) ', ";pwd="
db1 and db2 are in the same directory and there is no PWD.
Many thanks
ScriptHam
I have a print button, cmdPrintRun, on a form, frmPrint1, in db1 which I want to operate from a form, frmPrint2, in a different database, db2. The print button, which does work, prints out a number of reports. I just want to be able to operate it remotely. How do I go about this please.
Is this anything like just to open the second database
Private Sub cmdPrintRun_Click()
On Error GoTo Err_cmdPrintRun_Click
'...To open the database
Dim dbMyDb As Database
Set dbMyDb = DBEngine(0).OpenDatabase("db1.mdb", False, False) ', ";pwd="
db1 and db2 are in the same directory and there is no PWD.
Many thanks
ScriptHam