Hi Guys,
I have a two part question.
First one is, if I have the following code:
I need an if statement to say :
If frmSitesMain is active then do nothing
Else
execute the code above?
The other question is how to I hide a subform with the same scenario above?
I have a two part question.
First one is, if I have the following code:
Code:
InvoiceCounter = 0
InvoiceCounter = DCount("[CRCInvoiceID]", "tblSitesCRCLastInvoice", "[tblSitesCRCLastInvoice].[fkAccountsID] = [forms]![frmSitesCRCMain]![frmSitesAccount]![AccountID]")
Counter_txt = InvoiceCounter
I need an if statement to say :
If frmSitesMain is active then do nothing
Else
execute the code above?
The other question is how to I hide a subform with the same scenario above?