Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Subform not visible

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I can't do this. Because Record source (in my Subform) is a query for calculate.

Example: Record source = SELECT SUM(PP_AMOUNTUSD) AS PAIDUSD, SUM(PP_AMOUNT) AS PAIDVND, SUM(PP_AMOUNT / PP_ER) AS PAIDEQUSD, PO_ID FROM PROJECTPAYMENT GROUP BY PO_ID

How to do Subform visible when it is not data or data is null.
 
Hi Ger_VN,

Try in your main Form this
If Me.[Yoursubformname].Form.RecordsetClone.RecordCount > 0 Then
else
If Me.[Yoursubformname].Form.RecordsetClone.RecordCount = 0 Then
me.Yoursubform.Visible = False
end if
end if

Good Luck
 
Hi Ger_VN,

Sorry For Missing One Line

If Me.[Yoursubformname].Form.RecordsetClone.RecordCount > 0 Then
me.Yoursubform.Visible = True
else
If Me.[Yoursubformname].Form.RecordsetClone.RecordCount = 0 Then
me.Yoursubform.Visible = False
end if
end if

Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top