Ask a Question related to Dreamweaver AppDev, Design and Development.
-
antler44 #1
Export from Excel to Access using ASP in DWMX
Hi
Anyone know an ASP script for transferring data from an Excel sheet to an
Access table, some of the fields of which contain names which have an
apostrophe (') in them.
I have tried all sorts of things but am getting tripped up by the apostrophe
which is used as a field container in the SQL :
"INSERT INTO tblResults Values(0,'" & rsExcel("FeisID") & "' , '" &
rsExcel("CompNo") & "' , '" & rsExcel("Entry") & "' , '" & rsExcel("Name") &
"' , '" & rsExcel("School") & "' , '" & rsExcel("Position") & "' , '0' , '"
& Done & "')"
The first field is the ID field of tblResults and need to be incremented
automatically. If I leave the first value out, I get an error along the
lines of "Number of query values and destination fields are not the same"
Also, if the name field is like Harry O'Hare, the thing fails...
Any ideas anyone? Many thanks
Jim
antler44 Guest
-
Export to excel
Hi, I have an aspx page with an export to excel functionality....it opens a dialog box asking the client to save/open the xls file.However this... -
Name Redefined? What is this Dim? (DWMX/ASP/VBscript/Access)
Hi, I've been having this problem with a few sites now. It appears that in some cases, and I can't spot a trend, but when I add a recordset to a... -
Excel into Access using ASP with DWMX
Hi Anyone know an ASP script for transferring data from an Excel sheet to an Access table, some of the fields of which contain names which have an... -
How to Export to Excel?
How can I export to a excel a datagrid? -- LUIS ESTEBAN VALENCIA MICROSOFT DCE 2. MIEMBRO ACTIVO DE ALIANZADEV -
Export to Excel C#
Hi, I am having a problem exporting a Datagrid to excel in asp.net. For some reason I am getting a blank excel page. I set up in IIS the Mime for... -
artsybrenda #2
Re: Export from Excel to Access using ASP in DWMX
I recently had the problem with the apostrophe in Excel. What someone told me
to do, and it worked, was to
Copy a blank cell
Select the column of cells with the extra apostrophe
Paste Special, choose Value and Choose Add.
What this does is add a "nothing" to the beginning of the cells which takes
the apostrophe aways.
What happens if you just do a "CSV" export and then import that file into
Access?
artsybrenda Guest



Reply With Quote

