G
Guest
Dear Sirs
I have a Macro running perfect and it is executing the following:
- billyearlyhelpappendquery
- billhalfyearhelpappendquery
- billsappendquery
- openbillsappendquery
- Print report – billingcemetery
- billingtabledeletequeryquery
I would prefer to do this in VB. I did the following without success:
Private Sub cmdPrintbill_Click()
Dim stDocName As String
stDocName = “billyearlyhelpappendqueryâ€
stDocName = “billhalfyearhelpappendqueryâ€
stDocName = “billsappendqueryâ€
stDocName = “openbillsappendqueryâ€
DoCmd.OpenReport “billingcemeteryâ€, acViewNormal
stDocName = “billingtabledeletequeryqueryâ€
End Sub
I do not get any error message neither is anything shown if I Debug-Compile.
Can anyone alter my VB code so that it is working?
Thanks
Klaus
I have a Macro running perfect and it is executing the following:
- billyearlyhelpappendquery
- billhalfyearhelpappendquery
- billsappendquery
- openbillsappendquery
- Print report – billingcemetery
- billingtabledeletequeryquery
I would prefer to do this in VB. I did the following without success:
Private Sub cmdPrintbill_Click()
Dim stDocName As String
stDocName = “billyearlyhelpappendqueryâ€
stDocName = “billhalfyearhelpappendqueryâ€
stDocName = “billsappendqueryâ€
stDocName = “openbillsappendqueryâ€
DoCmd.OpenReport “billingcemeteryâ€, acViewNormal
stDocName = “billingtabledeletequeryqueryâ€
End Sub
I do not get any error message neither is anything shown if I Debug-Compile.
Can anyone alter my VB code so that it is working?
Thanks
Klaus