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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Syntax error in ASP code results page

Thread began 10/16/2012 8:05 am by YellowCircleWeb | Last modified 10/16/2012 11:03 am by YellowCircleWeb | 317 views | 1 replies

YellowCircleWeb

Syntax error in ASP code results page

Hi,

I'm using the DataAssist 2 wizard for an old ASP website I have been asked to work on.

I'm getting a syntax error on the results page:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Company Name'.
/db-admin/tblRecommendedRetailers_Results.asp, line 67


I think this is due to the database field name containing spaces - I cannot change this unfortunately as the database is also used by my client.


Can anyone provide any suggestions as to how to go about fixing this issue? The problem is being caused in the WHERE clause too, when searching for records. I've attached a copy of my page in zip format to this post.

***** UPDATE - FIXED IT MYSELF *****
I found the problem, it was to do with the ORDER BY part of the SQL statement. I needed to add square brackets around the field [Company Name] in this part of the SQL query. That fixed it.

Attached Files
tblRecommendedRetailers_Results.zip

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...