Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 8th, 2007, 01:33 PM
Authorized User
 
Join Date: Sep 2006
Posts: 73
Thanks: 6
Thanked 0 Times in 0 Posts
Default Lookup Field for Report

Hello all:

I am trying to figure out how to run a report based by date. I have a field in my 'Inventory' table named 'Submitted Date'. I would like to fire up combo box the pulls up a calendar and once a date is selected, fire up a report that will list all records from the inputted 'Submitted Date' and beyond.

I created a form which lists the start date and pulls up the calendar.
I need to pass the 'cboStartDate' parameter to my Inventory Report and list the records.

Thanks,
Tony
 
Old March 8th, 2007, 03:23 PM
Authorized User
 
Join Date: Jan 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just use the WhereCondition argument of the OpenReport command. It will apply a filter.

HTH RuralGuy (RG for short) acXP WinXP Pro
 
Old March 9th, 2007, 08:38 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

If the date is in the cboStartDate, what you might try is in the Query behind your report, place the following in the Criteria line for the StartDate field:

[Forms]![frmYourFormName].[cboStartDate]

Did that help? Otherwise I can show you how to do this programatically.


mmcdonal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Grouping with calculated field in report jack123 Access 3 August 9th, 2007 06:46 AM
Farmula Field in Crystal Report 7.0 myhelp Crystal Reports 1 February 27th, 2007 12:22 PM
Create lookup based on field value s.hendy Access 2 May 20th, 2005 04:08 AM
Calculating a field based on a lookup range nrwatson Access VBA 1 April 29th, 2004 06:41 PM
lookup table current field. Squid Access 0 December 21st, 2003 07:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.