Hi can anyone help? I'm moving a small number of users from Access 2000 up to Access 2007 in my office.
We have a shared database on a server which the new users on 2007 are having problems printing individual records from.
From within a form called 'Main' an option to print the current record on one of several standard reports is chosen. In this case onto a report called 'invoice'
A debug error pops up when I try to print which tells me that it can't find the 'main' table? I can't work this out as the code works fine on the old version but not in 2007
The line is;
DoCmd.OpenReport "invoice", acViewNormal, "Main", "[contract number]=" & Forms!Main![Contract Number]
I've tried several different methods of altering the code such as;
DoCmd.OpenReport "invoice", acViewNormal, , "[contract number]=Forms!Main"
but this just prints out a blank 'invoice' with no record details from the 'Main' form.
Has anyone else had this problem when they've upgraded to 2007 ?, if so you help
We have a shared database on a server which the new users on 2007 are having problems printing individual records from.
From within a form called 'Main' an option to print the current record on one of several standard reports is chosen. In this case onto a report called 'invoice'
A debug error pops up when I try to print which tells me that it can't find the 'main' table? I can't work this out as the code works fine on the old version but not in 2007
The line is;
DoCmd.OpenReport "invoice", acViewNormal, "Main", "[contract number]=" & Forms!Main![Contract Number]
I've tried several different methods of altering the code such as;
DoCmd.OpenReport "invoice", acViewNormal, , "[contract number]=Forms!Main"
but this just prints out a blank 'invoice' with no record details from the 'Main' form.
Has anyone else had this problem when they've upgraded to 2007 ?, if so you help