G
Guest
Dear Sirs
I have a VB code which is executing appen-,deletequeries and is printing a
report.
To run this code I have to check upfront a checkbox – either yearlypayment
or halfyearpayment. After the code ran the checkbox is still checked. I would
like the checkbox automatically unchecking, after the VB code ran. Is this
possible with another line in the VB code and if yes, how?
This is my code:
Private Sub cmdPrintbill_Click()
Dim stDocName As String
CurrentDB.Execute "billyearlyhelpappendquery", dbFailOnError
CurrentDB.Execute "billhalfyearhelpappendquery", dbFailOnError
CurrentDB.Execute "billsappendquery", dbFailOnError
CurrentDB.Execute "openbillsappendquery", dbFailOnError
DoCmd.OpenReport "billingcemetery", acViewNormal
CurrentDB.Execute "billingtabledeletequeryquery", dbFailOnError
End Sub
Thanks
Klaus
I have a VB code which is executing appen-,deletequeries and is printing a
report.
To run this code I have to check upfront a checkbox – either yearlypayment
or halfyearpayment. After the code ran the checkbox is still checked. I would
like the checkbox automatically unchecking, after the VB code ran. Is this
possible with another line in the VB code and if yes, how?
This is my code:
Private Sub cmdPrintbill_Click()
Dim stDocName As String
CurrentDB.Execute "billyearlyhelpappendquery", dbFailOnError
CurrentDB.Execute "billhalfyearhelpappendquery", dbFailOnError
CurrentDB.Execute "billsappendquery", dbFailOnError
CurrentDB.Execute "openbillsappendquery", dbFailOnError
DoCmd.OpenReport "billingcemetery", acViewNormal
CurrentDB.Execute "billingtabledeletequeryquery", dbFailOnError
End Sub
Thanks
Klaus