Link to home
Start Free TrialLog in
Avatar of tatral
tatral

asked on

Checking HTML ChekBox based on Database values in Visual Basic using Webbrowser controll

Hello
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
doc.frm.adors.Fields("St_No").checked=True
Wend
End Sub
Waiting for quick responce.
Masood Akhtar (tatral1@hotmail.com)
ASKER CERTIFIED SOLUTION
Avatar of Kavar
Kavar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial