HasData function on form

M

manchery

Hi,
I have a form with a subform. on click of a command
button if subform has no data i have to get a message,, I
think I can use (HasData) but anyone to say excat code
pls... or any other option..
Thanks in advance
 
A

Allen Browne

Subreports have a HasData property, but not subforms.

Try:
[NameOfYourSubformControlHere].Form.RecordsetClone.RecordCount
 
Top