Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    cfljanet is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    58


    Quote Originally Posted by June7 View Post
    This works for me.

    Me.Catch_Date.DefaultValue = "#" & Me.Catch_Date + 1 & "#"
    Hi June, I am sorry to bother you with this again. I understand if you ignore!
    I had to abandon development a few months back as things got busy but I have a little time and wanted to sort this out. It transpires that the above code (for automatically incrementing the date from one record to another) doesn't actually work after all. It behaves in a peculiar fashion:
    Up until the 12th day of the month it increments properly but in the mm/dd/yyyy format - after that date in increments properly in the dd/mm/yyyy format (which is what I want). However, in both cases it only increments the next record: any records after that maintain the value of the increment, so on every alternate record I have to put in the correct date. To demonstrate an example:

    Enter record 1: put in date 01/12/13, record 2 immediately updates the Catch-Date field with 12/02/13.
    Enter record 2: record 3 automatically places 12/02/13 in the Catch Date field until I change it to 02/12/13 (then record 3 changes to 12/03/13)
    So up until the 12th day of the month I have to change the date each time.
    After the 12th, the same happens except that it no longer switches month and day around so as I enter record 2, the date is correct.
    Any ideas?

  2. #17
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I can't deal with non-Access structured dates but maybe this will help http://allenbrowne.com/ser-36.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 12-10-2012, 05:14 PM
  2. Replies: 4
    Last Post: 07-27-2011, 09:25 AM
  3. Replies: 1
    Last Post: 07-27-2011, 09:19 AM
  4. Incrementing Numbers
    By anastazia1117 in forum Access
    Replies: 3
    Last Post: 07-13-2011, 03:44 PM
  5. Incrementing a value in a form
    By erbuchan in forum Access
    Replies: 10
    Last Post: 01-26-2011, 12:33 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