Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old March 9th, 2006, 07:13 AM
Friend of Wrox
 
Join Date: Dec 2005
Location: CHENNAI, TAMILNADU, India.
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anukagni Send a message via Yahoo to anukagni
Default Auto Dating Field


 Hello Guy's

 I have created an Table with following for Maintaining an for Gatepass : Gatepass No. , Date , Name of the Equipment, Specification,Quantity , Servicing Company, Status (Blocked,Finished)

 And now i want to generate an report in that report i want to get an auto-count day (i.e.) No. of Day from call Booked . I want to how should i created the field and build the expression for this function.

 Pls give the answer if u not able to understand ple reply me..

thanks in advance,
pap Raguv
  #2 (permalink)  
Old March 13th, 2006, 09:53 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Hi,

   It sounds like you want to know the number of days from the date of the report back to the date booked. If that is true, then create your report, and add a text box to the report. Then in the text box type =DateDiff("d", [yourdatefield], Date).

   I think that should do it. My syntax may be wrong. Do a search in the help box for DateDiff.

   Also, you can add this column to the query behind the report.

HTH


mmcdonal


Similar Threads
Thread Thread Starter Forum Replies Last Post
AUTO FORMAT field mfahmyg Access 2 April 4th, 2008 07:24 AM
auto fill field mankoti_mankoti2000 Access 1 May 26th, 2006 08:19 AM
Populate Auto-Number Field JeffGirard Access 2 August 26th, 2005 06:49 AM
Auto update timestamp field TwoNames PHP Databases 2 September 26th, 2004 06:01 PM
Auto Populate a field ? mar0364 Classic ASP Databases 4 July 9th, 2004 11:10 AM





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