PDA

Click to See Complete Forum and Search --> : A BUG?!???????


Zvonko
Aug 28th, 2000, 12:17 PM
Hello!

Recenty I posted post about update problem:
I use DataEnvironment and I have an command that updates db records with specified values (about 15 of them).
DataEnvironment1.Command1 Param1, Param2, Param3, Param4...
When I first ran it, it worked well, but when I tried to ru it for second time, error occured ("Data type mismatch in criteria expression.").
Then I posted a question here and nobody replied.
Today I was adding some records to database and the same thing occured. When I added the first record, it worked OK, but when I tried to add another one, an error occured. I closed my program (in IDE) and rerun it. Again first update and add was OK, for another add and update an error occured.

Any suggestions?

JHausmann
Aug 28th, 2000, 12:54 PM
Put a breakpoint on the line that passes the parms. When you hit it in code, step past the line with the f8 key and then examine the parameters in the immediate window. Something must be placing an unexpected value into one of the params. You might want to consider using an array to pass the parms, if possible.