Inserting form info into access problem

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default Re: Inserting form info into access problem

    Can you post the code for the insert?
    VillageX Guest

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default 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

  7. #6

    Default 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

  8. #7

    Default Re: Inserting form info into access problem

    Looks like you are sending a URL varable--try using #URL.var# vs. #Form.var#
    SaltwaterOtter Guest

  9. #8

    Default 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

  10. #9

    Default Re: Inserting form info into access problem

    Hope you feel better, Jen!
    philh Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139