HasData Property on Form

B

Brigham Siton

Can someone show me how to use the HasData Property on a form?

What I want to do is if the form (based on a query) HasData that it
maximizes the form, else, it minimizes.

If Forms!PopUp.HasData = -1 Then
DoCmd.Maximize
Else
DoCmd.Minimize
End If

Somehow, the above does not work.

Thank you very much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top