Results 1 to 2 of 2

Thread: A BUG?!???????

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242

    Exclamation

    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).
    Code:
    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?
    Zvonko Bostjancic
    Ilirska Bistrica, Slovenia
    [email protected]
    Using VS6 Professional with SP3
    Programming mostly in VB and I've started to learn VC++ & MFC

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width