Probleme with insert command
Posted: Wed 19 Sep 2007 09:00
Hi everybody
I use the trial version of Mydac and i have a problem with an insert query.
On my form i have a Myquery component with these:
(i know the query is stupid but it's for the example)
after i have a mycommand component with these:
The probleme is, when i try to execute the sql insert , i have an error
" 'id1' cannot be null "
Sorry for my bad english.
I use the trial version of Mydac and i have a problem with an insert query.
On my form i have a Myquery component with these:
Code: Select all
select id1,id2 from DB1.Table1 where id1=4 and id2=1after i have a mycommand component with these:
Code: Select all
insert into DB1.Table2 (id1,Id2,NumLot) values (:Id1,:Id2,'BBB')The probleme is, when i try to execute the sql insert , i have an error
" 'id1' cannot be null "
Sorry for my bad english.