Solved

INSERT INTO STATEMENT  -  -  Syntax

Posted on 1998-06-26
8
260 Views
Last Modified: 2010-05-03
Using a table with 24 fields (both number and text fields) is there a limit in length of Insert Into Statement (it takes 2 lines), and what is the proper syntax?  (Attempted a variety of ways - no success, get a Syntax Error in INSERT INTO Statement)
0
Comment
Question by:cbugler
  • 4
  • 2
  • 2
8 Comments
 
LVL 6

Expert Comment

by:anthonyc
ID: 1464371
insert into table1(column1, column2, column3, column4, ..., column24) values(value1, value2, value3, value4, ..., value24)
0
 

Author Comment

by:cbugler
ID: 1464372
I know the basic syntax for the statement.  The problem may be the length or the number fields.  We use '" & value & "', not sure if there is a better option for the number fields.  Also the field names are rather long, is there a limit in the total number of characters allowed in the total of field names (not one name).

0
 
LVL 6

Expert Comment

by:anthonyc
ID: 1464373
oh well, figure it out yourself.. You said you needed syntax, I gave it, and now I am wrong.
0
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

Author Comment

by:cbugler
ID: 1464374
I know the basic syntax for the statement.  The problem may be the length or the number fields.  We use '" & value & "', not sure if there is a better option for the number fields.  Also the field names are rather long, is there a limit in the total number of characters allowed in the total of field names (not one name).

0
 

Author Comment

by:cbugler
ID: 1464375
AnthonyC

Sorry if the rejection of your answer offended you.  I'm looking for an answer to my question not an arguement.  Yes you gave me the basic syntax and your right, and tha'ts the way I have been doing it, but I am still getting an error, so I was looking for more detail and an answer regarding the length of the statement.  
0
 
LVL 18

Expert Comment

by:deighton
ID: 1464376
Do you need to wrap your field names in [] ie [field name1]

Just a thought!

0
 

Author Comment

by:cbugler
ID: 1464377
Thanks deighton.

0
 
LVL 18

Accepted Solution

by:
deighton earned 100 total points
ID: 1464378
Do you need to wrap your field names in [] ie [field name1]

I take it from your reply it have worked, so I've re-submitted as an answer for you to grade.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question