|
-
Jun 1st, 2004, 01:41 PM
#1
Thread Starter
New Member
dereference a string
I am tring to run this code:
----------------------
Dim col_name As String
col_name = tmprs![Field1]
Sheet.cells(1, 1).Value = tmprs1![col_name]
----------------------
tmprs and tmprs1 are both recordsets, and it changes each time. When I try to access tmprs1![col_name], it literally looks for the column name "col_name" instead of what's stored inside of it. How can I dereference col_name?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|