Access database getting mismatch data on criteria

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Access database getting mismatch data on criteria

    Hello,

    It's been a while since I used ad Access DB with CF so, forgive my memory
    lapse. But, can anyone explain why this query is throwing the error of
    mismatch data type in criteria at the line
    where id ='#id#'

    I am setting all my variables at the top of the page from a form.

    <cfquery datasource="#request.datasource#">
    UPDATE Sponsorships
    SET
    spnsr_details ='#spnsr_details#',
    spnsr_Type ='#spnsr_Type#',
    spnsr_pricing ='#spnsr_pricing#'
    WHERE
    id ='#id#'
    </cfquery>

    Kim


    KimMazz Guest

  2. Similar Questions and Discussions

    1. Datatype mismatch in criteria expression
      All, Any help you can lend on this would be greatly appreciated. I am not a coldfusion coder by any means and have stumbled into this problem at a...
    2. Access data type mismatch for empty form field
      Hello Everyone; I'm using an MS Access DB on a CFMX (CF 6) site...and updating records in a db from a form ..the CFM for code looks like : ...
    3. Help Outputting data from Access database
      I need to outputa grouped set of data from an Access database using CF. Basically a Person can be associated to many positions, programs and...
    4. Copying data from one Access database to another
      I am working on a project where I need to get data from an Access database uploaded daily by my client and copy fields from various tables into...
    5. Data type mismatch in criteria expression
      the Access database data typs for the 'active' and 'officer' fields are datatype Yes/No ---------------------------------------EmTiDOHActOff.cfm...
  3. #2

    Default Re: Access database getting mismatch data on criteria

    Typically ID is number, especially if you are using autonumber in MsAccess.
    You don't need the quotes
    id =#id#
    Also check the data types for your other values, I would think that pricing is
    a float and should not be considered a string.

    E43509TS Guest

  4. #3

    Default Re: Access database getting mismatch data on criteria

    taking out the quotes did it. thanks
    Kim

    "E43509TS" <webforumsuser@macromedia.com> wrote in message
    news:du5cfm$oog$1@forums.macromedia.com...
    > Typically ID is number, especially if you are using autonumber in
    > MsAccess.
    > You don't need the quotes
    > id =#id#
    > Also check the data types for your other values, I would think that
    > pricing is
    > a float and should not be considered a string.
    >

    KimMazz Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139