Results 1 to 3 of 3
  1. #1
    wasim_sono is offline Advanced Beginner
    Windows XP Access 2013 64bit
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73

    Date Format

    Hello All



    I want to chage the value of Billingmonthfield as follows.

    Date field Billingmonthfield

    01-08-2006 072006

    i.e. as user enter date in the date field the default value of BillingmonthFiled should be set to minus(-) 1 of month and same year.
    It should be used a date function but I tried and never geeting the result.
    Any one can help me?

    Thanks.

  2. #2
    StepUP is offline Advanced Beginner
    Windows 7 64bit Access 2000
    Join Date
    Dec 2005
    Posts
    99
    Format(DateAdd("m",-1,Me.Datefield),"mmyyyy")

  3. #3
    wasim_sono is offline Advanced Beginner
    Windows XP Access 2013 64bit
    Join Date
    May 2005
    Location
    Pakistan
    Posts
    73
    Dear John F
    Thanks for ur reply. Can u tell me that where I write this code? either in control source or in VBA editor if in editor then at what's event.

    Thanks.

    Wasim

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

Similar Threads

  1. Format / Autoformat / Sandstone Help.
    By caljohn527 in forum Database Design
    Replies: 0
    Last Post: 10-30-2008, 05:51 PM
  2. Text Box Format
    By Scott in forum Forms
    Replies: 0
    Last Post: 01-09-2008, 11:13 PM
  3. Replies: 0
    Last Post: 07-24-2006, 06:31 AM
  4. Conditional Format Query
    By Schwagr in forum Queries
    Replies: 3
    Last Post: 03-20-2006, 02:39 PM
  5. Date Format
    By St3ph3n in forum Access
    Replies: 4
    Last Post: 03-09-2006, 11:23 AM

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