Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

INSERT INTO STATEMENT  -  -  Syntax

Posted on 1998-06-26
8
Medium Priority
?
265 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Suggested Courses

963 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