Solved

INSERT INTO STATEMENT  -  -  Syntax

Posted on 1998-06-26
8
256 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
Comment Utility
insert into table1(column1, column2, column3, column4, ..., column24) values(value1, value2, value3, value4, ..., value24)
0
 

Author Comment

by:cbugler
Comment Utility
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
Comment Utility
oh well, figure it out yourself.. You said you needed syntax, I gave it, and now I am wrong.
0
 

Author Comment

by:cbugler
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:cbugler
Comment Utility
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
Comment Utility
Do you need to wrap your field names in [] ie [field name1]

Just a thought!

0
 

Author Comment

by:cbugler
Comment Utility
Thanks deighton.

0
 
LVL 18

Accepted Solution

by:
deighton earned 100 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now