I try to Insert an Text Variable (item number) into SQLite.
I use two types of way to INSERT data
1. SQL1.ExecNonQuery2("INSERT INTO " & TableName & " VALUES (?,?)", Array As String(1, "itemNBR"))
2. SQL1.ExecNonQuery("INSERT INTO " & TableName & " VALUES (Null, 'itemNBR')")
I got the same results. The data which store in Sqlite is the String “itemNBR”. But I need "FMAS-2101".
What’s wrong with my code?
Andy
I use two types of way to INSERT data
1. SQL1.ExecNonQuery2("INSERT INTO " & TableName & " VALUES (?,?)", Array As String(1, "itemNBR"))
2. SQL1.ExecNonQuery("INSERT INTO " & TableName & " VALUES (Null, 'itemNBR')")
I got the same results. The data which store in Sqlite is the String “itemNBR”. But I need "FMAS-2101".
What’s wrong with my code?
Andy