• Msg when no record

    Author
    Topic
    #461479

    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

    Viewing 0 reply threads
    Author
    Replies
    • #1171146

      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
    Viewing 0 reply threads
    Reply To: Msg when no record

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: