I'm try to call OpenReport from a VC++ application as follows:

m_pDoCmd->OpenReport( COleVariant(strReportName),
1, // acNormal
COleVariant(_T("CustomerID = 20")));

I have set the "FilterOn" option to 'Yes' for the Report via the Microsoft Access application

The Where clause is always ignored.

Does anybody have any suggestions as to why this is happening?

It's really starting to get my goat.

Thanks for you help