C carvind Registered User. Local time Today, 07:28 Joined Nov 10, 2000 Messages 22 Oct 26, 2012 #1 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.
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.
G Galaxiom Super Moderator Staff member Local time Today, 16:28 Joined Jan 20, 2009 Messages 12,895 Oct 26, 2012 #2 Create a Public Function in a Standard Module that retrieves the designated value from the array. Call the function from the query.
Create a Public Function in a Standard Module that retrieves the designated value from the array. Call the function from the query.
boblarson Smeghead Local time Yesterday, 23:28 Joined Jan 12, 2001 Messages 32,059 Oct 26, 2012 #3 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)
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)
boblarson Smeghead Local time Yesterday, 23:28 Joined Jan 12, 2001 Messages 32,059 Oct 26, 2012 #4 And I was slow on typing that all up.
G Galaxiom Super Moderator Staff member Local time Today, 16:28 Joined Jan 20, 2009 Messages 12,895 Oct 26, 2012 #5 boblarson said: And I was slow on typing that all up. Click to expand... Sure but your answer was actually what the poster asked for, an example.
boblarson said: And I was slow on typing that all up. Click to expand... Sure but your answer was actually what the poster asked for, an example.