Hello,
I am trying to either hide a subform if it contains no records using a macro, since unfortunately my place of work does not allow using Modules.
I have been trying the following in my If-statement:
DCount("*", "subformName") = 0
However, I get the error that ms-access cannot analyse this.
Does anyone know where my mistake lies or a workaround?
Best,
Max
I am trying to either hide a subform if it contains no records using a macro, since unfortunately my place of work does not allow using Modules.
I have been trying the following in my If-statement:
DCount("*", "subformName") = 0
However, I get the error that ms-access cannot analyse this.
Does anyone know where my mistake lies or a workaround?
Best,
Max