Wrox Programmer Forums
|
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
 
Old October 13th, 2003, 10:03 AM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old October 13th, 2003, 10:40 AM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 13th, 2003, 11:25 AM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old October 13th, 2003, 01:02 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 13th, 2003, 01:10 PM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This would be a file up on a web site host's server. Not our server.
 
Old October 13th, 2003, 01:22 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old October 13th, 2003, 03:49 PM
Authorized User
 
Join Date: Sep 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks. I think I got the direction... :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating a comma-delimited data in XSLT dude153 XSLT 2 November 30th, 2007 12:12 PM
Comma delimited file to Excel Sheet vinod_yadav1919 VB How-To 0 August 5th, 2005 10:09 AM
Comma delimited text files bmurrin Beginning VB 6 8 February 26th, 2004 02:07 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.