Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 64
  1. #46
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    Quote Originally Posted by guest View Post
    I am not sure why not for me. this date fields are big trouble. i GOT IT. it accept only date format 22.12.2024.
    So you did not see my picture?
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  2. #47
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,822
    You can use all of the following formats for the Date Search
    22 12 24
    22.12.24
    22/12/24

    We were glad to help

  3. #48
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    i didn't know that. I tried first with format 22-12-2024 didn't work than I tried with 22.12.2024 which worked so I will do it that way.

  4. #49
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Just curious if you tested with ambiguous dates like January 2 and February 1 (1/2/2024 and 2/1/2024)
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  5. #50
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    Quote Originally Posted by moke123 View Post
    Just curious if you tested with ambiguous dates like January 2 and February 1 (1/2/2024 and 2/1/2024)
    Seems to identify each.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  6. #51
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,822
    Hi Moke

    Just tested and the following works:-

    01/02/2024
    02/01/2024

    The following does not work:-

    1/2/2024
    2/1/2024

  7. #52
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    Hi Welshgasman,
    I have another question about searching. Can i continue here or I must open new thread.

  8. #53
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    A new thread might get attention from more readers but can ask here and those of us already giving this one attention will try to answer here.

    If you work with non-U.S. date format, review 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.

  9. #54
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    Hi June7
    So this database we fixed is about year 2024. for 2025 i will make same database, same fields but populate it with new data. I also have more databases from previous years. what i do if don't find what i am looking for in 2024 i open 2023 and search there etc. Can searching be done from 2024 for all years and how to do that.

  10. #55
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Link to tables in other dbs.

    It is possible to query data in another database without having to set links.

    But why build a new file just because year changes? I have database with 20 years of data in one file.
    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.

  11. #56
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    I have too. That's the rule. Each year must start with number one and end up with how many numbers there will be.

  12. #57
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Yes, my db does that. I have code that assigns a document number to each record in primary table. The number starts over each year. But still just one db and one set of tables. I can easily query for any date or range of dates. The autonumber key that Access creates is not relevant to this constructed identifier. I also assure there are no gaps in this document number, all numbers in series are accounted for.

    Generating a custom unique identifier is a common topic.
    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.

  13. #58
    guest is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2024
    Posts
    61
    Ok. Than show me how to do that.

  14. #59
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Start with review of https://www.accessforums.net/showthread.php?t=23329

    Another approach would be to generate this yearly sequence number dynamically in a report where textbox has a RunningSum property that can accomplish this. However, if records are sorted by different criteria then they would not show the same identifier in each sorted set.
    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.

  15. #60
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    Quote Originally Posted by guest View Post
    Hi June7
    So this database we fixed is about year 2024. for 2025 i will make same database, same fields but populate it with new data. I also have more databases from previous years. what i do if don't find what i am looking for in 2024 i open 2023 and search there etc. Can searching be done from 2024 for all years and how to do that.
    No need for another DB, you can get what year the data is for with the YEAR() function.
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

Page 4 of 5 FirstFirst 12345 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 01-25-2024, 02:46 PM
  2. Replies: 2
    Last Post: 04-15-2017, 11:09 AM
  3. Replies: 3
    Last Post: 09-12-2016, 11:49 AM
  4. Replies: 3
    Last Post: 09-02-2013, 04:33 PM
  5. Search form getting wrong results
    By Ruegen in forum Programming
    Replies: 1
    Last Post: 08-22-2013, 06:32 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