Re: Passing an array to function
- From: "jer99 via AccessMonster.com" <u27295@uwe>
- Date: Sat, 07 Oct 2006 15:16:16 GMT
Thanks for the good eye Roy.
Actually I had caught the end function, however, I didn't catch the
sArray(iTempCount) = ""
I probably would have if the error I received wasn't as strange.
It had said that it couldn't recognize the array passed - or some such
message. That had thown me off since I do not deal with arrays for the most
part.
Again, thanks Roy and I apologize for posting code with such a blatant error.
jerry
RoyVidar wrote:
"jer99 via AccessMonster.com" <u27295@uwe> wrote in message
<675db45f5171a@uwe>:
I've read through the messages here and have tried a number of[quoted text clipped - 26 lines]
things. Still can't get this to work.
Anyone?
When I copy/paste your function into VBE, it first complains about
the last End Function, which is supposed to be End Sub. Then it
complains about Type Mismatch on the line
If iTempCount = "" Then
where you compare an integer with ZLS, which isn't supposed to be
possible. I don't know what you intend with this test, but I
suppose you could remove it. Or are you intending to test the
content of the array?
If sArray(iTempCount) = "" Then
When this is fixed, there's no complaint about missing array on my
setup. I suggest using Option Explicit at the top of each module,
which helps pick up such as this. To ensure this is turned on in
every new module, in Tools | Options, check "Require Variable
Declaration".
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-modules/200610/1
.
- Follow-Ups:
- Re: Passing an array to function
- From: strive4peace
- Re: Passing an array to function
- From: RoyVidar
- Re: Passing an array to function
- References:
- Passing an array to function
- From: jer99 via AccessMonster.com
- Re: Passing an array to function
- From: RoyVidar
- Passing an array to function
- Prev by Date: Define an array of field names the elegant way?
- Next by Date: Weird problem with SQL Statements with Date fields
- Previous by thread: Re: Passing an array to function
- Next by thread: Re: Passing an array to function
- Index(es):
Relevant Pages
|