OpenReport with WHERE clause not 'filtering' data

A

Andy

Hi guys

I have an Access 2003 project talking to a MS SQL database.

I have created a report with the datasource being a Stored Procedure
(usr_GetCases).

I am opening this report via the click event of a Command Button on a
form (which will later be used to gather report filtering parameters).

I am opening the report with the DoCmd.OpenReport command and a WHERE
clause however I get the full recordset not the selected data.

Here is my command:

DoCmd.OpenReport "usr_GetCaseByDate", acViewPreview, ,
"[ExposureAmount] = 5000"

Exposureamount is a 'money' field type.

I can't find any discussions to explain this. Do I have to set any
properties on the report for this to work?

Thanks...Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top