I have a table in access with a foreign key.
I try to make an insert, but get an foreign key violation in b4J. With an other tool I can execute the sql without a problem.
The problem is, I must pass the value Null. But some how it dont work in b4j.
I try to make an insert, but get an foreign key violation in b4J. With an other tool I can execute the sql without a problem.
The problem is, I must pass the value Null. But some how it dont work in b4j.
B4X:
dim strSQL as string
strSQL=" INSERT into t_test(id, persnr, name) values (5021,Null, 'Herbert' ) "
sql.BeginTransaction
sql.ExecNonQuery(strSQL)
sql.TransactionSuccessful
sql.ExecNonQuery("COMMIT;")