Forums

ASP

This topic is locked

Upload MS Excel to append to DB

Posted 16 Sep 2002 18:29:24
1
has voted
16 Sep 2002 18:29:24 Robert Kruse posted:
Does anybody know if it is possible to have a user upload an Excel spreadsheet to a website and then have that spreadsheet add it's rows to a table in an Access DB or SQL Server 2000 DB using .ASP and Jscript?

Any help would be appreciated.

Thanks,
Bob Kruse

Replies

Replied 17 Sep 2002 10:38:11
17 Sep 2002 10:38:11 Andrew Watson replied:
I havent tried this yet but on the surface, i think this may work...

Simply use asp upload or something to get the file on to your server, the name of which is obtainable via the filesystem object. Now if you have connection string for an excell spreadsheet you can dynamically use the file name obtained above as the data source. Now you should be able to do with the spreadsheet what you want.....

ill try this today if i can..

Cheers

Leed

:: Son, im Thirty.... ::
Replied 20 Sep 2002 03:12:44
20 Sep 2002 03:12:44 Brian Hanna replied:
This might work if your excel spreadsheet has a named region and is the same all the time?

Replied 20 Sep 2002 13:38:55
20 Sep 2002 13:38:55 Andrew Watson replied:
That depends on how advanced you want to go, you could upload anything and then resolve it logically

its all in the code

:: Son, im Thirty.... ::

Reply to this topic