Folks,
I'm old to programming, but a bit of a novice in Access as yet.
My problem is that I am building a tool in access to collect data from external databases, present it for review to the user, and finally output the data to a file as a CSV.
So, I can find external databases and query them, but how best to display the results in tabular form.
I've considered using an unbound sub-form and trying to bind the data into it, however I can't figure out how to get the thing to take a recordset, or just take the SQL source for my query.
It's straightforward enough to display an arbitrary table or form using code like:
So - three questions:
1) Am I on the right track?
2) How to bind arbitrary sql into my sub-form?
3) Is there a better way to go about this?
Thanks!
Oralloy
I'm old to programming, but a bit of a novice in Access as yet.
My problem is that I am building a tool in access to collect data from external databases, present it for review to the user, and finally output the data to a file as a CSV.
So, I can find external databases and query them, but how best to display the results in tabular form.
I've considered using an unbound sub-form and trying to bind the data into it, however I can't figure out how to get the thing to take a recordset, or just take the SQL source for my query.
It's straightforward enough to display an arbitrary table or form using code like:
Code:
Dim displayTarget As Access.SubForm displayTarget = me.[Display: body] ''--displays a table displayTarget.SourceObject = "Table." & "PCR Process Table" ''--displays a form displayTarget.SourceObject = "PCR Database Extractor" ''--displays a query displayTarget.SourceObject = "Query.Test Query"
1) Am I on the right track?
2) How to bind arbitrary sql into my sub-form?
3) Is there a better way to go about this?
Thanks!
Oralloy
Comment