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

TsiSoon90 - Subscript out of range

Hi

I have been using this facility for some time, but recently get the
following message.

Error 9: Subscript out of range

Am using Windows XP Pro with Access 2002, although the feature has
worked on this PC in the past.

Code extract:
Public Function SwapDatabase(strSwapTo)
Dim strDatabaseLocation As String

strDatabaseLocation = Nz(DLookup("AppPath", "tblFirm")) & "\"
With COMAddIns("TsiSoon90.Connect").Object
.FileToOpen = strDatabaseLocation & strSwapTo
.Exclusive = False
.FileIsAdp = False
.CloseAll
End With

strSwapTo is the mdb file name.

Any ideas please? Thanks

Tom Blower
Nov 12 '05 #1
2 6429
On 1 Dec 2003 10:20:11 -0800, to*******@tiscali.co.uk (tom blower)
wrote:

I'm guessing the error occurs on the With line. If so, perhaps the com
addin is not installed? Or not named "TsiSoon90"?
Use your debugger to find out.

-Tom.
Hi

I have been using this facility for some time, but recently get the
following message.

Error 9: Subscript out of range

Am using Windows XP Pro with Access 2002, although the feature has
worked on this PC in the past.

Code extract:
Public Function SwapDatabase(strSwapTo)
Dim strDatabaseLocation As String

strDatabaseLocation = Nz(DLookup("AppPath", "tblFirm")) & "\"
With COMAddIns("TsiSoon90.Connect").Object
.FileToOpen = strDatabaseLocation & strSwapTo
.Exclusive = False
.FileIsAdp = False
.CloseAll
End With

strSwapTo is the mdb file name.

Any ideas please? Thanks

Tom Blower


Nov 12 '05 #2

Thanks Tom. On the button!

I had to re-register tsisoon90.dll. I seem to recall seeing something
about this when using XP.

Tom Blower
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

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

Similar topics

2
by: Lukelrc | last post by:
Hi, I have some VBscript that lists the files in a folder. What i want to do is populate an array with the file names and then use that array to populate a list box. I have got as far as...
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...
5
by: Richard Delorme | last post by:
The n869 draft says: J.2 Undefined behavior The behavior is undefined in the following circumstances: -- An array subscript is out of range, even if an object is ...
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...
0
by: wennerd | last post by:
I am getting a Subscript out of range after executing the following command Set oRstPick = connTemp.Execute(sSQL) It is a simple query: sSQL = "SELECT idCategory, categoryDesc, idParentCategory...
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...
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 =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
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: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.