|
-
Nov 6th, 2000, 02:15 PM
#1
Thread Starter
New Member
What is wrong with this statement?
using vb6 with sp4. Trying to populated text boxes with data from ado database. Vb6 crashes when this sub is run
Private Sub ItemSelected()
sSql = "Select * From Customertable Where Name = '" _
& DBCombo1.Text & "'"
Set Data1.Recordset = Data1.Database.OpenRecordset(sSql)
End Sub
I can add a msgbox to this sub and it will not crash but it will add 2 copies of whatever is selected and clear remaining items in combobox?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|