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

  • Home
  • SEARCH
  • 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 6560931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:31:29+00:00 2026-05-25T13:31:29+00:00

I’m using ADODB connection in VBA excel file with Microsoft.Jet.OLEDB.4.0 provider. The file with

  • 0

I’m using ADODB connection in VBA excel file with Microsoft.Jet.OLEDB.4.0 provider.
The file with which I’m establishing connection is .csv file which looks like:

Date and time, Last name, First name
2011-08-29  05:48:50,lname1,fname1
2011-08-29  05:49:50,lname1,fname1
2011-08-29  05:55:50,lname2,fname2
2011-08-29  16:11:50,lname1,fname1
2011-08-29  17:55:50,lname2,fname2
2011-08-30  9:11:50,lname1,fname1

The point is that my data is sorted by Date and time which is in one field, and user names are not in any order.
What I really need to do is create a query to fill Recordset.

I need this query to select first, second and last hour for each day for each user name.
Is it even possible to split Date and time column just using a query?
I’ve got general idea how to select what I want, but the thing is too complicated for me, because of that Date and time in the same field.

Would you give me any suggestions?

  • 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-25T13:31:29+00:00Added an answer on May 25, 2026 at 1:31 pm

    Let us say your file is called Dates.csv, you can try:

    SELECT 
       [Last name] & ", " & [First Name] AS FullName, 
       Format([Date And time],"yyyy/mm/dd") AS WorkingDay, 
       First(Format([Date And time],"hh:nn:ss")) AS FirstHour, 
       Last(Format([Date And time],"hh:nn:ss")) AS LastHour
    FROM [Dates.csv]
    GROUP BY [Last name] & ", " & [First Name], Format([Date And time],"yyyy/mm/dd")
    

    I am a little suspicious of the double space between date and time. I would get rid of the spaces in the column names, if I were you. It will make things easier.

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

Sidebar

Related Questions

I would like to run a str_replace or preg_replace which looks for certain words
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
I am reading a book about Javascript and jQuery and using one of the
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

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.