Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Execute the value of a variable 1

Status
Not open for further replies.

ndalli

Programmer
Nov 6, 1999
76
MT
Hi,

I am trying to write a reusable function to move the pointer within a recordset. The recordset name will be passed as a parameter. Does anybody know how is it possible to execute the value of a variable

e.g.

call fncRecordset("ClientsRecorset")

Public fncRecordset(passedRecordset as String)

'Where MoveNext should move to the next record
' of the recordset ClientsRecordset

'passedRecorset will have the value
'of "ClientsRecordset"

passedRecorset.MoveNext
end function


Thanks in advance
 
You have your parameter declared as a String. Thats not going to work. Declare passedRecordset As Recordset and you should be good to go.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top