Index Of String Jpg I Keep Getting This Error:OleDbException (0x80040e14): Invalid SQL Statement; Expected 'DELETE', 'INSERT', ...
I keep getting this error:OleDbException (0x80040e14): Invalid SQL statement; expected 'DELETE', 'INSERT', ... - index of string jpg
I do not see the stack trace and we have tried the SQL in Access2003, where data are stored. Here's the code:
Sub Page_Load
if not Page.IsPostBack then
SO DB connection = new OleDbConnection (_
"Provider = Microsoft.Jet.OLEDB.4.0;" & _
"Data Source = C: \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ Inetpub \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ wwwroot \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ ASP_Tutorial \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ e ...
DBConnection.Open ()
SQLString As String Dim
SQLString SQLString = = "SELECT ToyID, image Toy ORDER BY ToyID;"
SO DbCommand = new OleDbCommand (SQLString, DBConnection)
As OleDbDataReader DataReader SO
DataReader DBCommand.ExecuteReader = ()
DataReader.Read ()
PicArray SO (30)
Dim index = 0
While DataReader.Read ()
picArray (index) = (DataReader ToyId ") &". jpg "
End While
End If
End Sub
I've been in several sites / tips messaage and nobody seems to have a solution.
0 comments:
Post a Comment