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

Subscript Out Of Range Error

Hi all. I use Access 2007. I have linked tables set up to a AS400 server. When I try to split the database, I get the following error : Subscript out of range.

I have no idea what this mean. I have googled it, but not much clearer on this.

Any idea anyone?
Jun 8 '07 #1
6 16145
ADezii
8,834 Expert 8TB
Hi all. I use Access 2007. I have linked tables set up to a AS400 server. When I try to split the database, I get the following error : Subscript out of range.

I have no idea what this mean. I have googled it, but not much clearer on this.

Any idea anyone?
You typically get this Error when you try to reference, or set a value to, an invalid Array Index. The following code will generate this Error, since you are trying to assign a value to an invalid Array Index (11). I don't have the slighest idea why this type of Error would occur during an operation that you described.
Expand|Select|Wrap|Line Numbers
  1. ReDim MyArray(1 To 10) As String
  2. MyArray(11) = "Some String"
Jun 11 '07 #2
FishVal
2,653 Expert 2GB
Hi all. I use Access 2007. I have linked tables set up to a AS400 server. When I try to split the database, I get the following error : Subscript out of range.

I have no idea what this mean. I have googled it, but not much clearer on this.

Any idea anyone?
Hi!

Try to split your database manually.
1) Open blank database.
2) Link in it all tables from your database.
If it fails, try to link tables one-by-one to localize your problem. I think the problem may be with your server linked tables.
3) Import all other objects: queries, forms, reports, modules.

Good luck.
Jun 11 '07 #3
ADezii,FishVal

Thank you for the replies from both of you. ADezii, as you described, yes it is a bit strange that that error will appear as I am not even close to an Array( Only have 1 in my database so far anyway). I am only trying Accesss's split tool.

FishVal, I will try your suggestion and then see if it works ok.

Thanks to both
Jun 11 '07 #4
Hey FishVal

I tried your suggestion and it works fine. Opened a new database, linked all the tables to the AS400 server and then imported the queries,macros and forms from the original database and all tested fine.

Thanks!
Jun 11 '07 #5
FishVal
2,653 Expert 2GB
ADezii,FishVal

Thank you for the replies from both of you. ADezii, as you described, yes it is a bit strange that that error will appear as I am not even close to an Array( Only have 1 in my database so far anyway). I am only trying Accesss's split tool.

FishVal, I will try your suggestion and then see if it works ok.

Thanks to both
As far as I know Access wizards (particulary Split wizard) are written in VBA. So it can be an unexpected and unhandled error in one of Access hidden modules.
This may be a explanation, but not a helpful one of course. Thats why I've suggested you to perform manual split.

Good luck.
Jun 11 '07 #6
ADezii
8,834 Expert 8TB
As far as I know Access wizards (particulary Split wizard) are written in VBA. So it can be an unexpected and unhandled error in one of Access hidden modules.
This may be a explanation, but not a helpful one of course. Thats why I've suggested you to perform manual split.

Good luck.
It happened to be a very good, and of course correct, explanation. Good save!
Jun 11 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: andy.rich | last post by:
I am getting the following error and I do not know why. Can anyone help? -------------------------------------------------------- this is what appears on the screen...
2
by: jv | last post by:
I have a form that is used every day to create quotes. However, every 2 weeks or so a user would randomly get an error 9 - subscript out range message. I'm not using any array in this form. Does...
8
by: VB Programmer | last post by:
I'm acutally using VB6, not VB.NET, but I couldn't find the newsgroup for version 6.... I need help for something that should be simple. I keep getting a "subscript out of range" error and...
51
by: Pedro Graca | last post by:
I run into a strange warning (for me) today (I was trying to improve the score of the UVA #10018 Programming Challenge). $ gcc -W -Wall -std=c89 -pedantic -O2 10018-clc.c -o 10018-clc...
6
by: josh | last post by:
Hi I've a dubt! when we have overloaded functions the compiler chooses the right being based on the argument lists...but when we have two subscript overloaded functions it resolves them being...
6
by: Andy | last post by:
Hi all, I started developing a little app on my Mac using XCode some month ago. The app is running fine on my mac like a sharm. Now I am nearly ready and yesterday I moved the whole source code...
1
by: fperri | last post by:
I have converted a database I finished into an MDE. I'm supposed to be delivering it today. I get a subscript out of range error when the user tries to print a report from the print preview window....
4
by: Han | last post by:
when I exe my project in vs.net2005,I got the error following: Debug Assertion Failed! Program:........ File:c:\program files\microsoft visual studio 8\vc\include\vector Line:756 ...
6
by: brandon01 | last post by:
Keep getting "subscript out of range" any idea why? This function is looped btw.. Thx... Private Sub getBday() bDay = List1.List(nextBday) bDayArr = Split(bDay, " - ") Text1.Text =...
1
banning
by: banning | last post by:
Im a PHP developer and I officially HATE ASP why does my code give me this error? ERROR: "Microsoft VBScript runtime error '800a0009' Subscript out of range ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: 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: 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
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: 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...

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.