I am fairly new with VB even though I have used ASP and C++ before. My problem is with VB connecting me to my database i have set up. If i could get through this problem i am good to go, however i am stuck right now. Any help would be very much appreciated. Here is a portion of my code, this is the part that gives me the error. That part is in the first line with the New ADODB.Connection. It doesn't seem to like it and i have no clue why. Any comments of suggestions would be great, thanks.
Set conn = New ADODB.Connection
conn.ConnectionString = "Driver={Microsoft Access Driver};" & "DBQ=C:\TEMP\HHM\HHM.mdb"
conn.Open
Prodlist = "Select * From Products where '" & txtVC & "' =VenderCode"
Set rs = conn.Execute(Prodlist)
Do While rs.EOF
lstCatalog.AddItem rs!ProductID
rs.MoveNext
Loop
rs.Close
conn.Close
Set conn = New ADODB.Connection
conn.ConnectionString = "Driver={Microsoft Access Driver};" & "DBQ=C:\TEMP\HHM\HHM.mdb"
conn.Open
Prodlist = "Select * From Products where '" & txtVC & "' =VenderCode"
Set rs = conn.Execute(Prodlist)
Do While rs.EOF
lstCatalog.AddItem rs!ProductID
rs.MoveNext
Loop
rs.Close
conn.Close