Results 1 to 3 of 3
  1. #1
    mhoctober is offline Novice
    Windows 98/ME Access 97
    Join Date
    Sep 2010
    Posts
    7

    Using A Cal Control On A Form

    Experts...

    via a report my access database produces a driver run sheet for me and on this I want to have two cal controls.

    On the printed out report the first cal controls date value should show the current date and the second cal control should show a date 30 days in the future.



    So this is the code I am using in the Load event of the report..

    me.Cal1.value = date
    me.Cal1.value = date + 30

    However the cal controls both show the date that was selected in design mode - before the report was run?

    Any ideas?

  2. #2
    mhoctober is offline Novice
    Windows 98/ME Access 97
    Join Date
    Sep 2010
    Posts
    7
    Oops! The title of the post should read Report not Form.

  3. #3
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    You don't need to write code for this....just attach your functions to the control source of the report control...= date() For your date + 30 function, I would try a dateadd function: =dateadd("d",+30,date())

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2013, 10:56 AM
  2. Replies: 6
    Last Post: 03-14-2011, 09:37 AM
  3. Control Reference on a Form
    By gmitchell@exbrief.com in forum Forms
    Replies: 5
    Last Post: 01-24-2011, 12:31 PM
  4. Active X form control
    By amitsingha4u in forum Access
    Replies: 2
    Last Post: 05-18-2010, 12:21 AM
  5. Linked control in form
    By Zipster1967 in forum Forms
    Replies: 0
    Last Post: 04-14-2007, 01:40 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums