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

Handling groups of records

One of my farm livestock app customer wants me to tweak the system so he can
record where every animal
is, and has been while it was on his farm.
..
Example - heifer X was in top shed from 01/01/03 to 01/01/04 then west field
from 01/01/04 to 01/05/04 then etc etc

Cattle could be in groups of 30 or 40 but individual animals may not always be
in the same group.

So - Would appreciate thoughts on how best to to tackle this.

TIA
David B

Nov 12 '05 #1
6 1006
David,

Your database should track when an animal changes groups and where each group is
every day. Then you can determine on any date what group an animal was in and
where that group was at. Knowing where the group was at gives you where the
animal was at.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@newsg3.svr.pol.co.uk...
One of my farm livestock app customer wants me to tweak the system so he can
record where every animal
is, and has been while it was on his farm.
.
Example - heifer X was in top shed from 01/01/03 to 01/01/04 then west field
from 01/01/04 to 01/05/04 then etc etc

Cattle could be in groups of 30 or 40 but individual animals may not always be
in the same group.

So - Would appreciate thoughts on how best to to tackle this.

TIA
David B

Nov 12 '05 #2
Thanks for the reply.
I had the concept figured out, I was looking for neat ideas on how to move
groups between
fields and move animals to a different group.
I am thinking the table for this will be something like

animalrecno
fieldid
groupno
indate
outdate

David B
PC Datasheet <sp**@nospam.spam> wrote in message
news:cL*****************@newsread2.news.atl.earthl ink.net...
David,

Your database should track when an animal changes groups and where each group is every day. Then you can determine on any date what group an animal was in and
where that group was at. Knowing where the group was at gives you where the
animal was at.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@newsg3.svr.pol.co.uk...
One of my farm livestock app customer wants me to tweak the system so he can
record where every animal
is, and has been while it was on his farm.
.
Example - heifer X was in top shed from 01/01/03 to 01/01/04 then west field
from 01/01/04 to 01/05/04 then etc etc

Cattle could be in groups of 30 or 40 but individual animals may not always be in the same group.

So - Would appreciate thoughts on how best to to tackle this.

TIA
David B



Nov 12 '05 #3
David,

I don't think your table will work; you're trying to use indate and outdate for
two purposes, moving groups from field to field and moving animals from group to
group. How about tables like these:
TblAnimalField
AnimalFieldID
AnimalFieldName

TblAnimal
AnimalID
AnimalNum

TblGroup
GroupID
GroupNum

TblAnimalInGroup
AnimalInGroupID
AnimalID
GroupID
GroupInDate
GroupOutDate

TblGroupInField
GroupInFieldID
FieldID
GroupID
FieldInDate
FieldOutDate

Steve
PC datasheet

"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@news7.svr.pol.co.uk...
Thanks for the reply.
I had the concept figured out, I was looking for neat ideas on how to move
groups between
fields and move animals to a different group.
I am thinking the table for this will be something like

animalrecno
fieldid
groupno
indate
outdate

David B
PC Datasheet <sp**@nospam.spam> wrote in message
news:cL*****************@newsread2.news.atl.earthl ink.net...
David,

Your database should track when an animal changes groups and where each group
is
every day. Then you can determine on any date what group an animal was in and where that group was at. Knowing where the group was at gives you where the
animal was at.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@newsg3.svr.pol.co.uk...
One of my farm livestock app customer wants me to tweak the system so he can record where every animal
is, and has been while it was on his farm.
.
Example - heifer X was in top shed from 01/01/03 to 01/01/04 then west field from 01/01/04 to 01/05/04 then etc etc

Cattle could be in groups of 30 or 40 but individual animals may not
always be in the same group.

So - Would appreciate thoughts on how best to to tackle this.

TIA
David B


Nov 12 '05 #4
Thanks for that Steve.
Have a few hours on the tractor today. Ideal for thinking these problems
through <g>
David B

PC Datasheet <sp**@nospam.spam> wrote in message
news:Te******************@newsread3.news.atl.earth link.net...
David,

I don't think your table will work; you're trying to use indate and outdate for two purposes, moving groups from field to field and moving animals from group to group. How about tables like these:
TblAnimalField
AnimalFieldID
AnimalFieldName

TblAnimal
AnimalID
AnimalNum

TblGroup
GroupID
GroupNum

TblAnimalInGroup
AnimalInGroupID
AnimalID
GroupID
GroupInDate
GroupOutDate

TblGroupInField
GroupInFieldID
FieldID
GroupID
FieldInDate
FieldOutDate

Steve
PC datasheet

"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@news7.svr.pol.co.uk...
Thanks for the reply.
I had the concept figured out, I was looking for neat ideas on how to move
groups between
fields and move animals to a different group.
I am thinking the table for this will be something like

animalrecno
fieldid
groupno
indate
outdate

David B
PC Datasheet <sp**@nospam.spam> wrote in message
news:cL*****************@newsread2.news.atl.earthl ink.net...
David,

Your database should track when an animal changes groups and where each group
is
every day. Then you can determine on any date what group an animal was in

and where that group was at. Knowing where the group was at gives you where the animal was at.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@newsg3.svr.pol.co.uk...
> One of my farm livestock app customer wants me to tweak the system so he can > record where every animal
> is, and has been while it was on his farm.
> .
> Example - heifer X was in top shed from 01/01/03 to 01/01/04 then west field > from 01/01/04 to 01/05/04 then etc etc
>
> Cattle could be in groups of 30 or 40 but individual animals may not

always
be
> in the same group.
>
> So - Would appreciate thoughts on how best to to tackle this.
>
> TIA
> David B
>



Nov 12 '05 #5
David,

You might consider using two multiselect listboxes to move animals from group to
group. The listboxes would work like the listboxes for the wizards where you
pick fields. On your form you would use a combobox to first choose the group you
want to move animals to.The left listbox would list all your animals and you
would build your list of animals to move to the selected group in the right
listbox. After you have built your list in the right listbox, you would have
code behind a button to move all the animals in the right list to the selected
group.

Something similar could be done to move groups to fields.

Steve
PC Datasheet
"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@news7.svr.pol.co.uk...
Thanks for that Steve.
Have a few hours on the tractor today. Ideal for thinking these problems
through <g>
David B

PC Datasheet <sp**@nospam.spam> wrote in message
news:Te******************@newsread3.news.atl.earth link.net...
David,

I don't think your table will work; you're trying to use indate and outdate for
two purposes, moving groups from field to field and moving animals from group to
group. How about tables like these:
TblAnimalField
AnimalFieldID
AnimalFieldName

TblAnimal
AnimalID
AnimalNum

TblGroup
GroupID
GroupNum

TblAnimalInGroup
AnimalInGroupID
AnimalID
GroupID
GroupInDate
GroupOutDate

TblGroupInField
GroupInFieldID
FieldID
GroupID
FieldInDate
FieldOutDate

Steve
PC datasheet

"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@news7.svr.pol.co.uk...
Thanks for the reply.
I had the concept figured out, I was looking for neat ideas on how to move
groups between
fields and move animals to a different group.
I am thinking the table for this will be something like

animalrecno
fieldid
groupno
indate
outdate

David B
PC Datasheet <sp**@nospam.spam> wrote in message
news:cL*****************@newsread2.news.atl.earthl ink.net...
> David,
>
> Your database should track when an animal changes groups and where each

group
is
> every day. Then you can determine on any date what group an animal was
in and
> where that group was at. Knowing where the group was at gives you where the > animal was at.
>
> --
> PC Datasheet
> Your Resource For Help With Access, Excel And Word Applications
> re******@pcdatasheet.com
> www.pcdatasheet.com
>
>
> "David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
> news:c6**********@newsg3.svr.pol.co.uk...
> > One of my farm livestock app customer wants me to tweak the system so

he can
> > record where every animal
> > is, and has been while it was on his farm.
> > .
> > Example - heifer X was in top shed from 01/01/03 to 01/01/04 then west

field
> > from 01/01/04 to 01/05/04 then etc etc
> >
> > Cattle could be in groups of 30 or 40 but individual animals may not

always
be
> > in the same group.
> >
> > So - Would appreciate thoughts on how best to to tackle this.
> >
> > TIA
> > David B
> >
>
>


Nov 12 '05 #6
Thanks Steve.
I was thinking along those lines myself. So would the right listbox need to be
based on a temp table
or is there another way.
David

PC Datasheet <sp**@nospam.spam> wrote in message
news:7s*****************@newsread2.news.atl.earthl ink.net...
David,

You might consider using two multiselect listboxes to move animals from group to group. The listboxes would work like the listboxes for the wizards where you
pick fields. On your form you would use a combobox to first choose the group you want to move animals to.The left listbox would list all your animals and you
would build your list of animals to move to the selected group in the right
listbox. After you have built your list in the right listbox, you would have
code behind a button to move all the animals in the right list to the selected
group.

Something similar could be done to move groups to fields.

Steve
PC Datasheet
"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@news7.svr.pol.co.uk...
Thanks for that Steve.
Have a few hours on the tractor today. Ideal for thinking these problems
through <g>
David B

PC Datasheet <sp**@nospam.spam> wrote in message
news:Te******************@newsread3.news.atl.earth link.net...
David,

I don't think your table will work; you're trying to use indate and outdate
for
two purposes, moving groups from field to field and moving animals from group
to
group. How about tables like these:
TblAnimalField
AnimalFieldID
AnimalFieldName

TblAnimal
AnimalID
AnimalNum

TblGroup
GroupID
GroupNum

TblAnimalInGroup
AnimalInGroupID
AnimalID
GroupID
GroupInDate
GroupOutDate

TblGroupInField
GroupInFieldID
FieldID
GroupID
FieldInDate
FieldOutDate

Steve
PC datasheet

"David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
news:c6**********@news7.svr.pol.co.uk...
> Thanks for the reply.
> I had the concept figured out, I was looking for neat ideas on how to
move > groups between
> fields and move animals to a different group.
> I am thinking the table for this will be something like
>
> animalrecno
> fieldid
> groupno
> indate
> outdate
>
> David B
>
>
> PC Datasheet <sp**@nospam.spam> wrote in message
> news:cL*****************@newsread2.news.atl.earthl ink.net...
> > David,
> >
> > Your database should track when an animal changes groups and where each group
> is
> > every day. Then you can determine on any date what group an animal was
in and
> > where that group was at. Knowing where the group was at gives you where the
> > animal was at.
> >
> > --
> > PC Datasheet
> > Your Resource For Help With Access, Excel And Word Applications
> > re******@pcdatasheet.com
> > www.pcdatasheet.com
> >
> >
> > "David" <Da***@hoofprintnospam.fsnet.co.uk> wrote in message
> > news:c6**********@newsg3.svr.pol.co.uk...
> > > One of my farm livestock app customer wants me to tweak the system
so he can
> > > record where every animal
> > > is, and has been while it was on his farm.
> > > .
> > > Example - heifer X was in top shed from 01/01/03 to 01/01/04 then

west field
> > > from 01/01/04 to 01/05/04 then etc etc
> > >
> > > Cattle could be in groups of 30 or 40 but individual animals may not
always
> be
> > > in the same group.
> > >
> > > So - Would appreciate thoughts on how best to to tackle this.
> > >
> > > TIA
> > > David B
> > >
> >
> >
>



Nov 12 '05 #7

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

Similar topics

9
by: Hans-Joachim Widmaier | last post by:
Hi all. Handling files is an extremely frequent task in programming, so most programming languages have an abstraction of the basic files offered by the underlying operating system. This is...
12
by: Ritz, Bruno | last post by:
hi in java i found that when a method has a throws clause in the definition, callers must either handle the exceptions thrown by the method they are calling or "forward" the exception to the...
1
by: Tim Nelson | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** I am a newbie try to port my applications to Postgres. I have an application that is bulk loading a table with autocommit off (with...
1
by: Liz | last post by:
I have a table of about 10,000 records where each record has a numeric field named RecIdent. The value of RecIdent starts at 1 and is not sequential. For a given RecIdent, there may be only one...
2
by: BlackFireNova | last post by:
I have an Access 2003 mdb which contains software records. I need to sort on a particular type of software, and then identify and count how many copies there are per each group of that type...
6
by: David | last post by:
One of my farm livestock app customer wants me to tweak the system so he can record where every animal is, and has been while it was on his farm. .. Example - heifer X was in top shed from...
3
by: Ashok Kumar K | last post by:
Hi all, Where can I get some insight on using the __hook, __unhook, event_source and event_receiver for specifically COM events. The documentation given in MSDN is very minimal. I have the...
7
by: athos | last post by:
Hi guys, Got a problem now :( please help... now we got a project handling records saved in a table in a sql 2000(will upgraded to 2005 soon) server. every month around a million records will...
5
by: Bry | last post by:
I've created a class that offers an enhanced way of handling fatal exceptions. The class allows the user to optionaly submit a http based anonymous error report to myself, and also records details...
0
by: mjay83 | last post by:
I got 3 groups in my crystal report with few records with 1 field name QtyOrdered How do I calculate number of records with QtyOrdered= 0 and show it in the end of each group I written out the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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:
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.