473,322 Members | 1,314 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,322 software developers and data experts.

Splitting query into equal recordsets

Hi Guys,

Hopefully you will understand my problem.

I have a spreadsheet that i import into a table which contains job
data. Using a number of queries i can filter the data as requested.
What i now want to do is have the database split the data into
seperate recordsets ready to export back to a spreadsheet.

Example:
Spreadsheet contains 26 jobs (6 require a two person team - 15 only
require a one person team)
We have 2 (two person teams)
We have 4 (one person teams)

I need the database to be able to split the recordset up equally so
that each team (1 or 2) receive 6 jobs each

Eg
each two man team receives 3 two man jobs and 3 one man jobs = 6 jobs
total each
each one man team only receives 6 one man jobs (never any two man
jobs) = 6 jobs total each

aplogies if you dont fully follow my requirements, i am an
intermediate access user and with direction should be able to follow
any suggestions.

Thanks in advance.
Jan 25 '08 #1
1 1770
On 25 Jan, 12:21, LL-JK <lee.bagga...@mapelectrics.comwrote:
Hi Guys,

Hopefully you will understand my problem.

I have a spreadsheet that i import into a table which contains job
data. Using a number of queries i can filter the data as requested.
What i now want to do is have the database split the data into
seperate recordsets ready to export back to a spreadsheet.

Example:
Spreadsheet contains 36 jobs (6 require a two person team - 30 only
require a one person team)
We have 2 (two person teams)
We have 4 (one person teams)

I need the database to be able to split the recordset up equally so
that each team (1 or 2) receive 6 jobs each

Eg
each two man team receives 3 two man jobs and 3 one man jobs = 6 jobs
total each
each one man team only receives 6 one man jobs (never any two man
jobs) = 6 jobs total each

aplogies if you dont fully follow my requirements, i am an
intermediate access user and with direction should be able to follow
any suggestions.

Thanks in advance.
changed the number of jobs above as they were incorrect sorry.
Jan 25 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Wagstaff | last post by:
Hi there I have 2 tables: tblAccuracy & tblClearance Users add new records to tblAccuracy using frmRegister. Under specific conditions I need to append the current record from frmRegister into...
10
by: deko | last post by:
I've tried each of the below, but no luck. UPDATE tblEntity As tbl INNER JOIN search3220 As qry ON tbl.Entity_ID = qry.Entity_ID SET tbl.Cat_ID = 289; UPDATE tblEntity INNER JOIN search3220 ON...
0
by: totierne | last post by:
comp.databases.ms-access, I want to know how to use Oracle views with session variables in Access. The parameterised views in access, are migrated to views with per session variables. The...
16
by: Randy Harris | last post by:
I was inspired by the recent discussion of returning multiple recordsets to ADO from a stored procedure. (Amazed is probably more accurate). I asked about how to accomplish same with Oracle and...
1
by: robertmeyer1 | last post by:
Hi, I have 3 tables set up. tblQuestion, tblAnswer, tblClient. I have them linked together and have a sbf and mainform set up for data entry. The sbf links the questions and answers together. ...
6
by: gerbski | last post by:
Hi all, I am relatively new to ADO, but up to now I got things working the way I wanted. But now I've run into somethng really annoying. I am working in MS Access. I am using an Access...
8
by: chrisdavis | last post by:
I'm trying to filter by query or put those values in a distinct query in a where clause in some sort of list that it goes through but NOT at the same time. Example: ROW1 ROW2 ROW3 ROW4 ,...
1
by: Denis | last post by:
I have a date field in a database. I have been given forms to be printed out. The problem is that the form requires the date to be printed out in 3 seperate parts. In the form day month and year....
4
by: Steven D'Aprano | last post by:
I'm trying to split a URL into components. For example: URL = 'http://steve:secret@www.domain.com.au:82/dir" + \ 'ectory/file.html;params?query#fragment' (joining the strings above with plus...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.