• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

ASP Insert error MSAccess

Getting a generic insert syntax error, need another set of eyes.

insert into teams (team_name, city, state, contact_lname, contact_fname, contact_phone, contact_email, coach_lname, coach_fname, coach_phone, coach_email, division, level, tid, uslaxid, deposit, deposit_date, balance, balanace_date, date_registered, regid) values ('Nest Virus','xxxllville','VA','Jones','Matt','703-727-9999','mjones@xxx.com','Jones','Devin','703-727-1111','djones@xxx.com','U15','A',1,'xxx-111',0,#1/1/2011#,900,#1/1/2011#,#10/12/2011#,'nsg_swvb_2012_201110128546')

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.

/includes/register_team_process.asp, line 130
 
0
Matt Pinkston
Asked:
Matt Pinkston
1 Solution
 
Wayne BarronCommented:
The word LEVEL is a reserved word.
Which would be causing this issue.
Wrap the Name with Brackets [LEVEL]

insert into teams (team_name, city, state, contact_lname, contact_fname, contact_phone, contact_email, coach_lname, coach_fname, coach_phone, coach_email, division, [level], tid, uslaxid, deposit, deposit_date, balance, balanace_date, date_registered, regid) values ('Nest Virus','xxxllville','VA','Jones','Matt','703-727-9999','mjones@xxx.com','Jones','Devin','703-727-1111','djones@xxx.com','U15','A',1,'xxx-111',0,#1/1/2011#,900,#1/1/2011#,#10/12/2011#,'nsg_swvb_2012_201110128546') 

Open in new window


See if that solves this issue.
Carrzkiss
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now