Checking HTML ChekBox based on Database values in Visual Basic using Webbrowser controll
Posted on 2004-04-05
I have to select the checkboxes on a HTML page through Visual Basic code based on Access Database(Located on my C drive) .HTML page is displayed in Visual Basic's Webbrowser control.Now 10 checboxes are displayed at one time.Each text box has a name exactly equal to the values in my database table.Database contains values of many students but I want to check those checkboxes which have the Name equal to ID of my students(There is a mixed data of all students).
Help me so that I can check those check boxes whose Name is exactly equal to my Students ID.
I tried this but failed.
Dim doc as HTMDocument
Private Sub Check_Click()
While Not adors.EOF
'it will create error if checkbox not found
Waiting for quick responce.
Masood Akhtar (firstname.lastname@example.org)