text to date conversion

Posted on 2006-03-31
Last Modified: 2008-02-01
I have linked an external DBF file. Within that DBF is a date field that Access sees as a text field. The format is MMDDYY
I want to add that field to a query WHERE value is BETWEEN January 01of the current year and Current date +14
When I use #010106# Access automatically quotes it as text.
How can I make access treat this is a date field? Then how do i use this to reflect a set future date say DATE() +14
Question by:jonoakley
    LVL 15

    Expert Comment

    Try :



    CDATE([MyDateField]) + 14
    LVL 22

    Expert Comment


    LVL 15

    Accepted Solution

    Or use :

    LVL 9

    Author Comment

    CDATE return was a mess the dates were all over the map Most likely because it was reading a number and converting a number DATEVALUE return was a ERROR# in all fields
     and date serial was just right.
    Initially I was working on a 98 box with Access2000 and The CDATE and DATEVALUE would return a compile error
    IS there a syntax to using the CDATE function to determine the position of the values?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    In the article entitled Working with Objects – Part 1 (, you learned the basics of working with objects, properties, methods, and events. In Work…
    QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
    Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now