I'm having a strange problem inserting values into a table from code in a form. Inside a button on my form I update values in one table and that works fine. Right after that I perform an insert statement on another table and it doesn't give any errors (compile or run) yet it doesn't insert into the table.
The following is the insert statement in question:
[tt]
INSERT INTO costs(costid, caseid, dateentered, costtype, baseamount, numtimes, totalamount) VALUES(laNextCostID[1], thisform.caseid, DATE(), "REC", thisform.pgfCostWizard.pagBase.txtreceiving1.Value, null, thisform.pgfCostWizard.pagBase.txtreceiving1.Value)
[/tt]
I stopped the code here in the debugger to check values and then typeded the statement in the command window using the values and it worked fine.
[tt]
INSERT INTO costs(costid, caseid, dateentered, costtype, baseamount, numtimes, totalamount) VALUES(31, 1, DATE(), "REC", $ 9.0000, null, $ 9.0000)
[/tt]
Any thoughts would be appreciated,
tone
The following is the insert statement in question:
[tt]
INSERT INTO costs(costid, caseid, dateentered, costtype, baseamount, numtimes, totalamount) VALUES(laNextCostID[1], thisform.caseid, DATE(), "REC", thisform.pgfCostWizard.pagBase.txtreceiving1.Value, null, thisform.pgfCostWizard.pagBase.txtreceiving1.Value)
[/tt]
I stopped the code here in the debugger to check values and then typeded the statement in the command window using the values and it worked fine.
[tt]
INSERT INTO costs(costid, caseid, dateentered, costtype, baseamount, numtimes, totalamount) VALUES(31, 1, DATE(), "REC", $ 9.0000, null, $ 9.0000)
[/tt]
Any thoughts would be appreciated,
tone