473,473 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

how can i get the first log as time in and last log as time out?

3 New Member
ListView1.Refresh
FieldCount = Adodc1.Recordset.Fields.Count - 1
For FieldLoopNo = 0 To FieldCount
FieldStringLenght = Len(Adodc1.Recordset.Fields(FieldLoopNo).Name) + Int(10)

Set Column_Header = ListView1.ColumnHeaders.Add(, , Adodc1.Recordset.Fields(FieldLoopNo).Name, 2000)
Next FieldLoopNo
While Not Adodc1.Recordset.EOF
On Error Resume Next
Set listitem = ListView1.ListItems.Add(, , Adodc1.Recordset(0))

For FieldLoopNo = 1 To FieldCount
On Error Resume Next
listitem.SubItems(FieldLoopNo) = Left$(Adodc1.Recordset(FieldLoopNo), 9) 'this is the date and time that i trim so that it only display the date
listitem.SubItems(3) = Right$(Adodc1.Recordset(FieldLoopNo), 11)'this is also the date and time that i trim for it to show only the time
i don't know the codes for it to loop so that it only show the first log in the same date and the last log of the same date and input it to the next column tnx...
Sep 21 '10 #1
0 858

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Bimo Remus | last post by:
Hi, I am currently taking a C++ class and am having problems with a homework assignment. My problem is that I need to pull the first and last words out of of a character string array which is in...
2
by: Sasidhar Parvatham | last post by:
Hello All, Is there a way I can get dates for first and last fridays of a month? Any suggestion would be helpful. Thanks.
1
by: Martin Emanuelsson | last post by:
Hello, Knowing year and weeknumber of this year, I'm looking for some way to get the date of the first and last day of that particular week. Does anyone have an idea about how to do this? ...
2
by: Christos via AccessMonster.com | last post by:
Dear friends I would like to find the first and the last element of a record in a table. Is there any possibility especially if yoy have not promary key? Christos -- Message posted via...
1
by: Hemanth | last post by:
Hello, How do I find the first and last non-numeric char positions (using regexp) in an alphanumeric string? For example, 99ABC1A => should return 2, 6 DE8A1 => should return 0, 3 Thanks,
0
by: kmounkhaty | last post by:
Hi Guru, Where can I find OLAP tables Metadata? I want to query metadata to find out when was last time the cube ran? I schedule the cube to process every night. If the cube did not get...
2
by: Alex | last post by:
Hello all, I'm at a loss on how to do this. We're using MS SQL 2000 Server and I have a list of fields I need to find the first and last entry for. Here's an example of the table: Number -...
3
by: mtuller | last post by:
I want to get the first record and last record in an array. I don't want any other records, but am not finding how to do it. What I am doing is pulling out information from a database, where the...
1
by: JAS1503 | last post by:
Hi SQL friends, We're using a proximity card for logging in the attendance. I have a field for door access and field also for its corresponding log date and time. Since there are several logs of...
3
by: CDeCinko | last post by:
How do I get the date for the first and last day of the week, and the first and last day of last week?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.