coward
Member
Right, well I gave up on the whole mysql side of things, just so that I could teach myself some more vb using databases (now rather than later - gonna install mysql manually at some stage tho). So I made a test database with access.
so...
command = "SELECT * FROM user WHERE user_id=1"
myconnb.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\test.mdb;"
Try
myconnb.Open()
Catch ex As Exception
MsgBox("Could Not Connect To Database", MsgBoxStyle.Exclamation, "No Connection")
End
End Try
MsgBox("Connecion To Database Test Opened", MsgBoxStyle.Information, "New Connection")
recset = myconnb.Execute(command)
thats my code, but i keep getting "syntax error in FROM statement, and brushing up on my sql is something that I did just to make sure that i was right, and I see no probs at all, so if anyone has an idea let me know
cheers
so...
command = "SELECT * FROM user WHERE user_id=1"
myconnb.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\test.mdb;"
Try
myconnb.Open()
Catch ex As Exception
MsgBox("Could Not Connect To Database", MsgBoxStyle.Exclamation, "No Connection")
End
End Try
MsgBox("Connecion To Database Test Opened", MsgBoxStyle.Information, "New Connection")
recset = myconnb.Execute(command)
thats my code, but i keep getting "syntax error in FROM statement, and brushing up on my sql is something that I did just to make sure that i was right, and I see no probs at all, so if anyone has an idea let me know
cheers