This is probably pretty basic stuff, but I can't find any documentation on it in my Access book, or in Cold Fusion documentation. My guess this is pretty much an access issue rather than Cold Fusion, so I appreciate your patience.
Here's the query I used first:
<cfquery datasource="#db#" username="#un#" password="#pw#">
insert into fellows(first_name, mi, last_name, photo, agency, abbr, division, school, program, synopsis, website, email, start_year, end_year, status)
values('#trim(form.first_name)#', '#trim(form.mi)#', '#trim(form.last_name)#', '#trim(form.photo)#', '#trim(form.agency)#', '#trim(form.abbr)#', '#trim(form.division)#', '#form.school#', '#trim(form.program)#', '#form.synopsis#', '#trim(form.website)#', '#trim(form.email)#', '#trim(form.start_date)#','#trim(form.end_date)#', '#form.status#')
</cfquery>
Then I adjusted the date/time like this:
...
<cfif isDefined("form.start_date")>
'#trim(form.start_date)#',
<cfelse>
'null',
</cfif>
etc.
In both instances I get the data type mismatch error. The only time it works is when I have a date typed in the form.
What am I doing wrong?
Thanks in advance for your help.