Ask a Question related to Coldfusion Database Access, Design and Development.
-
sage703 #1
ODBC 37000 error
:confused;
I'm getting the following error:
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO
statement.
SQL = "INSERT INTO Healthcare_Catalog( Program_Name, Program_Web,
Program_Description, Provider_Name_Short, School, Location_City,
Location_State, Program_Notes, Program_Contact, Contact_Email, Contact_Phone,
Distance, Degree_Level, Attendance_Options, Length_of_Program,
Length_of_Program_Years, Occupational_Information, Rural_Opportunities,
Admission_Prerequisites, Rural, Focus_Program) VALUES ( 'testone', '', '',
'ACNM', 35, '', '', '', '', '', '', 'Didatic Only', 'AA', 'Full Time', '< year
(0-10 days)', , '', '', '', 'no', 'no')"
Data Source = "AKHC"
The error occurred while processing an element with a general identifier of
(CFQUERY), occupying document position (3:2) to (3:37) in the template file
D:\Inetpub\dist-web\users\sagea\health_careers\sessions\program_in sert.cfm.
Apparently from this code:
<cfquery datasource="#data_source#">
INSERT INTO Healthcare_Catalog(
Program_Name,
Program_Web,
Program_Description,
Provider_Name_Short,
School,
Location_City,
Location_State,
Program_Notes,
Program_Contact,
Contact_Email,
Contact_Phone,
Distance,
Degree_Level,
Attendance_Options,
Length_of_Program,
Length_of_Program_Years,
Occupational_Information,
Rural_Opportunities,
Admission_Prerequisites,
Rural,
Focus_Program)
VALUES (
'#SESSION.ProgWiz.Program_Name#',
'#SESSION.ProgWiz.Program_Web#',
'#SESSION.ProgWiz.Program_Description#',
'#SESSION.ProgWiz.Provider_Name_Short#',
#SESSION.ProgWiz.School#,
'#SESSION.ProgWiz.Location_City#',
'#SESSION.ProgWiz.Location_State#',
'#SESSION.ProgWiz.Program_Notes#',
'#SESSION.ProgWiz.Program_Contact#',
'#SESSION.ProgWiz.Contact_Email#',
'#SESSION.ProgWiz.Contact_Phone#',
'#SESSION.ProgWiz.Distance#',
'#SESSION.ProgWiz.Degree_Level#',
'#SESSION.ProgWiz.Attendance_Options#',
'#SESSION.ProgWiz.Length_of_Program#',
#SESSION.ProgWiz.Length_of_Program_Years#,
'#SESSION.ProgWiz.Occupational_Information#',
'#SESSION.ProgWiz.Rural_Opportunities#',
'#SESSION.ProgWiz.Admission_Prerequisites#',
'#SESSION.ProgWiz.Rural#',
'#SESSION.ProgWiz.Focus#')
</cfquery>
I'm not sure what the problem is. Can anyone help me out?
Thanks,
S./
sage703 Guest
-
[microsoft][odbc microsoft access driver] syntax error (missing operator) in query expression error
I have a query I want to run using DBQwiksite siftware, which produces the syntax error (missing operator) in query expression error when... -
ODBC Error?
I've just started using Cold Fusion MX in conjunction with DW MX & Cartweaver. My problem is that when I try and create a new DSN, I am give the... -
ODBC Error MX 6.1
sorry to bounce this back to the top but this issue needs to be addressed, i have spent four days on macromedia's website. this is a big problem for... -
ODBC has error but no error message displayed
Hi All.. This is a strange one that I hope someone has come across. I have an asp.net application that needs to access a flat file databse via... -
Microsoft OLE DB Provider for ODBC Drivers error '80004005' Error
Hi folks - i've got a windows 2000 server (SP3) i've run the IIS lockdown tool on it and set for dynamic websites - all the static pages within the... -
mxstu #2
Re: ODBC 37000 error
For one thing it looks like you're missing a value ...
'< year (0-10 days)' , (missing ), '', '', '', 'no', 'no'
mxstu Guest
-
sage703 #3
Re: ODBC 37000 error
That happens because I don't put a value in the field for some reason (that's
something i can fix later i think). So this time I put a numeric value in the
field, as the database requires and yet I still got an error (very similar):
ODBC Error Code = 22005 (Error in assignment)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria
expression.
SQL = "INSERT INTO Healthcare_Catalog( Program_Name, Program_Web,
Program_Description, Provider_Name_Short, School, Location_City,
Location_State, Program_Notes, Program_Contact, Contact_Email, Contact_Phone,
Distance, Degree_Level, Attendance_Options, Length_of_Program,
Length_of_Program_Years, Occupational_Information, Rural_Opportunities,
Admission_Prerequisites, Rural, Focus_Program) VALUES ( 'TESTONE', '', '',
'ACNM', 35, '', '', '', '', '', '', 'Didatic Only', 'AA', 'Full Time', '1
year', 1, '', '', '', 'no', 'no')"
Data Source = "AKHC"
There appears to be the right number of fields (21 to insert into and 21
inserted). Also the only numeric fields (School, and Length_of_Program_Years
are both input correctly (without the single ' marks around the variables). I
seem to have a problem using INSERT INTO statements in general. When I use
CFINSERT I have no problems generally, although I cannot use CFINSERT herre I
don't think because I have multiple inserts from multiple forms (I'm using
session variables and have a multiple page form screen leading up to this
error).
Thanks for your help,
S./
sage703 Guest
-



Reply With Quote

