Bilbo_Baggins_Esq
Registered User.
- Local time
- Today, 09:04
- Joined
- Jul 5, 2007
- Messages
- 586
Is there I can use a built string to refer to an existing recordset object?
For example, I build a string "rs_Char4"
I need to be able to associate that string with an existing recordset object (.OpenRecordset, .MoveNext, .Close, etc)
I've built a function which has a parameter "rsToManage as Recordset"
But I can't seem to use my built strings for that parameter when I call that function.
The function works FINE when I manually type the defined recordset's name.
But I need to have a way to use the strings.
I thought about building an extra function which evaluates as a recordset, with a long select case statement to read the strings and pass a recordset as the function's result.
But I can't help but think there's got to be a more elegant solution.
For example, I build a string "rs_Char4"
I need to be able to associate that string with an existing recordset object (.OpenRecordset, .MoveNext, .Close, etc)
I've built a function which has a parameter "rsToManage as Recordset"
But I can't seem to use my built strings for that parameter when I call that function.
The function works FINE when I manually type the defined recordset's name.
But I need to have a way to use the strings.
I thought about building an extra function which evaluates as a recordset, with a long select case statement to read the strings and pass a recordset as the function's result.
But I can't help but think there's got to be a more elegant solution.