close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

error is search with #PreserveSingleQuotes(WADbSearch1.whereClause)#

Thread began 9/23/2010 10:39 am by Ken Ang | Last modified 9/27/2010 10:57 am by Ken Ang | 1175 views | 10 replies

Ken Ang

error is search with #PreserveSingleQuotes(WADbSearch1.whereClause)#

i have two table some how if i search a few times from different table it wil give me this error

Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access Driver] The specified field 'crmStatusID' could refer to more than one table listed in the FROM clause of your SQL statement.

The error occurred in C:\ColdFusion9\wwwroot\webapp\crm\index.cfm: line 55

53 : FROM crm INNER JOIN crmStatus ON crm.crmStatusID = crmStatus.crmstatusID
54 :
55 : #PreserveSingleQuotes(WADbSearch1.whereClause)#
56 :
57 : ORDER BY crmID DESC



--------------------------------------------------------------------------------

VENDORERRORCODE -3007
SQLSTATE HY000
SQL SELECT crm.crmID, crm.crmDate, crm.HotelName, crm.ContactPerson, crm.Mobile, crm.Room, crmStatus.crmStatusID, crmStatus.status FROM crm INNER JOIN crmStatus ON crm.crmStatusID = crmStatus.crmstatusID WHERE ((crmStatusID = 2)) ORDER BY crmID DESC
DATASOURCE webapp2010

Resources:

it is telling me that there are error on lines 55 but it is working a few time and than i give me this error. I can see that on the about "WHERE ((crmStatusID = 2))" ; I think the "crmStatusID = 2" should be "crmStatus.crmStatusID" but it is not working still.

can you tell me where is this from?

#PreserveSingleQuotes(WADbSearch1.whereClause)#

i think it has something to do with session that keep this

#PreserveSingleQuotes(WADbSearch1.whereClause)#

as "WHERE ((crmStatusID = 2))"

how to make this to crmStatus.crmStatusID

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...