Quote:
Originally posted by CookieNZ
I use the follow sub:-
Dim numberint As Integer = number
Dim numberstr As String
numberstr = Integer.Parse(numberint)
cmdsupport = dbconn.CreateCommand
cmdsupport.CommandText = "select * from supportcall where ID = '" & numberstr & "'"
MsgBox("Here")
dbsupport.Fill(dssupport, "SupportCall")
It displays the "Here" message, then seems to fall over on the fill call, still complaining about the string.
Any thoughts?
Are you sure that the 'Fill' call accepts arguments of those types in that order? I assume your not using the VS.NET IDE (though you really should, it is awesome), because if you were, you wouldn't be asking these questions (it has a bug-checker built in and it tells you exactly why your program isn't working. The intellisense it has is also an extremely useful tool).