Guest_imported
New member
- Jan 1, 1970
- 0
I am using the data enviroment and Data report to generate a report from a access database. I need to be able to select a variable which is generated in the Vb code into the SQL code. Currently I have the SQL statement set to:
select * FROM History_Query1 where Reference='Joh502'
which selects the record from History_Query1 where the column Reference = Joh502.
I want to be able to pass this "where" condition in as a visual basic string so I can control the output of the report. This is the first time I have used the Data report and I cannot see a way of doing this but I am sure it is possible.
Any help would be appreciated.
Happy New Year
John
select * FROM History_Query1 where Reference='Joh502'
which selects the record from History_Query1 where the column Reference = Joh502.
I want to be able to pass this "where" condition in as a visual basic string so I can control the output of the report. This is the first time I have used the Data report and I cannot see a way of doing this but I am sure it is possible.
Any help would be appreciated.
Happy New Year
John