This is my problem, I have written all these codes:
[CODE=vb]Dim combs As New ADODB.Recordset
cmbacc.Clear
combs.Open "select acml_account_nu mber from clientsdatabase ", con
combs.MoveFirst
While Not combs.EOF
cmbacc.AddItem (combs!acml_acc ount_number)
combs.MoveNext
Wend
combs.Close
End Sub
Sub cmbacc_click()
Dim mn As ADODB.Recordset
'Dim path As String ="\images\pictu re.gif
mn.Open "Select * from CLIENTSDATABASE where acml_account_nu mber='" & cmbacc & "'", con
PictureBox1.Pic ture = mn!img_passport _img
End Sub[/CODE]
Thus, it gives error when I click the account no in the combo box.
Pls what can I do?
[CODE=vb]Dim combs As New ADODB.Recordset
cmbacc.Clear
combs.Open "select acml_account_nu mber from clientsdatabase ", con
combs.MoveFirst
While Not combs.EOF
cmbacc.AddItem (combs!acml_acc ount_number)
combs.MoveNext
Wend
combs.Close
End Sub
Sub cmbacc_click()
Dim mn As ADODB.Recordset
'Dim path As String ="\images\pictu re.gif
mn.Open "Select * from CLIENTSDATABASE where acml_account_nu mber='" & cmbacc & "'", con
PictureBox1.Pic ture = mn!img_passport _img
End Sub[/CODE]
Thus, it gives error when I click the account no in the combo box.
Pls what can I do?
Comment