N
Neel
Hello ;
How can I Pass a parameter value from external source
such as VB6 script to the access 2002 report which is
based on a query, I need to Pass [ID] = 10
I have tried a few ways but it picks up all the records ,
I only need to report where ID = 10.
In the VB scipt I have :
---------------------------------------------------
..OpenReport strRptName,acViewPreview,,strWhere
..OutputTo 3,strRptName,"Snapshot Format(*.snp)",
snpflpth,-1
---------------------------------------------------
( NB : strWhere = "[ID] = 10" )
I am only trying to initiate a report to pull out ID = 10
records ,
Do I have to change anything in the report OR change the
query in some way so that the VB script passes the WHERE
clause with "[ID]=10" and the query or the report
recognises that it only has to report on the value of ID
= 10.
Can anyone help me OR point me to the right direction ???
I have tried this for 24 hours and am about to give up !!
Thank you ,
Neel.
How can I Pass a parameter value from external source
such as VB6 script to the access 2002 report which is
based on a query, I need to Pass [ID] = 10
I have tried a few ways but it picks up all the records ,
I only need to report where ID = 10.
In the VB scipt I have :
---------------------------------------------------
..OpenReport strRptName,acViewPreview,,strWhere
..OutputTo 3,strRptName,"Snapshot Format(*.snp)",
snpflpth,-1
---------------------------------------------------
( NB : strWhere = "[ID] = 10" )
I am only trying to initiate a report to pull out ID = 10
records ,
Do I have to change anything in the report OR change the
query in some way so that the VB script passes the WHERE
clause with "[ID]=10" and the query or the report
recognises that it only has to report on the value of ID
= 10.
Can anyone help me OR point me to the right direction ???
I have tried this for 24 hours and am about to give up !!
Thank you ,
Neel.