473,695 Members | 1,634 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to implement a 'queue'

Hi there!

I want to implement a 'queue' of records that are prioritised
(development tasks in this case). I need to be able to 'move' the
records up and down the queue to change their priority. New tasks
would added to the 'bottom' of the queue and completed records would
disappear off the top.

Any idea how to implement this in Access 97?

Would appreciate emailed answers to duncan (AT) mccarthy DOT co DOT nz,
but I'm subscribed to this group anyway.

Thanks in advance,

Duncan Kinnear.

Nov 13 '05 #1
2 2156
Br
DuncanK (duncan (AT) mccarthy DOT co DOT nz) <du****@clear.n et.nz>
wrote:
Hi there!

I want to implement a 'queue' of records that are prioritised
(development tasks in this case). I need to be able to 'move' the
records up and down the queue to change their priority. New tasks
would added to the 'bottom' of the queue and completed records would
disappear off the top.

Any idea how to implement this in Access 97?

Would appreciate emailed answers to duncan (AT) mccarthy DOT co DOT
nz, but I'm subscribed to this group anyway.

Thanks in advance,

Duncan Kinnear.


Perhaps a simple record ID that you'd manipulate to "move" items up or
down the list?

ie. if I'm moving item 4 up the list I have to do the following

4 -> 3
3 -> 4

Obviously you shouldn't have duplicate ID's so you may need to "park"
your item temporarily during the "move".

ie.

4 -> tmpID
3 -> 4
tmpID -> 3

--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #2
rkc
DuncanK (duncan (AT) mccarthy DOT co DOT nz) wrote:
Hi there!

I want to implement a 'queue' of records that are prioritised
(development tasks in this case). I need to be able to 'move' the
records up and down the queue to change their priority. New tasks
would added to the 'bottom' of the queue and completed records would
disappear off the top.

Any idea how to implement this in Access 97?


As a table, use a priority field and Insert, Update, Delete queries.
In memory, use a VBA.Collection object.
Nov 13 '05 #3

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

Similar topics

1
1205
by: Timothy Madden | last post by:
I want to stoare in a queue values of type LPCTSTR, int, long, BYTE, WORD, DWORD and many enum types. Can I write such a queue in a type safe maner (idealy no casts involved) ? Thank you "Timothy Madden" Romania
0
1167
by: olsongt | last post by:
This one made me smile. From: http://aima.cs.berkeley.edu/python/utils.html#Queue class Queue: """Queue is an abstract class/interface. There are three types: Stack(): A Last In First Out Queue. FIFOQueue(): A First In First Out Queue. PriorityQueue(lt): Queue where items are sorted by lt, (default <).
2
2565
by: Thomas Ploch | last post by:
Hello folks, I am having troubles with implementing a timed queue. I am using the 'Queue' module to manage several queues. But I want a timed access, i.e. only 2 fetches per second max. I am horribly stuck on even how I actually could write it. Has somebody done that before? And when yes, how is the best way to implement it? Thanks, Thomas
5
2093
by: DC | last post by:
Hi, I need the functionality to take a workitem from a stack, execute it in a different thread, get the next item, execute it asynchronously too, and so on. But: there should never be more than 5 threads processing workitems. As soon as the number of threads gets below five, more workitems can be queued. This goes on until the stack of workitems is fully processed. Not sure if that is what one would call a "Thread Pump".
4
4597
by: j_depp_99 | last post by:
Thanks to those guys who helped me out yesterday. I have one more problem; my print function for the queue program doesnt work and goes into an endless loop. Also I am unable to calculate the length of my queue. I started getting compilation errors when I included a length function. <code> template<class ItemType> void Queue<ItemType>::MakeEmpty() {
139
14167
by: ravi | last post by:
Hi can anybody tell me that which ds will be best suited to implement a hash table in C/C++ thanx. in advanced
2
2335
by: ecestd | last post by:
how do you implement a copy constructor for this pointer-based ADT queue #include "Queuep.h" #include <cassert> #include <new> using namespace std; Queue::Queue () : backPtr (0), frontPtr(0) { }
2
2928
by: ecestd | last post by:
how do you implement a copy constructor for this pointer-based ADT queue #include <cassert // for assert #include <new // for bad_alloc using namespace std; //private:{Queue::Queue(const Queue& Q)}
1
3401
by: walsug | last post by:
hello, I'm doing some job concerning code migration from linux to windows,one of the handicaps is the message queue,which is used to do interprocess communication.I've tried several ways under windows such like pipes ,mailslot and sending message to a window(SendMessage then GetMessage),but it can't reach the performances of the linux's related system calls. I've got no time to write the message queue source code of my own,through the shared...
0
8565
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8977
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8839
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8822
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7656
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5837
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1971
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.