A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

OpenReport with WHERE clause not 'filtering' data



 
 
Thread Tools Display Modes
  #1  
Old August 15th, 2007, 01:10 AM posted to microsoft.public.access.reports
Andy
external usenet poster
 
Posts: 6
Default OpenReport with WHERE clause not 'filtering' data

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

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.