Retrieving array data elements using a query

carvind

Registered User.
Local time
Today, 07:28
Joined
Nov 10, 2000
Messages
22
Can some one guide me posting an example to retrieve data stored in an one-dimensional array using a select query? Thanks in advance for your help.
 
Create a Public Function in a Standard Module that retrieves the designated value from the array.

Call the function from the query.
 
You would have to create a wrapper function in a standard module.

Code:
Function GetMyArrVal(x as long) As WhateverDataTypeItIs
   GetMyArrVal = arrayName(x)
End Function

Then you would pass the element when calling.

MyFieldNameHere:GetMyArrVal([Field1])

or

MyFieldNameHere:GetMyArrVal(1)
 

Users who are viewing this thread

Back
Top Bottom