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

Resort Form based on click

I have a form that displays a list from a query. It lists first name,
last name, bidder number and a check box that shows tax exempt status.

By default the form opens with the data sorted by bidder number. I want
the user to be able to double click the Last Name lable and have the
data re-sort and display in that order with out closing the form.

What is the easiest way to do this?

Michael Charney

*** Sent via Developersdex http://www.developersdex.com ***
Aug 30 '06 #1
2 3167
Nothing wrote:
I have a form that displays a list from a query. It lists first name,
last name, bidder number and a check box that shows tax exempt status.

By default the form opens with the data sorted by bidder number. I want
the user to be able to double click the Last Name lable and have the
data re-sort and display in that order with out closing the form.

What is the easiest way to do this?

Michael Charney

*** Sent via Developersdex http://www.developersdex.com ***
Open up the property sheet for the label. Click on events. If there
are no events available, delete the label to disassociate it with the
textbox and create a new one.

Then in the OnDoubleClick event do something like
Me.OrderBy = "LastName" 'whatever the field name is
Me.OrderByOn = True
Aug 30 '06 #2

"salad" <oi*@vinegar.comwrote in message
news:pl****************@newsread4.news.pas.earthli nk.net...
Nothing wrote:
>I have a form that displays a list from a query. It lists first name,
last name, bidder number and a check box that shows tax exempt status.

By default the form opens with the data sorted by bidder number. I want
the user to be able to double click the Last Name lable and have the
data re-sort and display in that order with out closing the form.

What is the easiest way to do this?

Michael Charney

*** Sent via Developersdex http://www.developersdex.com ***
Open up the property sheet for the label. Click on events. If there are
no events available, delete the label to disassociate it with the textbox
and create a new one.

Then in the OnDoubleClick event do something like
Me.OrderBy = "LastName" 'whatever the field name is
Me.OrderByOn = True
Thanks that worked great!!!
Aug 30 '06 #3

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
5
by: Scott | last post by:
I have created a form that has a few combo boxes on it. On the form I have ComboBoxA which selects data from a region, and ComboBoxB that selects individual locations within a selected region. I...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
0
by: Aravind | last post by:
Hi folks. I have a query, qryHistory, which has the following field: DaysOverdue: IIf(<Date(),DateDiff("d",,Nz(,Date())),0) I also have a form (continuos), frmHistory, which is based on...
15
by: Paul T. Rong | last post by:
Hi everybody, This time a very very difficult case: I have a table "tblStudent", there are 50 students, I also made a form "frmStudent" based on "tblStudent", now if I don't want to show all...
1
by: meganrobertson22 | last post by:
hi everybody- what is the best way to add data from one form to another? i have 2 tables: person and contract. here are some of the fields. table: person personid (autonumber and primary...
2
by: fstenoughsnoopy | last post by:
I have a customer order database and I need to pull a customers information, ie first name, last name, address, city, state, zip, phone, etc, into the oder table. i don't know how to go about...
2
by: jcf378 | last post by:
hi all. I have a form which contains a calculated control ("days") that outputs the # of days between two dates (DateDiff command between the fields and ). However, when I click "Filter by...
5
by: raylopez99 | last post by:
I have a form, Form6, that has a bunch of buttons overlaid on it. I want to be able to click on any arbitrary area of the form, and if that area of the form is overlaid by a button, I want to...
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
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?

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.