problem with insert to memo field

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

  1. #1

    Default problem with insert to memo field

    I've moved a web site that I manage from a CF server 5 to CF MX.

    I didn't change anything in the database itself, the memo field are configured
    fine.

    Since then, I have a problem to insert more than 300 charecters into memo
    fields, if I insert more than 300, this is what I get:

    Error Executing Database Query.
    Application uses a value of the wrong type for the current operation.

    The error occurred in D:\hshome\yes-od\yes-od.com\shal.cfm: line 58

    56 : <cfset form.quest = ReplaceNoCase(form.quest,Chr(34),"'","ALL")>
    57 :
    58 : <cfinsert datasource="yes-od_lalo" tablename="ask" formfields="quest,
    email, fName, lName, sdate">
    59 : <br>
    60 : <br>

    Anyone can help?

    Thanks


    --------------------------------------------------------------------------------

    SQL insert into ask (quest,fName,lName,sdate) values ( (param 1) , (param 2)
    , (param 3) , (param 4) )
    DATASOURCE yes-od_lalo
    SQLSTATE &nbsp;



    rami1972 Guest

  2. Similar Questions and Discussions

    1. ASP - setting form field to insert memo
      Hi all. I am using DW's Insert Record behavior in an effort to create a form to insert a record into a MS Access database. Everything works fine -...
    2. problem displaying MEMO field from ACCESS 2000 on WINDOWS 20003
      Hi, I have been using access 2000 for two years on WINDOWS NT to display dynamic aweb page using ASP My ISP has now changed to Windows 2003,...
    3. Memo Field vs. OLE Obj
      > is there any appreciable difference between using a field If it's just TEXT, use Memo (or better yet, store the RTF file in the file system). ...
    4. Insert Date into Memo Field
      I wold like to be able to insert a date into a memo field. I have a form that sets the date and then copies it into the field into a bound control,...
    5. insert memo type data into a table
      I made a table with a Memo data type field. I can insert text longer than 255 into the table manually (from table datasheet view). But when I try...
  3. #2

    Default Re: problem with insert to memo field

    1. What kind of database? Oracle, MS-SQL, FoxPro ...?
    2. Run the query in a try-catch block and look what kind of SQL-error details
    you can gather. Perhaps you must use <cfqueryparam> to fix your problem.

    sdittbrenner Guest

  4. #3

    Default Re: problem with insert to memo field

    1. it's an access datebase
    2. I don't know how to do it, but I'll try to find out.

    Thanks
    rami1972 Guest

  5. #4

    Default Re: problem with insert to memo field

    well, couldn't fix it... anyone have a clue?
    rami1972 Guest

  6. #5

    Default Re: problem with insert to memo field

    ok, it's fine now, i changed the syntax from cfinser to a simple SQL insert statment...

    thanks!
    rami1972 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