VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This is just a sample code using DATA Control on how to check if there's existing Record of Zero re

by Dexter B. Carlit (1 Submission)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 30th August 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This is just a sample code using DATA Control on how to check if there's existing Record of Zero record within a Database using MS Access

API Declarations


' Add a Data Connection Control within your forms
' Setup its configuration
' Then put the following code in you form Load or Command Button

Rate This is just a sample code using DATA Control on how to check if there's existing Record of Zero re



  Dim Ptr as Integer
  Dim x as String
    Ptr = .RecordCount ' Count # of Records in a Table
       ' Test if there's Zero or Empty Record in the Table
        If Ptr = "" Or Ptr = 0 Then 
            x = MsgBox("Empty Database.", vbExclamation, "Message")
            Exit Sub 
        End If
End With

Download this snippet    Add to My Saved Code

This is just a sample code using DATA Control on how to check if there's existing Record of Zero re Comments

No comments have been posted about This is just a sample code using DATA Control on how to check if there's existing Record of Zero re. Why not be the first to post a comment about This is just a sample code using DATA Control on how to check if there's existing Record of Zero re.

Post your comment

Subject:
Message:
0/1000 characters