PC Review


Reply
Thread Tools Rate Thread

How do I deal with the "subscript is out of range" message.

 
 
AuditIA
Guest
Posts: n/a
 
      15th Sep 2009
This happened when I tried to append an excel file to a "structure only" copy
of last month's file. I've done this many time before, but now I'm afflicted
with this "subscript is out of range" message that stops me dead in my
tracks. What do I do BESIDES import the data as a new table and change all
the attributes?
 
Reply With Quote
 
 
 
 
Jackie L
Guest
Posts: n/a
 
      15th Sep 2009
The problem is that you have no control over the data coming from Excel.
There is no way to be assured that it is in the same format as the previous
file. I would suggest importing it into a separate table and then append to
your table(then you can force fields to be the correct format). Otherwise, I
would save the Excel file as .csv or .txt and then you can create import
specifications to format the data before importing. You will still have the
append issue.

You should be able to automate the process through code if needed and then
you can also delete the temp tables that are imported. Changing the
attributes on the new table will not necessarily work if the data does not
fit the data type you are giving it. That is why I suggest appending to your
existing table instead.



"AuditIA" wrote:

> This happened when I tried to append an excel file to a "structure only" copy
> of last month's file. I've done this many time before, but now I'm afflicted
> with this "subscript is out of range" message that stops me dead in my
> tracks. What do I do BESIDES import the data as a new table and change all
> the attributes?

 
Reply With Quote
 
AuditIA
Guest
Posts: n/a
 
      16th Sep 2009
Jackie,
Thanks for the reply.

I understand your suggestions and have used those methods. However, I have
done the append process I referenced below for about 6 months with success.
The text file is received, sorted, filtered, and exported from a program
called Monarch. It exports everything to Excel in a 2007 format which I then
import into my db. I have had no problems with this procedure - until
yesterday.

Why would this pop up when I have not changed my procedure and have been
successful in the past?

Any ideas?

"Jackie L" wrote:

> The problem is that you have no control over the data coming from Excel.
> There is no way to be assured that it is in the same format as the previous
> file. I would suggest importing it into a separate table and then append to
> your table(then you can force fields to be the correct format). Otherwise, I
> would save the Excel file as .csv or .txt and then you can create import
> specifications to format the data before importing. You will still have the
> append issue.
>
> You should be able to automate the process through code if needed and then
> you can also delete the temp tables that are imported. Changing the
> attributes on the new table will not necessarily work if the data does not
> fit the data type you are giving it. That is why I suggest appending to your
> existing table instead.
>
>
>
> "AuditIA" wrote:
>
> > This happened when I tried to append an excel file to a "structure only" copy
> > of last month's file. I've done this many time before, but now I'm afflicted
> > with this "subscript is out of range" message that stops me dead in my
> > tracks. What do I do BESIDES import the data as a new table and change all
> > the attributes?

 
Reply With Quote
 
Jackie L
Guest
Posts: n/a
 
      17th Sep 2009
It sounds like it is a change in the data. Why are you going from Monarch to
Excel? Monarch should be able to give you a .csv or .txt file. Going to
Excel in the interim can cause data to be altered by dropping leading zeros,
changing text to numbers, etc.


"AuditIA" wrote:

> Jackie,
> Thanks for the reply.
>
> I understand your suggestions and have used those methods. However, I have
> done the append process I referenced below for about 6 months with success.
> The text file is received, sorted, filtered, and exported from a program
> called Monarch. It exports everything to Excel in a 2007 format which I then
> import into my db. I have had no problems with this procedure - until
> yesterday.
>
> Why would this pop up when I have not changed my procedure and have been
> successful in the past?
>
> Any ideas?
>
> "Jackie L" wrote:
>
> > The problem is that you have no control over the data coming from Excel.
> > There is no way to be assured that it is in the same format as the previous
> > file. I would suggest importing it into a separate table and then append to
> > your table(then you can force fields to be the correct format). Otherwise, I
> > would save the Excel file as .csv or .txt and then you can create import
> > specifications to format the data before importing. You will still have the
> > append issue.
> >
> > You should be able to automate the process through code if needed and then
> > you can also delete the temp tables that are imported. Changing the
> > attributes on the new table will not necessarily work if the data does not
> > fit the data type you are giving it. That is why I suggest appending to your
> > existing table instead.
> >
> >
> >
> > "AuditIA" wrote:
> >
> > > This happened when I tried to append an excel file to a "structure only" copy
> > > of last month's file. I've done this many time before, but now I'm afflicted
> > > with this "subscript is out of range" message that stops me dead in my
> > > tracks. What do I do BESIDES import the data as a new table and change all
> > > the attributes?

 
Reply With Quote
 
AuditIA
Guest
Posts: n/a
 
      17th Sep 2009
There are several things done in Excel. First, an account number contined in
the data must be rid of its dashes. (I know that can be done in Access, but
its easier to do while I have it in Excel.) Then, there are certain fields to
be deleted and/or moved to a new position. All this is easier to do in
Excel. Do you know Monarch? You use masks & templates to extract info from
reports that are in any number of file formats. It's very useful. I use it
for my 9 companies in exactly the same way using the same set of templates.
This time, one of the company's data didn't work (the message) and the others
did. I'm still stumped about why and what I'm to do.

Your statement that the data has changed is undoubltedly correct. I
appreciate your input.

"Jackie L" wrote:

> It sounds like it is a change in the data. Why are you going from Monarch to
> Excel? Monarch should be able to give you a .csv or .txt file. Going to
> Excel in the interim can cause data to be altered by dropping leading zeros,
> changing text to numbers, etc.
>
>
> "AuditIA" wrote:
>
> > Jackie,
> > Thanks for the reply.
> >
> > I understand your suggestions and have used those methods. However, I have
> > done the append process I referenced below for about 6 months with success.
> > The text file is received, sorted, filtered, and exported from a program
> > called Monarch. It exports everything to Excel in a 2007 format which I then
> > import into my db. I have had no problems with this procedure - until
> > yesterday.
> >
> > Why would this pop up when I have not changed my procedure and have been
> > successful in the past?
> >
> > Any ideas?
> >
> > "Jackie L" wrote:
> >
> > > The problem is that you have no control over the data coming from Excel.
> > > There is no way to be assured that it is in the same format as the previous
> > > file. I would suggest importing it into a separate table and then append to
> > > your table(then you can force fields to be the correct format). Otherwise, I
> > > would save the Excel file as .csv or .txt and then you can create import
> > > specifications to format the data before importing. You will still have the
> > > append issue.
> > >
> > > You should be able to automate the process through code if needed and then
> > > you can also delete the temp tables that are imported. Changing the
> > > attributes on the new table will not necessarily work if the data does not
> > > fit the data type you are giving it. That is why I suggest appending to your
> > > existing table instead.
> > >
> > >
> > >
> > > "AuditIA" wrote:
> > >
> > > > This happened when I tried to append an excel file to a "structure only" copy
> > > > of last month's file. I've done this many time before, but now I'm afflicted
> > > > with this "subscript is out of range" message that stops me dead in my
> > > > tracks. What do I do BESIDES import the data as a new table and change all
> > > > the attributes?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does "subscript out of range" message mean when trying to cr. =?Utf-8?B?c2NvdHRpc2hmaXJlZmlnaHRlcg==?= Microsoft Access Reports 2 19th Jul 2007 07:37 PM
Can't import table into Access. Message "Subscript out of Range"? =?Utf-8?B?RGF2aWQgRWRnZXJ0b24=?= Microsoft Access 0 7th Jun 2007 05:31 AM
Error Message "Subscript our of range" =?Utf-8?B?Z3NtY2xhbmc=?= Microsoft Excel Misc 1 5th Apr 2007 06:59 PM
FileCopy Command Giving "Subscript Out of Range" Error Message =?Utf-8?B?SmltIEhhZ2Fu?= Microsoft Excel Programming 2 15th Jun 2005 06:07 PM
I get "subscript out of range" error message. How do I stop this? =?Utf-8?B?YWRsMTcwNA==?= Microsoft Word New Users 1 6th Dec 2004 04:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:01 PM.