 |
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

October 13th, 2003, 10:03 AM
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Comma Delimited Update?
Is there a way to upload tab/comma delimited text files into an Access database table that sits up on a server? (Say, I have 500 customer's info in a text file and I don't want to enter them one by one, but I want to load them into an existing table up on the server.)
I have been searching for a solution all over the web, all I could find is solutions for MySQL. Can someone direct me to a tutorial, a tool or some script that can do this in Access?
Thanks
|

October 13th, 2003, 10:40 AM
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, there is a way.
What you do is import the file by going to the File menu, Get External Data, Import.
Select the file type you wish to import from the Files Of Type drop down (this should be text files for comma delimited) Once you select the file, click ok (or open)
When the Import Text Wizard opens, clico on the Delimited radio button, the next screen select the type of delimiter, (comma or tab)
on the next screen select the name of the table that you want to add the info to, and follow the rest of the wizard.
I do suggest to create a new table and then use an append query to add the info to your actual table.
this may not work the first time, so just keep trying. Remember to do a backup before you try it.
Sal
|

October 13th, 2003, 11:25 AM
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am sorry, I might not have been clear on my post. The database would be online up on the server, and I would need to upload multiple records into it through a form. Thus I would not need to download/update/upload the DB all the time.
Currently, I do have a form for submitting new records and updates, but I can do that only one record at a time.
I would need a solution to do more than one at a time. Say, what would be the solution for submitting/importing 500 records at a time.
|

October 13th, 2003, 01:02 PM
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I am assuming that you are refering to a file that is on a Web Server?
If yes, is this web server a company owned web server where you work or for your web site host?
Please define "Up on a Server"
Sal
|

October 13th, 2003, 01:10 PM
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This would be a file up on a web site host's server. Not our server.
|

October 13th, 2003, 01:22 PM
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
You may be able to do it through code by creating a front end with a button that uses a specific file name, pre-formatted to meet your criteria. Read the file line by line and assigning each field in the text file to a recordset field.
Not as easy, but once it is done it should work for future uploads.
Your other choice is to bring the database down and do the import.
Sal
|

October 13th, 2003, 03:49 PM
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Thanks. I think I got the direction... :)
|
|
 |