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!

Visible Subform .......

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have problem with Subform. I don't know how to Subform visible when it is not data.
 
you can test to see if there is data for the form if there is do nothing but if there isn't then you can code the form to make it a data entry form.

To test for data:

If Me!Subform_Name.Recordset.Count = 0 Then
Me!Subform_Name.DataEntry = True
End If


HTH

 
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 Subform visible when it is not data or data is null.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top