skiphooper
Registered User.
- Local time
- Today, 10:20
- Joined
- Nov 29, 2000
- Messages
- 76
Hi EveryOne,
I am using A2k.
I have written a function called x_lookup, to return certain fields in a table or query based on user input.
Lets say one of the variables passed to the function is rtn_fld as string
This variable containes the field name of what the user wants passed back.
My recordset is called rstInpt.
The user passed "NP3" as rtn_fld.
When I return the field with statement:
x_lookup = rstInpt!
How do I get the return statement to say
x_lookup = rstInpt!NP3
I tried using the variable name a few different ways with no results.
Not found in this collection.
Hope I explained this correctly ?
Thanks
Skip Hooper
[This message has been edited by skiphooper (edited 02-02-2001).]
I am using A2k.
I have written a function called x_lookup, to return certain fields in a table or query based on user input.
Lets say one of the variables passed to the function is rtn_fld as string
This variable containes the field name of what the user wants passed back.
My recordset is called rstInpt.
The user passed "NP3" as rtn_fld.
When I return the field with statement:
x_lookup = rstInpt!
How do I get the return statement to say
x_lookup = rstInpt!NP3
I tried using the variable name a few different ways with no results.
Not found in this collection.
Hope I explained this correctly ?
Thanks
Skip Hooper
[This message has been edited by skiphooper (edited 02-02-2001).]