dpatrickcollins
Programmer
- Nov 18, 2002
- 79
How do I programmatically access the RecordSource property of an Access form that is closed? I am familiar with the AllForms collection, as follows:
Dim obj As Object
Dim dbs As Object
Set dbs = CurrentProject
Set obj = dbs.AllForms(0)
But when I proceed to do the following:
str = obj.RecordSource
I get an error that RecordSource is not part of the objects properties. Any ideas??
Dim obj As Object
Dim dbs As Object
Set dbs = CurrentProject
Set obj = dbs.AllForms(0)
But when I proceed to do the following:
str = obj.RecordSource
I get an error that RecordSource is not part of the objects properties. Any ideas??