SteveMillman
Programmer
We are trying to access the Values of a table we are processing in a VB script.
The application is to build an access report that we can email... and where are stuck is accessing the contents of
fields on the table.
For example, one field on one table contains the name of the report we want access to run... and another contains the email address we want the report sent to.
There are a few dozen records on the table that comes out of our query, and these are the records we are trying to dynamically build reports and emails (with attachments) from.
How can we access the values of these fields?
We tried using "table name.field name" but ended up with the value of the field name instead of the field contents.
How do you do it?
In running a class object we try to supply the name for our report in its variable .ReportName by pointing it to the value in our Services table, ReportObjectName field as follows: .Reportname = ("Services.ReportObjectName"
This is does not work.
Thanks for your help,
Steve Millman
The application is to build an access report that we can email... and where are stuck is accessing the contents of
fields on the table.
For example, one field on one table contains the name of the report we want access to run... and another contains the email address we want the report sent to.
There are a few dozen records on the table that comes out of our query, and these are the records we are trying to dynamically build reports and emails (with attachments) from.
How can we access the values of these fields?
We tried using "table name.field name" but ended up with the value of the field name instead of the field contents.
How do you do it?
In running a class object we try to supply the name for our report in its variable .ReportName by pointing it to the value in our Services table, ReportObjectName field as follows: .Reportname = ("Services.ReportObjectName"
This is does not work.
Thanks for your help,
Steve Millman