Results 1 to 5 of 5

Thread: Searching for records in a database

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2015
    Posts
    21

    Searching for records in a database

    I am trying to search for matching records in a database. Example: I search the student number 10000, if it matches a student it brings up information about the student(name, age etc.) If it doesn't match, I tell the user that it has no matches.

    EDIT: got some help from professor, not sure what panStudentRecord is for? and why it doesent work as is.

    EDIT: Figured it out, he meant for us to use a panel to contain the student info, the pantStudent line was to make it visible

    Code:
    TblStudentsBindingSource.Filter = "StudentNumber =" & txtStudentNumber.Text
    
            If TblStudentsBindingSource.Count = 1 Then
                panStudentRecord.Visible = True
            End If
        End Sub
    Last edited by NewtoV; Mar 3rd, 2015 at 01:34 PM.

Tags for this Thread

Posting Permissions

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



Click Here to Expand Forum to Full Width