Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

having problems with this code:

Status
Not open for further replies.

AlexUK

Programmer
Jun 26, 2000
24
GB
having problems with this code:


<CFQUERY DATASOURCE=&quot;#Application.dsn#&quot; NAME=&quot;EmpQuery&quot;>
SELECT RepID,Email,Name FROM WimpReps WHERE Name='#Form.Recipient#'
</CFQUERY>

query returns an access ODBC error - data mismatch

we have checked the fields - all text fields except RepID (number)

what is going wrong?

p.s. code works fine with postgres but not access
 
I think that the problem in &quot;#Application.dsn#&quot;. Try to make an ODBC from Windows control-panel, so your code may look like this:
-----------------------------------------------------
- <CFQUERY DATASOURCE=&quot;MyDSN&quot; NAME=&quot;EmpQuery&quot;> -
- Select RepID, Email, Name From WimpReps -
- Where Name='#Form.Recipient#' -
- </CFQUERY> -
-----------------------------------------------------

Or the version of your Access ODBC is old.

That all I have right now ... Bye.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top