I totally agree about the cfinsert statement, but this is an
old form built by someone else, and I was trying to find a quick
fix 🙂 But, I did go ahead and change to a SQL insert statement,
and now I am getting the following error:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver][ODBC
Socket][Microsoft][ODBC Microsoft Access Driver] Too few
parameters. Expected 1.
The error occurred in
E:\Inetpub\wwwroot\internships\request\internrequest_process.cfm:
line 110
Called from
E:\Inetpub\wwwroot\internships\request\internrequest_process.cfm:
line 9
Called from
E:\Inetpub\wwwroot\internships\request\internrequest_process.cfm:
line 1
Called from
E:\Inetpub\wwwroot\internships\request\internrequest_process.cfm:
line 110
Called from
E:\Inetpub\wwwroot\internships\request\internrequest_process.cfm:
line 9
Called from
E:\Inetpub\wwwroot\internships\request\internrequest_process.cfm:
line 1
108 : '#Trim(form.Signature)#',
109 : '#Trim(form.approve)#',
110 : '#Trim(form.notes)#'
111 : )
112 : </cfquery>
SQL INSERT INTO request ( ID, FirstName, LastName, banner,
email, Street, City, Zip, DayAC, DXchng, DayPhone, DayExt, cellAC,
cellXchng, cellPhone, EveAC, EveXchng, EvePhone, EveExt, credits,
sem, year, grad, prog, program2, hours, pract, credit_prev, PLIP,
outside_co, repeat, working, type, mentor, mentor_org,
mentor_phone, mentor_fax, concurrent, current_hours, needs,
employer, employ_org, employ_phone2, volunteer_org,
volunteer_phone, certify, Signature, approve, notes ) VALUES ( ID,
'KC', 'VanHout', '871111654', 'kcvanhout@law.du.edu', 'asdf',
'asdf', 'asdf', 'asdf', 'asd', 'asdf', 'asdf', 'asdf', 'asd',
'asdf', 'asdf', 'ads', 'asdf', 'asdf', '2', 'Spring', '2006', 'May
2005', 'Day', 'full time', 'asd', 'y', 'y', 'y', 'y', 'y', 'y',
'Business-Corporate L5002', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf',
'as', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'asdf', 'yes',
'asdf', '', 'asdf' )
Here is my insert statement: