AddaByte    Programmers' Script Repository
Free and low cost software.
spacer
Find out about our beautiful fractal backgrounds at abm-enterprises


Newsletter Signup
Name
Email
 

  Access 97 - Check Form for Records
 


Save up to 75% on software

Drive Clone

the best name in hosting


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
  download this file
 
 
  Comments
no comments
 
  Add your comment
 Email  
 Subject  
 Comment  
 Verification code:

 
    All comments are screened by the admin prior to being posted
     
 
  Contacts
  Report Abuse