Question : How to detect if the subform contain at least one record?

Hi,

Base on records information, I need to hide fields in a sub form and only if the sub form contain a record.

How can I detect if their a record in the sub form?

Thanks

Answer : How to detect if the subform contain at least one record?

if forms!MainForm!subformname.form.recordsetclone.eof then
  msgbox "No records"
end if
Random Solutions  
 
programming4us programming4us