Need Help: Displaying Records

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • darrel
    New Member
    • Nov 2006
    • 72

    #1

    Need Help: Displaying Records

    Hi there, good day! i need some help in displaying my records,,, my assignment is i have to display a database records in a labels.

    Its like this in my database i have a table called "SUBJECTS" that is consists of 4 fields, SUBJECT CODE, SUBJECT, TYPE, & UNITS, i have input their all the data for my fields that have unique identifier. My problem i dont know how to display in my form.

    No in my form i have several of labels. in each fields like "SUBJECT CODE" i have 14 total labels and the same with my SUBJECT, TYPE, & UNITS. my problem is i dont know how, my professor want that if he click the button namely "GET Subjects" all the subjects must be displayed in a specific labels, if i have 10 subjects, 10 subject code, 10 type & ten units, the output must have 40 labels. can u teach how? i have this code: but am not sure with it:

    Code:
    If cboSubject.Text = "Tourism" and cboSem.Text = "1 sem" and 
       cboYear.Text = "1st year"  Then
    
    SELECT * From dbTimeSchedule.mdb WHERE PrimaryID Like "T0101*"
    (this is the part i'am having difficulty, i dont know how i willl be able to
    do display all the records in a specific labels.)

    i hope you can help with my project vb masters... hoping for your reply and ideas!!! thank you
    Last edited by Killer42; May 8 '07, 09:44 AM. Reason: Please use [CODE]...[/CODE] tags around your code.
Working...