Topic:Solved Access 2003 Import Remainpoint:0
   
PostTime:12/16/2008 4:16:19 PM FloorTop
Lv is 1
Avatar
Level:
1
Professional point:
32
Experience:
5
Thread:
287
Post:
980
Total online time:
5M
Joined date:
4/29/2007 12:12:00 AM
Last Visit:
12/16/2008 11:58:01 PM
Status:
Offline
Hi All.
I am working in Access 2003. I am importing a text file (import.txt) and saving specifications.
Once I get the txt file imported, I run the following queries:

1. cRQs in N,A,P Status (Yr End) 1 CONVERT dates (within the txt file)
Converts the text dates to mm/dd/yyyy
2. cRQs in N,A,P Status (Yr End) 2 APPEND
Appends the converted dates text file to the main table
I had to add another field to the main table to hold the dept names.
I also have the main table so that once the dates are converted I can change it from a text to a date filed.
3. cRQs in N,A,P Status (Yr End) 3 ADD depts.
Updates the added filed with the department names which are based off of certain characters in an ID field.
This is a reoccurring function.

What I want to happen is the following:
When the database opens
1. Delete old data in all main tables being used.
2. Import all txt files using proper specifications.
3. Convert date field within txt file.
4. Append to main tables.
5. Add depts.
6. I want this to happen as soon as the databases main form is opened.
7. Within these processes, not have to have the user select Yes to proceed with any query actions.

Cant this all be put in a code? I want to make this program less user interaction (user friendly) as possible. Am I asking for too much???
Can someone give me some suggestions please?
Thanks to all!!!
 
     
   
Gender PostTime:12/16/2008 10:40:34 PM Point:0 | Floor# 1
Lv is 1
portrait
Level:
1
Professional point:
94
Experience:
11
Thread:
294
Post:
1009
Total online time:
11M
Joined date:
4/29/2007 2:38:00 AM
Last Visit:
12/17/2008 12:46:59 AM
Status:
Offline
Thanks, I'll try it and let you know how it turns out.
Thanks for the insight to use VB help vs Access.
 
     
1

Sorry, you are not login, click here to login

 

About us | Advertise | Contact us | Partner | Bug Report|Suggesting box|Donation
Home | Forum | Affiliate program| Remote help | Setting | Search | Document | Help | Download|Message

 

Start new topicAdvanced search
Your location: Database -> Access