Problems with array in module (Access '97)
- From: "Nick via AccessMonster.com" <forum@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 18:17:48 GMT
Hi,
I'm having some troubles using a string array in a module in VBA. I can
dimension the string array but am unable to set the variables equal to a
constant within the module (Really needs to be in the module). Actual code
(all two lines of it) is near the end.
When I try to set strStep1(1) = "Description" by using 'Set' or 'Let'
it gives an error (Invalid outside procedure), and when I try using 'Const'
declaration, an error is generated when the program gets to the
parenthesis.
Public strStep1(10) As String
Set strStep1(1) = "Description" 'Invalid outside procedure
-or-
Public Const strStep(1) as string = "Description" 'Gets to '(' and expects
'As' or '='
Any help would be appreciated, post back if clarification is needed.
Thanks,
Nick
.
- Follow-Ups:
- Re: Problems with array in module (Access '97)
- From: Marshall Barton
- Re: Problems with array in module (Access '97)
- Prev by Date: Emailing from form using Lotus Notes 4.6
- Next by Date: Re: Problems with array in module (Access '97)
- Previous by thread: Emailing from form using Lotus Notes 4.6
- Next by thread: Re: Problems with array in module (Access '97)
- Index(es):
Relevant Pages
|