Re: Registering programs in access
- From: "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx>
- Date: Sat, 28 Jan 2006 16:21:50 -0500
Sorry, I don't know what to say.
It worked fine for me with no changes to the sample code. In fact, I copied
your code into a test database, and it worked fine for me.
Function Call_BFB_Brad(strDB)
Dim Called_DB
'Create text string containing "Database to Call".
Called_DB = strDB
With COMAddIns("TsiSoon90.Connect").Object
.FileToOpen = Called_DB
.Exclusive = False
.FileIsAdp = False
.CloseAll
End With
End Function
Of course, you really should be declaring your variable types as Strings,
and there's no reason for variable Called_DB:
Function Call_BFB_Brad(strDB As String)
With COMAddIns("TsiSoon90.Connect").Object
.FileToOpen = strDB
.Exclusive = False
.FileIsAdp = False
.CloseAll
End With
End Function
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)
"Dr. Brad" <rbthomas@xxxxxxxxxxxxx> wrote in message
news:GPQCf.5233$2O6.2500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi Douglas,
> I did and I got the same results! I also reregisered "TsiSoon90.dll". I
> recieved the same error
> " Run-time Error 91: Object variable or With block variable not set." It
> hangs on the first statment within the With block (i.e..FileToOpen =
> "c:\db1.mdb"). If I take that ststement out, it hangs on the next
> statement etc.
>
> It seem to me that it wants me to Define an Object; Though, I do not know
> what object Object.
>
> Brad
>
> "Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx> wrote in message
> news:%23EgIp0DJGHA.3696@xxxxxxxxxxxxxxxxxxxxxxx
>> Just as a test, create a new database strictly to test TSISoon.
>>
>> If it works, try importing all of the objects from your existing database
>> into a new one.
>>
>> --
>> Doug Steele, Microsoft Access MVP
>> http://I.Am/DougSteele
>> (no private e-mails, please)
>>
.
- Follow-Ups:
- Re: Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- References:
- Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- From: Douglas J. Steele
- Re: Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- From: Douglas J. Steele
- Re: Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- From: Douglas J. Steele
- Re: Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- From: Dr. Brad
- Re: Registering programs in access
- From: Douglas J. Steele
- Re: Registering programs in access
- From: Dr. Brad
- Registering programs in access
- Prev by Date: Re: Registering programs in access
- Next by Date: Re: Registering programs in access
- Previous by thread: Re: Registering programs in access
- Next by thread: Re: Registering programs in access
- Index(es):
Relevant Pages
|