Ask a Question related to Coldfusion Database Access, Design and Development.
-
jen_ren #1
Inserting form info into access problem
I am developing three different surveys which are the same topic - different
view points. I have 2 forms working and going into the tables perfectly. On
this last one is the problem. You can fill out the form and submit with no
problem. It carries the correct values for each answer and enters a record into
the table. Here is when I encounter the problem, when I go into access and open
the table, the records that are entered all have the values of null or 0. Can
someone help me to understand why the correct values are being passed, but not
entered to the table correctly?
jen_ren Guest
-
Inserting data from a form to an MS access database
I'm new to coldfusion, and have run into a problem when trying to insert data from a basic HTML form into an MS Access database. The problem is... -
Problem inserting datas from wddx into Access
:confused; Hi, I have a problem on my CFMX 6.1 server inserting date type datas from a wddx. When I insert a date it is inserted as the date of... -
INSERTing record into Access via CFC?
I feel confident people are routinely doing this, but I have not been able to find a simple, concise tutorial on it... I have a Cold Fusion... -
Use PDf fill in form in Website and submitting form info.
I feel like I'm 99% there, but I am missing something. I created the PDF form offline and tested submitting it. It works fine. When I upload and... -
Inserting an Excel chart in an Access form.
The process described here must be completely automated. I'm building an Access form to show pricing evolution (price variance based on quantity... -
VillageX #2
Re: Inserting form info into access problem
Can you post the code for the insert?
VillageX Guest
-
jen_ren #3
Re: Inserting form info into access problem
Here is my insert statement. The other 2 are the same way and they work just
fine.
<cfquery name="Intostudent" datasource="year2Calendar">
INSERT INTO student
VALUES
('#Form.level#', #Form.twoA#, #Form.twoB#, #Form.twoC#, #Form.twoD#,
#Form.twoE#,
#Form.twoF#, #Form.twoG#, #Form.threeA#, #Form.threeB#, #Form.threeC#,
#Form.threeD#,
#Form.threeE#, #Form.threeF#, #Form.threeG#, '#Form.inconvenience#',
'#Form.benefit#', #Form.participate#,
'#Form.instruction#', '#Form.food#', '#Form.transport#', '#Form.afterCare#',
'#Form.communInfo#',
'#Form.dayLength#', #Form.inFavor#, '#Form.comment#', '#xypz#')
</cfquery>
jen_ren Guest
-
philh #4
Re: Inserting form info into access problem
Are all of the column entries in agreement as to datatype? Can you print the
form variable values out on the page that does the inserting? Can you
construct a SQL statement from the passed variables (as opposed to plugging
them into the CFQUERY tag) and run it in Access?
philh Guest
-
jen_ren #5
Re: Inserting form info into access problem
All of the columns data types match.
i]Can you print the form variable values out on the page that does the
inserting?
[url]http://localhost:8500/fcboefusion/Surveys/Calendar/student/process_student.cfm?l[/url]
evel=5&twoC=1&twoD=1&threeA=1&threeB=1&threeF=1&in convenience=1&benefit=1&partic
ipate=1&instruction=0&food=1&transport=2&afterCare =3&communInfo=3&dayLength=4&in
Favor=1&comment=lk3Basdjf3Blkjadlkjakdjflkjasdf
Don't quite understand the third statement. Do you mean pass the variables and
use <cfoutput>s to display???
I also have an application.cfm that uses <cfparam>s to set the values to null
or 0. I just don't understand why this 1 does not work and the other 2 do,
because they are set up the same way. Each are in different folders with
different application.cfm's
jen_ren Guest
-
paross1 #6
Re: Inserting form info into access problem
You state that when I go into access and open the table, the records that are
entered all have the values of null or 0 and also I also have an
application.cfm that uses <cfparam>s to set the values to null or 0 In case you
weren't aware, the APPLICATION.CFM template is executed for every page that is
called, so if you are repeatedly setting these form variables to NULL or 0
before every page that is called, that probably accounts for the database
columns are being set to those values.
Phil
paross1 Guest
-
SaltwaterOtter #7
Re: Inserting form info into access problem
Looks like you are sending a URL varable--try using #URL.var# vs. #Form.var#
SaltwaterOtter Guest
-
jen_ren #8
Re: Inserting form info into access problem
Thanks. Duh, I got it working. I did not have method='post' and the action page was not correct. I have had that cruddy flu bug. Thanks for yalls help
jen_ren Guest
-



Reply With Quote

