473,385 Members | 1,569 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,385 software developers and data experts.

Losing Import Specifications - Access 2002

I almost feel stupid posting this, but maybe someone else understands
what's going on here.

I am importing a delimited text file, and have saved an import
specification so that for the user the whole thing is essentially
pushbutton. Except for some reason, it seems my import spec thinks
summer is a good time to pack up and go on vacation, so when the user
tries to run the import, I get error 3265 (missing spec), and the
import obviously fails. If I run an import with a "bad" spec and the
code crashes, does it lose my spec?

The text file I'm importing is fairly simple - essentially a CSV file
with headers. So I guess I could take Chuck's advice and use his
stuff. I was just thinking that this would be simpler...

Any easy way around this, or is this a case of

Patient: "Doc, it hurts when I..."
Doctor: "Well, don't do it, then!"

Thanks
Pieter

Nov 13 '05 #1
4 2249
I have had some problems getting import specifications to work also. I made
a work around for it. First I import the values into a temporary table.
Next I use an append query to append the values in the temporary table to
the real table with the formatting that I want -- changing data types from
strings to dates, etc.

Hope this helps.

Linda

<pi********@hotmail.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
I almost feel stupid posting this, but maybe someone else understands
what's going on here.

I am importing a delimited text file, and have saved an import
specification so that for the user the whole thing is essentially
pushbutton. Except for some reason, it seems my import spec thinks
summer is a good time to pack up and go on vacation, so when the user
tries to run the import, I get error 3265 (missing spec), and the
import obviously fails. If I run an import with a "bad" spec and the
code crashes, does it lose my spec?

The text file I'm importing is fairly simple - essentially a CSV file
with headers. So I guess I could take Chuck's advice and use his
stuff. I was just thinking that this would be simpler...

Any easy way around this, or is this a case of

Patient: "Doc, it hurts when I..."
Doctor: "Well, don't do it, then!"

Thanks
Pieter

Nov 13 '05 #2
thanks for the input, but I'm basically already doing that. My "MAIN"
table receives the dirty data, which I can then "wash" using code. It
all works fine. I'm just using the import spec to do the automatable
grunt work.

I know all about the conversion functions, CInt, CLng, ...etc, and
reasonably complex VBA... just no clue how to sort this out.

How do I export an Import Spec? I know it's in one of the hidden
tables... just no clue how to get it out.

Nov 13 '05 #3
I don't know a full, sophisticated answer, but if you go to Tools, Options,
View tab, you can click on "Hidden Objects" and "System Objects" so you can
see the hidden tables.

Linda

<pi********@hotmail.com> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
thanks for the input, but I'm basically already doing that. My "MAIN"
table receives the dirty data, which I can then "wash" using code. It
all works fine. I'm just using the import spec to do the automatable
grunt work.

I know all about the conversion functions, CInt, CLng, ...etc, and
reasonably complex VBA... just no clue how to sort this out.

How do I export an Import Spec? I know it's in one of the hidden
tables... just no clue how to get it out.

Nov 13 '05 #4
Sufficient anyway! Thanks! I knew I was missing something.
(Especially after trying to clean my ears and finding the Qtip came out
the other ear....)

I guess that makes me a Hollow Man... TS Eliot must have me pegged.

Nov 13 '05 #5

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

Similar topics

1
by: mark | last post by:
In Access 2000 and 2002, I have created an import specification to import the fixed-width recordset below into an existing table. I am having strange problems with the import of the date and time...
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...
3
by: Trev | last post by:
Is there a way to create/manipulate import specs in VBA?
1
by: usenethelp | last post by:
Has anyone had this problem where using the Text Import Wizard in Access 2002 Service Pack 3 does not allow you to change the field names for any field except the first one? If so, is there a...
1
by: David Berry | last post by:
Hi All. I'm looking for any help or sample code that can show me how to make a file import wizard in ASP.NET (VB preferred) like the one that MS Access uses. I'm working on a web site where the...
2
by: RRoma | last post by:
Does anybody know how I can import lists of numbers from Excel into Access without losing the preceeding Zeros??? The field must have a total of 10 digits.... Is this a function of how its saved in...
41
by: Stuart Golodetz | last post by:
Hi all, Just wondering whether there's any reason why exception specifications are enforced at runtime, rather than at compile-time like in Java? (This was prompted by reading an article on...
1
by: lorirobn | last post by:
Hi, I have been manually importing a text file on a weekly basis to an Access table. The data on one field is about to change (happens to be the first field). It was numeric, and is defined as...
7
by: Pete | last post by:
I need to import multiple tab delimited files for which I do not have the formats. All files have column headers in the the line. The files must be dynamic. The only common value is that the...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.