473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Combining Records into a new table

2
I have MS SQL data that I'm ODBC querring into Access to allow some simple reporting to be done on the data.

That data is event driven, so I get records that the particular event is concurrent.

My querried table has columns for example:

ID
Event
Start Time
End Time

Once the querry is run, I'd like to combine the events that occur within say 10 min. of each other into one record, taking the start time for the preceeding record, and the end time from the following record, leaving only one record out of two in another temp table or querry.

Is this possible?

I'm running Access 2002.
Jul 6 '07 #1
3 1792
jde357
2
I have MS SQL data that I'm ODBC querring into Access to allow some simple reporting to be done on the data.

That data is event driven, so I get records that the particular event is concurrent.

My querried table has columns for example:

ID
Event
Start Time
End Time

Once the querry is run, I'd like to combine the events that occur within say 10 min. of each other into one record, taking the start time for the preceeding record, and the end time from the following record, leaving only one record out of two in another temp table or querry.

Is this possible?

I'm running Access 2002.
Jul 13 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
I have MS SQL data that I'm ODBC querring into Access to allow some simple reporting to be done on the data.

That data is event driven, so I get records that the particular event is concurrent.

My querried table has columns for example:

ID
Event
Start Time
End Time

Once the querry is run, I'd like to combine the events that occur within say 10 min. of each other into one record, taking the start time for the preceeding record, and the end time from the following record, leaving only one record out of two in another temp table or querry.

Is this possible?

I'm running Access 2002.
You would need to use VBA code to do this as you are trying (I assume) to combine the text description of the events into one record. You can't do this using a query.

Have a look at the following article.

http://www.thescripts.com/forum/thread640105.html
Jul 17 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
I have merged your two threads together.

Please don't double post. If you don't get a response to your thread within a reasonable length of time post a reply to bump it up the list.
Jul 17 '07 #4

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

Similar topics

8
by: Ilan | last post by:
Hi all I need to add data from two Excel sheets (both on the same workbook) to an existing table in my SQL DB. The problem is that each sheet holds different fields for the same record, though...
22
by: Martin C | last post by:
I have inherited a database which has a table for each of our 1200 customers. Each table is exactly the same. It is very difficult to generate reports I would like to create a new table and take...
1
by: Heather | last post by:
I know this is a painful question and I have searched the group for past responses and none of the responses seem to cover my specific need. We have a table that contains fields like ID, Yr,...
4
by: Tony Williams | last post by:
I want to combine two tables into one. I have a table with all the field definitions from two other tables. I now need to update this new table with the data from the other two tables.However both...
4
by: mike | last post by:
I have a database table like the following: id|name|item_id|sequence and the following instance data: 1|Apple|419841|1 2|Orange|419841|2 3|Banana|935890|1 4|Lime|959081|1
0
by: Julio Sarmiento | last post by:
I have a table containing the following fields: rep numbers, year, month, qty, revenue, credit apps, new accounts. The data in this table reflects the rep's daily numbers. What I need to do is...
7
by: Frank | last post by:
Hi there, I'm trying to generate a report for an old database and I'm having trouble coming up with an elegant way of going about it. Using cursors and other 'ugly' tools I could get the job done...
1
by: ferraro.joseph | last post by:
Hi, I'm querying Salesforce.com via their AJAX toolkit and outputting query results into a table. Currently, their toolkit does not possess the ability to do table joins via their structured...
1
by: Macbane | last post by:
Hi, I really hope you can help. I have a databse which records interventions in patients drug therapy. Each record in the main table contains 3 fields to capture the 3 main drug names involved...
3
by: masonic35and7 | last post by:
I work for a school district, and I have just imported 6 Excel worksheets into Access 2007. Now I have 6 different tables. In each table all the fields are the same. I need the easiest way to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.