Advertisement

09.02.2008 at 05:33AM PDT, ID: 23695719
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

coldfusion INSERT INTO with spaces in Field and Table Names

Asked by MDIRECT in ColdFusion Application Server, SQL Query Syntax, Cold Fusion Markup Language

Tags: , ,

Hi There,

I'm sure this problem is very simple I just can't find out what I'm doing wrong. Need to insert a single value into a MS Acces database however both the TABLE NAME and the FIELD NAME within the table have spaces in  then. I am using the code below however getting errors.

Table Name is: MAINTENANCE LOG FAULT CALL MEMOS
Field Names: Job Reference, Text Entry

I have found info on using SELECT with the backwards single quote (`) mark for referencing field names with spaces however not sure whether this also works with INSERT INTO and whether I need something like `Job Reference` As JobRef for example, have tried various combinations but nothing seems to work. Also how do i reference the table name if its got spaces, do i use the same backward quote (`) or Double Quotes (") or single quotes('). Anyone know how to do this ?

Many thanks!

Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
<html>
<head>
</head>
 
<body <body topmargin=10 title="Call Received Confirmation">
 
<cfquery datasource="MLFC_MEMOS">
INSERT INTO 'MAINTENANCE LOG FAULT CALL MEMOS' (`Job Reference`, `text entry`) VALUES ('141470','Test message')
 </cfquery>
[+][-]09.02.2008 at 05:37AM PDT, ID: 22366629

View this solution now by starting your 14-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: ColdFusion Application Server, SQL Query Syntax, Cold Fusion Markup Language
Tags: Macromedia, Coldfusion, MX 7
Sign Up Now!
Solution Provided By: kelvinsparks
Participating Experts: 3
Solution Grade: A
 
 
[+][-]09.02.2008 at 06:30AM PDT, ID: 22367069

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]09.02.2008 at 07:22AM PDT, ID: 22367583

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 14-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43 / EE_QW_2_20070628