473,386 Members | 1,924 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

creating an import data routine

ARC
I posted previously about a strategy for importing data from a previous
database that is in a different version of Access.

I'm going with the strategy of having 2 sets of linked tables, one linked to
the source 97 db, one to a blank 2007 db, with a series of append queries.

It was suggested that, at the minimum, I should do a compact/repair on the
source db. However, since the source is in Access 97, and I'm writing this
util in Access 2007, I can't issue a compact / repair on the 97 database
using 2007 access (I tried, and the compact function returns false)

Any other thoughts on how to compact / repair the access 97 db?

My original install did create a compact shortcut, but the database name for
that shortcut would no longer be valid for network users, or if the user
changed the db name at some point. The only ideas I have are to "shell" to
that shortcut, and replace the database name with the source db the user
browsed to. Not sure if you can even shell out with a command like:

'Dim RetVal
'RetVal = Shell("C:\Program Files\Access 97 Runtime\Msaccess.exe" /excl
/runtime /profile "Instant Quote 2000 Professional" /wrkgrp "C:\Program
Files\Instant Quote 2000\System.mdw" /repair "C:\Program Files\Instant
Quote 2000\Database.mdb" /compact", 1)

Of course, in the above, I'd have to use a variable for the long string with
" characters. And I would replace: "C:\Program Files\Instant Quote
2000\Database.mdb" with the source file they selected.

The only other thought I had would be to somehow re-write the shortcut that
was installed when the user first installed the program, but I'm not quite
sure how to do that.

With either approach above, I wouldn't get a boolean true/false to let me
know if the process was successful.

Any ideas would be appreciated. Of course, if the append queries errored out
due to corruption, I could just have the user e-mail their database, and I
can run a repair for them.

Many Thanks,

Andy

Sep 11 '07 #1
0 1429

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Doug R | last post by:
Hello, I have a system that I am writing to automaticly import Credit Transaction data into a SQL Server 2000 Database. I am using a VB.Net application to detect when the file arives and prep...
1
by: DCM Fan | last post by:
Access 2K, SP3 on Windows 2K, SP4 All, I have an import spec set up with quoted Identifiers and comma-separated values. The text file is produced by a 3rd-party program of which I have no...
5
by: Johnny Meredith | last post by:
I have seven huge fixed width text file that I need to import to Access. They contain headers, subtotals, etc. that are not needed. There is also some corrupt data that we know about and can...
1
by: Steemer | last post by:
Okay, I checked with usual suspects and I'm still frustrated. ..txt file, fixed width. About 88 fields of varying length. All text fields. It will only let me add seperators to about the 410th...
3
by: Typehigh | last post by:
I am a pretty saavy user, but I am having a real problem with the DoCmd.TransferText operation. I manually used the File>Get External Data> Import routine to set up an import specification. It...
3
by: Garth Wells | last post by:
used the following "classic ASP" approach to build a dynamic menu, but would like to know the proper way to implement the same functionality using a .Net technique (e.g., placing the code in the...
4
by: BostonNole | last post by:
I am looking for suggestions on the most efficient way to import 7 different fixed width files into a DataSet. Not all at the same time. One file at a time, but the format could change from file...
18
by: Paul H | last post by:
I have a CSV file that is tab delimited and has no text qualifiers. Normally this would be OK, but the data has tabs in it as well! Is there anyway I can get this data into access? Here is what...
3
by: ninrulz | last post by:
I will try to explain my situation. I know that it is hard to offers solutions without fully understanding what people would like to achieve. I receive 2 csv files every month. The csv files...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.