?
Solved

Using Recordset Variable

Posted on 2012-08-23
3
Medium Priority
?
334 Views
Last Modified: 2012-08-23
Instead of using "rsData!FieldName" I want to use rsData!(strFieldName) where strFieldName is a variable that I can populate.

What is the correct syntax?

Thanks.
0
Comment
Question by:Buck_Beasom
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 38326082
rsData.Fields(strFieldName)
0
 
LVL 75
ID: 38326087
You just need:

rsData(strFieldName)

mx
0
 

Author Closing Comment

by:Buck_Beasom
ID: 38326608
Worked like a charm. Thanks.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question