A
Anne
Hi...in hopes of enlightenment...
I open a form (popup) from a form as an AfterUpdate
Event. The main, as well as the popup forms each contain
a field "ClientID", although the one on the popup is not
visible.
My dilemma: The popup opens, linked, as it should when
there is data and also when there is not. I wish to open
the form only when there is data, that is, no blank form
opening.
I have tried many ways and cannot see the solution.
Can someone advise? See code below.
Thanks,
Anne
*** pertinent existing code follows ***
stDocName = "frm2V Job"
stLinkCriteria = "[ClientID]=" & "'" & Me![ClientID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria
I open a form (popup) from a form as an AfterUpdate
Event. The main, as well as the popup forms each contain
a field "ClientID", although the one on the popup is not
visible.
My dilemma: The popup opens, linked, as it should when
there is data and also when there is not. I wish to open
the form only when there is data, that is, no blank form
opening.
I have tried many ways and cannot see the solution.
Can someone advise? See code below.
Thanks,
Anne
*** pertinent existing code follows ***
stDocName = "frm2V Job"
stLinkCriteria = "[ClientID]=" & "'" & Me![ClientID] & "'"
DoCmd.OpenForm stDocName, , , stLinkCriteria