Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7092771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:21:21+00:00 2026-05-28T08:21:21+00:00

I am using the DateSerial Function to convert the date on a column like

  • 0

I am using the DateSerial Function to convert the date on a column like this:

(DateSerial(CInt(Left([EXAMPLE_TBL.APP_DATE],4)),CInt(Mid([EXAMPLE_TBL.APP_DATE],5,2)),
CInt(Right([EXAMPLE_TBL.APP_DATE],2)))) AS Application_Date

The date comes from an Oracle linked table which is in a text datatype in Access. All is working, however, I need to add the MAX Function or find a way to get the most recent APP_DATE.

How do I add the MAX Function or what Function can I use so that if there are two APP_DATES, I get the most recent?

Thanks everyone!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:21:22+00:00Added an answer on May 28, 2026 at 8:21 am

    This will change depending on what you really need to accomplish. If this is the only column you need to query then you should be able to do:

    SELECT MAX((DateSerial(CInt(Left([EXAMPLE_TBL.APP_DATE],4)),CInt(Mid([EXAMPLE_TBL.APP_DATE],5,2)),
    CInt(Right([EXAMPLE_TBL.APP_DATE],2)))) 
    AS Application_Date FROM EXAMPLE_TBL;
    

    On the other hand, if you need to query multiple columns you need to try something like this:

    SELECT col1, col2, MAX(DateSerial(CInt(Left([APP_DATE],4)),CInt(Mid([APP_DATE],5,2)),CInt(Right([AP‌​P_D‌​‌​ATE],2)))) AS Application FROM tablename GROUP BY col1, col2;
    

    Is there a reason you are storing it as a text type rather than DateTime?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using preview 4 of ASP.NET MVC Code like: <%= Html.CheckBox( myCheckBox, Click Here, True,
Using Rails 3.2.0 with haml and sass: I Would like to link an external
Using Delphi 2010. I am looking for (possibly) a function or procedure which can
Using Entity Framework CodeFirst, how do I create a created datetime column that gets
using file_get_contents , I open an Internet URL and get the contents of this
using the jquery ui modal dialog , the background shades grey (i assuming this
Using Ivy with this Ant target: <target name=retrieve-jars> <ivy:retrieve pattern=WebContent/WEB-INF/lib/[artifact].[ext] /> </target> to fetch
Using GCC 4.2. I have this metatemplate for conditional type: template <bool condition, typename
Using This code: I am tring to fill the page with the data and
Using the Generate Scripts wizard in SQL Server Management Studio 2005 (right click a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.