Help importing excel file into Access DB

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

  1. #1

    Default Help importing excel file into Access DB

    I need to import an excel file into an access database. I got the below code
    from a forum on another site, but it is not working. I get an error with the
    FROM clause. Help!

    <cfquery name="imp_bat" datasource="m3db">
    INSERT INTO imp_bat
    SELECT *
    FROM OpenDataSource('Microsoft.Jet.OLEDB.4.0', 'Data
    Source="c:\stats\stats.xls";Extended properties=Excel 5.0')...bat$
    </cfquery>

    macdonald7 Guest

  2. Similar Questions and Discussions

    1. Importing Text From Excel
      I am running into a problem when I am trying to import text from an excel spreadsheet into InDesign. When I copy/paste it from Excel, I lose all of...
    2. Importing Fields from Excel into PDF Form
      Kelly, You can setup PF-Merge to merge Excel into PDF in under 3 minutes. Reruns of changed data is setup in seconds! PF-Merge will also...
    3. Importing Excel data
      On each import FM 5.5 crashes on the last record to import! e.g. dummy.xls contains of 21 records - FM crashes on the last ( 21st ) or takes...
    4. Data Access Problem when importing custom file
      Hi, I have an aspx file that creates a custom class object and calls a method which should return a DataSet. It throws a: Description: The...
    5. Renaming Excel file linked to Access form
      I created an Access form linked to an Excel file that I need to e-mail to others. When they rename the Excel file and try to click on the Access...
  3. #2

    Default Re: Help importing excel file into Access DB

    I believe for that to work you would need excel installed on the server, but I could be wrong. you may want to use emerle's CFX_excel2Query tag
    Typheous Guest

  4. #3

    Default Re: Help importing excel file into Access DB

    your best bet would be to open the MSacess file and do an Import.

    jorgepino 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