PC Review


Reply
Thread Tools Rate Thread

Adding control to report

 
 
TheDrescher
Guest
Posts: n/a
 
      17th May 2010
I'm currently running a retention report from my database where you select a
specific date range and it returns all records from that range. The code I
use is:

Dim strWhere As String
Dim stDocName As String
stDocName = "RetentionReport"
strWhere = "[Date] >= #" & _
Forms!CountsReportMenu![FromDate] & "# And [Date] <=#" & _
Forms!CountsReportMenu![ToDate] & "# "

DoCmd.OpenReport stDocName, acPreview, , strWhere

I'd like to add a line in so it will also pull only the records where the
RetentionEffort field = Yes. Is there any way I can add this to my current
code? Thanks!
 
Reply With Quote
 
 
 
 
TheDrescher
Guest
Posts: n/a
 
      18th May 2010
My apologies, the question was never showing up so after a couple of hours I
figured I hit the wrong button and re-sent it. Thanks for the help!

"Marshall Barton" wrote:

> TheDrescher wrote:
>
> >I'm currently running a retention report from my database where you select a
> >specific date range and it returns all records from that range. The code I
> >use is:
> >
> >Dim strWhere As String
> > Dim stDocName As String
> > stDocName = "RetentionReport"
> > strWhere = "[Date] >= #" & _
> > Forms!CountsReportMenu![FromDate] & "# And [Date] <=#" & _
> > Forms!CountsReportMenu![ToDate] & "# "
> >
> > DoCmd.OpenReport stDocName, acPreview, , strWhere
> >
> >I'd like to add a line in so it will also pull only the records where the
> >RetentionEffort field = Yes. Is there any way I can add this to my current
> >code?

>
>
> I tried to answer this question in another newsgroup.
> Please do not post the same question multiple times. If you
> feel you must post a question to multiple groups, which is
> very rarely useful, cross post it by putting both groups in
> the To field of a single post.
>
> --
> Marsh
> MVP [MS Access]
> .
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Plus/Minus Sign to Calculated Control in Report JDB Microsoft Access Reports 1 24th Nov 2009 04:27 PM
How to prevent label being included when adding a new control in a report? JON JON Microsoft Access 2 11th May 2006 02:00 AM
Report / Sub report data source lost when adding a new sub report =?Utf-8?B?Sm9lIE1jQw==?= Microsoft Access Reports 5 4th Apr 2005 07:27 PM
Adding control to report from different report =?Utf-8?B?U2FyYWggU3RvY2t0b24=?= Microsoft Access Reports 1 28th Oct 2004 07:29 AM
(re)Adding the Crystal Report 'Line Control' to the Toolbox =?Utf-8?B?VHJveQ==?= Microsoft VB .NET 3 11th Jun 2004 07:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:36 AM.