Re: Amibiguous name detected
From: Dirk Goldgar (dg_at_NOdataSPAMgnostics.com)
Date: 10/11/04
- Next message: CPutnam: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Previous message: Tommy Martin: "Re: Run App"
- In reply to: Tcs: "Re: Amibiguous name detected"
- Next in thread: Tcs: "Re: Amibiguous name detected"
- Reply: Tcs: "Re: Amibiguous name detected"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 11 Oct 2004 14:32:41 -0400
"Tcs" <tsmith@eastpointcityNoSpamorg> wrote in message
news:6fjlm0d44crm9cbeei6bdai2pl5st42m87@4ax.com
> Okay, let me clarify.
>
> Any "Dims" I did have in multiple modules I've commented out. As I
> did the actual progress bar updating. Any reference I find now
> merely says:
>
> intPBTaskMax = <somevalue>
>
> within a function or sub. But "just to be on the safe side", I went
> searching again. Not just once, but twice. And NO WHERE can I find
> anything except like I just mentioned above. Each occurence merely
> sets some value. There is also a max for the overall progress bar
> (my progress bar form has both an overall and task PB), not to
> mention a value for both. All four occur in most of my modules. But
> it is only THIS one, mentioned above, that's giving me the heartburn.
>
> Can there be some occurence somewhere hidden? On my form? (I've
> already looked, but I'm just grabbing at straws now.)
>
> Thanks in advance,
>
> Tom
>
> On Mon, 11 Oct 2004 14:05:10 -0400, "Dirk Goldgar"
> <dg@NOdataSPAMgnostics.com> wrote:
>
>> "Tcs" <tsmith@eastpointcityNoSpamorg> wrote in message
>> news:qaglm01ltr04osqsr38v2gv7sqf7qpvaj2@4ax.com
>>> Thanks. The good news is that this was one I didn't know. The bad
>>> news is that it didn't help. Oh, I saw where intPBTaskMax existed
>>> in multiple modules. But it's SUPPOSED to. The value changes
>>> depending
>>> on what module is being executed.
>>
>> PMFJI, but if you have *declared* it in multiple modules, and those
>> declarations are Public or Global, then you've made a mistake. A
>> global variable must only be declared once, anywhere in the project.
>> Then it
>> can be referred to from any module. Declaring it in more than one
>> place -- as a global variable -- would mean having more than one
>> storage location allocated to the same name, in which there is no
>> way Access or
>> VB can know which of those storage locations you mean when you use
>> that
>> name.
Hmm, that does make it harder. Do you have a control with this name? A
function?
What happens if you right-click on the name "intPBTaskMax" where you use
it in some module, and choose "Definition" from the context menu?
-- Dirk Goldgar, MS Access MVP www.datagnostics.com (please reply to the newsgroup)
- Next message: CPutnam: "Re: OpenCurrentDatabase or OpenDatabase - different versions of Access"
- Previous message: Tommy Martin: "Re: Run App"
- In reply to: Tcs: "Re: Amibiguous name detected"
- Next in thread: Tcs: "Re: Amibiguous name detected"
- Reply: Tcs: "Re: Amibiguous name detected"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|