Results 1 to 3 of 3
  1. #1
    TheFuzzball is offline Novice
    Windows 7 Access 2007
    Join Date
    Oct 2009
    Posts
    3

    Print custom date for data validation

    I need a function that can be used to print a specific day, a specific month but a dynamic year. e.g. 01/08/YEAR



    I need this to change on its own so that I don't have to change it myself.

  2. #2
    dcrake's Avatar
    dcrake is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Aug 2009
    Posts
    435
    Can you provide an example on how you intend to use this functionality and the reasoning behind it.

    David

  3. #3
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    If you just want to display it on a form or report etc use something like this:

    Public Function DatePlusYear() As String
    DatePlusYear = "01/08/" & Year(date)
    End Function

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

Similar Threads

  1. Error when trying to print or print preview
    By TriAdX in forum Reports
    Replies: 8
    Last Post: 08-25-2009, 08:20 AM
  2. Referencing table data in field validation rule
    By toad848 in forum Database Design
    Replies: 3
    Last Post: 03-19-2009, 07:03 AM
  3. Data Validation - Please help
    By larry S in forum Access
    Replies: 0
    Last Post: 11-16-2008, 10:24 PM
  4. Validation Rule: Date
    By krymer in forum Access
    Replies: 0
    Last Post: 08-27-2008, 03:30 PM
  5. Field Level Date validation
    By fadone in forum Forms
    Replies: 1
    Last Post: 12-09-2005, 10:23 PM

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