Re: Amibiguous name detected

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Dirk Goldgar (dg_at_NOdataSPAMgnostics.com)
Date: 10/11/04


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)


Relevant Pages

  • Re: Amibiguous name detected
    ... Any "Dims" I did have in multiple modules I've commented out. ... actual progress bar updating. ... The good news is that this was one I didn't know. ... >declarations are Public or Global, ...
    (microsoft.public.access.modulesdaovba)
  • Re: Silent Access 2007 Runtime Installation?
    ... I think "q" means quiet, and the b still shows the progress bar (you have ... Albert D. Kallal (Access MVP) ...
    (microsoft.public.access.devtoolkits)
  • Re: Show Progress bar to Append Records to a table
    ... I have a progress bar that runs on its own, independently of the query. ... Albert D. Kallal (Access MVP) ...
    (microsoft.public.access.modulesdaovba)
  • Re: Animation in VBA
    ... I have a progress bar that runs independtly when you have a long process. ... You can see/try the application here: ... Grab the word merge example...and run it..there is a progress bar there you ... Albert D. Kallal (Access MVP) ...
    (microsoft.public.access.modulesdaovba)
  • Re: Silent Access 2007 Runtime Installation?
    ... I think "q" means quiet, and the b still shows the progress bar (you have ... Albert D. Kallal (Access MVP) ...
    (microsoft.public.access.devtoolkits)