Ask a Question related to Coldfusion Database Access, Design and Development.
-
KimMazz #1
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
-
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... -
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 : ... -
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... -
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... -
Data type mismatch in criteria expression
the Access database data typs for the 'active' and 'officer' fields are datatype Yes/No ---------------------------------------EmTiDOHActOff.cfm... -
E43509TS #2
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
-
KimMazz #3
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



Reply With Quote

