473,395 Members | 2,795 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,395 software developers and data experts.

User-Sequencable List Control?

Anybody seen such a thing?

My guys want to build a list of mutual funds to drive a report, but
they want to be able to sequence the funds on the list so that I can
determine what sequence they should appear on the report in.

I'm thinking something like the many drag/drop lists already out there
in various applications. I'm getting a little glimmer than maybe the
plain-vanilla heirarchical tree view supports something like that...

Anybody know of anything?
Nov 13 '05 #1
5 1797
On Tue, 04 Oct 2005 13:33:51 -0400, PeteCresswell <x@y.z.Invalid>
wrote:

I don't know of a control that can do this, but you could simulate one
using a listbox or subform, with an Up and Down button next to it to
"move" the selected item.

-Tom.

Anybody seen such a thing?

My guys want to build a list of mutual funds to drive a report, but
they want to be able to sequence the funds on the list so that I can
determine what sequence they should appear on the report in.

I'm thinking something like the many drag/drop lists already out there
in various applications. I'm getting a little glimmer than maybe the
plain-vanilla heirarchical tree view supports something like that...

Anybody know of anything?


Nov 13 '05 #2
Per Tom van Stiphout:
I don't know of a control that can do this, but you could simulate one
using a listbox or subform, with an Up and Down button next to it to
"move" the selected item.


Time's running out, and I think that is what I will do. Native MS Access
controls seem really weak on Drag/Drop events.
--
PeteCresswell
Nov 13 '05 #3
Per Tom van Stiphout:
Up and Down button next to it to
"move" the selected item.


Anybody have any thoughts on the nuts and bolts behind something like this?

My knee jerk is to add a sequence field to the work table behind the list.

I would increment the sequence numbers by 2. Then, when moving a record, find
the previous rec's sequence number and add 1 to it. That would let me re-sort
the records, after which I would renumber them by 2 again and requery the list.

We're talking a subset of less than 100 records here (out of a selectable
population of about 3,200) - less than 20, in fact 95% of the time.

Given the work table is in a DB on C:\Temp, I would hope that it would run fast
enough to work UI-wise.

Any comments/suggestions before I commit the man hours finding out for sure?
--
PeteCresswell
Nov 13 '05 #4
Per (PeteCresswell):
I would increment the sequence numbers by 2. Then, when moving a record, find
the previous rec's sequence number and add 1 to it.


Oops, that was kind of dumb.... What I should have said was subtract 3 from the
target record's sequence number.
--
PeteCresswell
Nov 13 '05 #5
Pete it's not easy to program but there is a native Access ListBox control
that supports Drag and Drop. See:
http://www.lebans.com/vb_listbox.htm
New Version 3 April 23, 2003 - MULTISELECT must be enabled for this version
to function properly.

Special Thanks to Peter Walker!

FieldList.zip is a database containing the FieldList control Access uses in
its Table Analyzer and Performance Analyzer Wizards. This control is created
directly from the ACCWIZ.DLL so no ActiveX registration problems are
incurred. ACCWIZ.DLL is automatically installed with all full installs of
Access.

This a VB like ListBox with:

1) CheckBoxes for each row

2) True Drag and Drop

3) Conditional Formatting for each Row

4) AddItem method
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"(PeteCresswell)" <a@b.c.invalid.USA> wrote in message
news:jf********************************@4ax.com...
Per Tom van Stiphout:
I don't know of a control that can do this, but you could simulate one
using a listbox or subform, with an Up and Down button next to it to
"move" the selected item.


Time's running out, and I think that is what I will do. Native MS Access
controls seem really weak on Drag/Drop events.
--
PeteCresswell

Nov 13 '05 #6

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

Similar topics

60
by: Fotios | last post by:
Hi guys, I have put together a flexible client-side user agent detector (written in js). I thought that some of you may find it useful. Code is here: http://fotios.cc/software/ua_detect.htm ...
3
by: zlst | last post by:
Many technological innovations rely upon User Interface Design to elevate their technical complexity to a usable product. Technology alone may not win user acceptance and subsequent marketability....
2
by: Jesper Stocholm | last post by:
I have implemented role-based security within my ASP.Net application. However, it seems the role is not passed to the authentication ticket I create. I want to use it to display/hide some...
3
by: Jiho Han | last post by:
Should ASPNET user belong to the local Users group? I may have made some changes that affected my workstation setup and I am experiencing some unexpected behaviors. For example, I have my IIS...
17
by: Alphonse Giambrone | last post by:
I am building a web app for users to add/edit data. They may add/edit several records during a session. When they are done (not necessarily immediately, could be 10 or more minutes later), I need...
7
by: jsale | last post by:
I'm currently using ASP.NET with VS2003 and SQL Server 2003. The ASP.NET app i have made is running on IIS v6 and consists of a number of pages that allow the user to read information from the...
6
by: Andrew Chalk | last post by:
My application attempts to connect to an SQL Server database as name ASPNET and Login Name SERVERNAME/ASPNET in response to these commands: SqlConnection myConnection = new SqlConnection("Data...
4
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The...
1
by: Carlettus | last post by:
Dear All, sorry but I'm not sure if this is the right place to post my problem. I was using the following asp code to create users in Active Directory. Suddenly, and I don't know the reason, users...
9
by: Gordon | last post by:
I want to add a feature to a project I'm working on where i have multiple users set up on my Postgres database with varying levels of access. At the bare minimum there will be a login user who...
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
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
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...
0
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...
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
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.