Hello,
Can anyone tell me what is wrong here. I am getting a Syntax error with the prepared statement
Dim db As New SQLiteDatabase Dim ps As SQLitePreparedStatement db.DatabaseFile = mod_SQLite.mod_Schema_Control.UTIL_GET_DB_File_Location If db.Connect Then ' Prepare the Statement //ps = SQLitePreparedStatement(db.Prepare(SET_Employee)) ps = SQLitePreparedStatement(db.Prepare(("INSERT INTO Credentials (Company_Name, Database_Server, Database_Name, User_iD, Password) Values (?, ?, ?, ?, ?)")) 'Bind the parameters ps.BindType(0, SQLitePreparedStatement.SQLITE_TEXT) ps.BindType(1, SQLitePreparedStatement.SQLITE_TEXT) ps.BindType(2, SQLitePreparedStatement.SQLITE_TEXT) ps.BindType(3, SQLitePreparedStatement.SQLITE_TEXT) ps.BindType(4, SQLitePreparedStatement.SQLITE_TEXT) ps.Bind(0, CustomerName) ps.Bind(1,DatabaseServer) ps.Bind(2, DatabaseName) ps.Bind(3, userid) ps.Bind(4, password) ps.SQLExecute If db.Error Then MsgBox Str(db.ErrorCode) + " - " + db.ErrorMessage db.Close Else // Couldn't Connect to the Database MsgBox Str(db.ErrorCode) + " - " + db.ErrorMessage End If