Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post
    Hi!

    I have frmStudentEvaluation. When it loads, if there is no record I need a msgbox that states there is no active record. I'm not sure how to code this.

    Thanks,
    Leesha

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    You could use the On Load event of the form (or add code to the On Load event procedure if you already have one):

    Code:
    Private Sub Form_Load()
      If Me.RecordsetClone.RecordCount = 0 Then
    	MsgBox "There are no records to display!", vbInformation
      End If
    End Sub

  3. #3
    Silver Lounger
    Join Date
    Jan 2002
    Posts
    1,615
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks! That's perfect!

    Leesha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •