Android Question Update field in SQL

John Sturt

Active Member
Licensed User
Longtime User
Hello
I am trying to update a Int field in a SQL database.
so far this is what i have
SQL.ExecnonQuery2("UPDATE TableName SET IntField = ?",Array As Int(NewValue))

Any help?
Many Thanks
 

mangojack

Expert
Licensed User
Longtime User
Do you get any error message ... ?

try ..
B4X:
SQL.ExecNonQuery2("UPDATE TableName SET IntField = ?",Array As Object(NewValue))
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
With no error info it makes it hard .. How are you sure the field is not updating ?
can you upload project or at least some more code ..
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
B4X:
SQL.ExecNonQuery2("UPDATE TableName SET IntField = ? WHERE TheRecordID = 99",Array As Object(NewValue))

When do you wish a single record to be updated ... Need some more info / code
 
Upvote 0

Similar Threads

Top