DavidTigerch
MIS
Hi all i got an application that takes url value from users .The user types the url in textbox and click a sommand button and ...
i have list of urls in my database i want my program fetch the url value from my database and use it instead..
So if i have 20 url records in mysql db i want my Private Sub Command1_Click(Index As Integer) runs 20 times and takes the url from db and pass it to rest of function. I be happy if some tell me how i can do that.Thanks
Mysql connection
i have list of urls in my database i want my program fetch the url value from my database and use it instead..
So if i have 20 url records in mysql db i want my Private Sub Command1_Click(Index As Integer) runs 20 times and takes the url from db and pass it to rest of function. I be happy if some tell me how i can do that.Thanks
Code:
Private Sub Command1_Click(Index As Integer)
Select Case Index
Case 0:
If txtURL.Text <> "" Then
[B]RichTextBox1.Text = Inet1.OpenURL(txtURL.Text, icString)[/B]
End If
Case 1:
End
End Select
Command4_Click ' calliing the remaining function within the loop
End Sub
Mysql connection
Code:
Dim CNN As ADODB.Connection
Set CNN = New ADODB.Connection
CNN.Open "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=visualbasic66;USER=root;PASSWORD=;OPTION=3;"
CNN.Execute "select url from sheet1 "