Problem with an Update on a table.

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Problem with an Update on a table.

    I have been using this query for sometime now. For some reason it doesn't want
    to work anymore. I have gone through to check my fields in the 2 access table
    to make sure that they are the same. This is the error message that I get.

    Error Occurred While Processing Request
    Error Executing Database Query.
    [MERANT][SequeLink JDBC Driver][ODBC Socket][Microsoft][ODBC Microsoft Access
    Driver] Too few parameters. Expected 1.

    Here is my code.





    <!--- This query Updates all of the information once you have set the query
    above --->
    <cfquery name="qryupdate" datasource="ACAOLdir">
    UPDATE OnlineDir INNER JOIN
    Online_Update_050205 ON OnlineDir.CnBio_ID = Online_Update_050205.CnBio_ID
    SET OnlineDir.CnBio_First_Name = Online_Update_050205.CnBio_First_Name,
    OnlineDir.CnBio_Middle_Name = Online_Update_050205.CnBio_Middle_Name,
    OnlineDir.CnBio_Last_Name = Online_Update_050205.CnBio_Last_Name,
    OnlineDir.CnBio_Suffix_1 = Online_Update_050205.CnBio_Suffix_1,
    OnlineDir.CnBio_Suffix_2 = Online_Update_050205.CnBio_Suffix_2,
    OnlineDir.CnAdrSal_Addressee = Online_Update_050205.CnAdrSal_Addressee,
    OnlineDir.CnAdrPrf_Addrline1 = Online_Update_050205.CnAdrPrf_Addrline1,
    OnlineDir.CnAdrPrf_Addrline2 = Online_Update_050205.CnAdrPrf_Addrline2,
    OnlineDir.CnAdrPrf_City = Online_Update_050205.CnAdrPrf_City,
    OnlineDir.CnAdrPrf_State = Online_Update_050205.CnAdrPrf_State,
    OnlineDir.CnAdrPrf_ZIP = Online_Update_050205.CnAdrPrf_ZIP,
    OnlineDir.CnAdrPrf_CountryLongDscription =
    Online_Update_050205.CnAdrPrf_CountryLongDscriptio n,
    OnlineDir.Email = Online_Update_050205.Email,
    OnlineDir.Fax = Online_Update_050205.Fax,
    OnlineDir.Phone = Online_Update_050205.Phone,
    OnlineDir.WebSite = Online_Update_050205.WebSite,
    OnlineDir.CnMem_1_01_Cur_Category_description =
    Online_Update_050205.CnMem_1_01_Cur_Category_descr iption,
    OnlineDir.DACBR = Online_Update_050205.DACBR,
    OnlineDir.CCSP = Online_Update_050205.CCSP,
    OnlineDir.DABCO = Online_Update_050205.DABCO,
    OnlineDir.DACAN = Online_Update_050205.DACAN,
    OnlineDir.CACBT = Online_Update_050205.CACBT,
    OnlineDir.DABCN = Online_Update_050205.DABCN,
    OnlineDir.DACBSP = Online_Update_050205.DACBSP,
    OnlineDir.DACBOH = Online_Update_050205.DACBOH,
    OnlineDir.DACNB = Online_Update_050205.DACNB,
    OnlineDir.DACRB = Online_Update_050205.DACRB,
    OnlineDir.DACBN = Online_Update_050205.DACBN,
    OnlineDir.DABCI = Online_Update_050205.DABCI,
    OnlineDir.DABFP = Online_Update_050205.DABFP,
    OnlineDir.DISPLAY = Online_Update_050205.DISPLAY,
    OnlineDir.phonedisplay = Online_Update_050205.phonedisplay,
    OnlineDir.faxdisplay = Online_Update_050205.faxdisplay,
    OnlineDir.emaildisplay = Online_Update_050205.emaildisplay,
    OnlineDir.websitedisplay = Online_Update_050205.websitedisplay,
    OnlineDir.Password = Online_Update_050205.Password,
    OnlineDir.Doctor_Display = Online_Update_050205.Doctor_Display,
    OnlineDir.Doctor_Emaildisplay = Online_Update_050205.Doctor_Emaildisplay,
    OnlineDir.Doctor_Faxdisplay = Online_Update_050205.Doctor_Faxdisplay,
    OnlineDir.Doctor_Phone = Online_Update_050205.Doctor_Phone,
    OnlineDir.Doctor_Website = Online_Update_050205.Doctor_Website
    ;
    </cfquery>

    murpg Guest

  2. Similar Questions and Discussions

    1. Update table from other table
      Hi Experts, This topic is not relate to cf but I need your solution who have an idea about it I'm using sql server2000 for my database. I...
    2. Update two table in one datagrid
      Dear all, I have created a dataset which gets the data from two table and show them in one datagrid. However, when I add the Edit column to the...
    3. update table with row locking
      Hi, Is it possible to lock row(s) when updating a table, so another call for update( from different session) will be rejected and to be on hold...
    4. How do you update corresponding rows on the same table after a row on the table has been updated?
      This is my goal: When specific columns in a row, in a table, are updated, corresponding columns in other rows in the same table need to be updated...
    5. UPDATE MULTIPLE ROWS IN ONE TABLE OBTAINING SUMS FROM ANOTHER TABLE
      UPDATE MULTIPLE ROWS IN ONE TABLE OBTAINING SUMS FROM ANOTHER TABLE I need to update a table with distinct sums from another table. I will...
  3. #2

    Default Re: Problem with an Update on a table.

    What is this semicolen ';' doing just before closing the query? I know I may sound stupid, but remove it and try!!!
    Maneesh Tikkiwal 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