PC Review


Reply
Thread Tools Rate Thread

Code for Accces - Unique ID number allocation with strong criteria

 
 
=?Utf-8?B?RGF2ZSBL?=
Guest
Posts: n/a
 
      18th Apr 2006
Hi all,
Hope you can help me on this one, as its really hurting my head…

Firstly think logistically (IE delivery company main depot).

There is a security staff database which holds data on all vehicles going in
and out of the depot (In this problem I am looking at the trunk vehicles,
which delivery goods to other outbases for them to make deliveries)

At present they just enter the vehicle data and that’s it, like a log.
I need code to allocate a unique ID number to each trunk as it arrives that
day and update a TrunkID field on that vehicle record.

As an example: (Key: T1 = Trunk 1)

DepotName TimeIn TrunkID Date
…………… ………. ..……… ………....
Manchester 21:13 T1 12/02/06
Croydon 22:26 T1 12/02/06
Manchester 22:31 T2 12/02/06
Manchester 00:46 T3 13/02/06

However there are very specific criteria for this allocation.
Trunking starts daily at around 8pm and finishes at 8am, therefore when
after Trunking has finished for that day, the unique number needs to start
again back at T1.

It must also be outbase specific, IE each outbase must start on T1 then
increase when each trunk arrives and gets logged in at security.

Only problem I see is if we use the TimeIn field to use to find the last
record of that specific day for that outbase, what will happen when the clock
rolls round to 00:00 as the allocation must continue until 8am.

This will all need to happen when a drop down containing the depot names is
updated with the depot name for that trunk record.

At first I thought this would be simple, big no no from me as it's kind of
snowballed with criteria :-(

Lastly, I could do with as much in depth info on the code as possible please
guys

Please give me a shout if you need any more info to work with.
Thanks a lot!
David

 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF2ZSBL?=
Guest
Posts: n/a
 
      18th Apr 2006
Hi again all,

I am still trying different ideas but this is well out of my league!

If possible could anyone email me with ideas as wont be able to get online
for a few days now.
(E-Mail Removed)

Again many thanks everyone!
Davey

"Dave K" wrote:

> Hi all,
> Hope you can help me on this one, as its really hurting my head…
>
> Firstly think logistically (IE delivery company main depot).
>
> There is a security staff database which holds data on all vehicles going in
> and out of the depot (In this problem I am looking at the trunk vehicles,
> which delivery goods to other outbases for them to make deliveries)
>
> At present they just enter the vehicle data and that’s it, like a log.
> I need code to allocate a unique ID number to each trunk as it arrives that
> day and update a TrunkID field on that vehicle record.
>
> As an example: (Key: T1 = Trunk 1)
>
> DepotName TimeIn TrunkID Date
> …………… ………. ..……… ………....
> Manchester 21:13 T1 12/02/06
> Croydon 22:26 T1 12/02/06
> Manchester 22:31 T2 12/02/06
> Manchester 00:46 T3 13/02/06
>
> However there are very specific criteria for this allocation.
> Trunking starts daily at around 8pm and finishes at 8am, therefore when
> after Trunking has finished for that day, the unique number needs to start
> again back at T1.
>
> It must also be outbase specific, IE each outbase must start on T1 then
> increase when each trunk arrives and gets logged in at security.
>
> Only problem I see is if we use the TimeIn field to use to find the last
> record of that specific day for that outbase, what will happen when the clock
> rolls round to 00:00 as the allocation must continue until 8am.
>
> This will all need to happen when a drop down containing the depot names is
> updated with the depot name for that trunk record.
>
> At first I thought this would be simple, big no no from me as it's kind of
> snowballed with criteria :-(
>
> Lastly, I could do with as much in depth info on the code as possible please
> guys
>
> Please give me a shout if you need any more info to work with.
> Thanks a lot!
> David
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding count of unique number within a specific criteria? Danni2004 Microsoft Excel Worksheet Functions 7 19th Apr 2008 11:56 PM
VBA code to capture Computer device unique ID number =?Utf-8?B?WmlrYXI=?= Microsoft Access 2 13th Nov 2007 01:48 PM
Code to generate unique id with criteria =?Utf-8?B?RGF2ZSBL?= Microsoft Access 1 18th Apr 2006 11:08 PM
unique order number according to criteria =?Utf-8?B?ZWxsZWJlbGxl?= Microsoft Excel Worksheet Functions 1 3rd Feb 2006 11:31 AM
Display number of Unique values in one row based on criteria in a different row hossa_dude Microsoft Excel Worksheet Functions 15 21st Apr 2004 12:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:10 PM.