Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Access to Excel


Message #1 by Scott Watermasysk <swatermasysk@C...> on Thu, 22 Feb 2001 14:51:44 -0500
Hello All,



I know you can store Excel files in a MS Access Database. How could I get

them there through an ASP interface?



I also want people to be able to click on a link to down load the files, but

everytime I link to an excel file, it opens in the browser. Is there away

around this?



-Thanks

Scott

Message #2 by "TomMallard" <mallard@s...> on Thu, 22 Feb 2001 12:59:18 -0800
...assuming you created an access object...



    objAccess.TransferSpreadsheet acImport, 8[excel version], "tableName",

"path-to-excel-file", False, ""



This should work for files on the same machine as the db...it converts them

into tables directly, the False means the 1st row is data, if they're field

names use True. Last param is cell/row range, empty is all.



For the second question, windows host scripts or activex on the client can

open an instance of excel instead of within the browser, but these would

need to be registered on the client to run.



tom mallard

seattle


  Return to Index