Function FormHasRecords(f As Form) As Boolean
'---------------------------------------------------------------------------------'
' Returns False if the form contains no records and True if it contains records.
'
' Calling Convention (from a control):
' =FormHasRecords(Form)
' =FormHasRecords(MySubform.Form)
' =FormHasRecords(MySubform.Form!MySubSubform.Form)
'
' Calling Convention (Event Code):
' If FormHasRecords(Me) Then
' If FormHasRecords(Forms!AnotherForm) Then
'---------------------------------------------------------------------------------'
Dim rs As Recordset
On Error Resume Next
Set rs = f.RecordsetClone
rs.MoveFirst
FormHasRecords = Not err.Number And Not rs.EOF
rs.Close
End Function
What does it do?
no description given
Features
Added by
Added
Downloads
Rating
Popularity
rpgivpgmr
11:32:48 AM Thursday, January 22nd 2009
38
not rated
About the file
Size
Download
Rate It
868 KB
Comments
Add your comment
Email
Subject
Comment
Verification code:
All comments are screened by the admin prior to being posted