JimEkleberry
Programmer
How do you use the value of a variable in a statement instead of it's name?
For example, you have a function
but this function will create a recordset actually named strRSName instead of the value that it was passed.
I am sure that this is easy but I cannot find the answer after searching 3 web sites, including Microsoft, and 2 books.
Perhaps I just do not know the proper name to look for.
Thanks for any help that you can provide.
For example, you have a function
Code:
Sub QueryDB(strRSName, strQuery)
Set strRSName = Server.CreateObject("ADODB.Recordset")
strRSName.Open strQuery, objConn, adOpenStatic, adLockReadOnly
End Sub
but this function will create a recordset actually named strRSName instead of the value that it was passed.
I am sure that this is easy but I cannot find the answer after searching 3 web sites, including Microsoft, and 2 books.
Perhaps I just do not know the proper name to look for.
Thanks for any help that you can provide.