Here's a real doozy for ya everyone,
I'm trying to import a spreadsheet from a web site using just the minimal amount of code possible (don't want to write a whole big module here or anything--unless I have to of course). I have looked at some other methods of doing this. One method involved using the Microsoft Internet Transfer ActiveX Control, but I apparently don't have that control on my computer, and I'm not sure it's the right method I would want to use anyway (I don't have an FTP server, so that may not work).
At any rate, I am NOW looking at the REAL simple transferspreadsheet command. This seems to ALMOST work. I have the following line of simple code:
Private Sub cmdTest_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "TempImport_Tbl", " True
End Sub
One line of code MIGHT do it. However, when I try to run this routine, I get an "error 3651, not a valid Internet Address" That's weird, because the address is perfectly valid (try it in a simple browser window and you'll see). Seems like this little code line MIGHT just work if I'm getting an error that actually recognizes that as an Internet address.
I need to import data into this simple database directly from a web site (I'm sure this can be done). I want it to be imported into a temp table I have in the database, and then I want to do some queries and other things to format the data (I've got that down fine).
If anyone knows of a way to do this, I'd sure appreciate the help.
As always, this forum is the best, so thanks in advance for any help anyone can offer!
I'm trying to import a spreadsheet from a web site using just the minimal amount of code possible (don't want to write a whole big module here or anything--unless I have to of course). I have looked at some other methods of doing this. One method involved using the Microsoft Internet Transfer ActiveX Control, but I apparently don't have that control on my computer, and I'm not sure it's the right method I would want to use anyway (I don't have an FTP server, so that may not work).
At any rate, I am NOW looking at the REAL simple transferspreadsheet command. This seems to ALMOST work. I have the following line of simple code:
Private Sub cmdTest_Click()
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "TempImport_Tbl", " True
End Sub
One line of code MIGHT do it. However, when I try to run this routine, I get an "error 3651, not a valid Internet Address" That's weird, because the address is perfectly valid (try it in a simple browser window and you'll see). Seems like this little code line MIGHT just work if I'm getting an error that actually recognizes that as an Internet address.
I need to import data into this simple database directly from a web site (I'm sure this can be done). I want it to be imported into a temp table I have in the database, and then I want to do some queries and other things to format the data (I've got that down fine).
If anyone knows of a way to do this, I'd sure appreciate the help.
As always, this forum is the best, so thanks in advance for any help anyone can offer!