I use this code to open a form if the query qryOverdue returns records. Use the dcount function to count the number of records returned by the query. If there are any then form is opened, else nothing happens.
Private Sub Form_Open(Cancel As Integer)
Dim count As Integer
Dim stDocName As String
Dim stLinkCriteria As String
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.