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

MS ACCESS FORMS using ORDERBY with [fieldname] in descending order

In MS ACCESS version 2003 I have a form that is based on a table. I have indicated that I want the form to display the table content in the order of the tracking id number (InvoiceNumber)which is an autonumber field.

In detail view of my form, I select the upper left corner black box properties to get to:

Form - Properties
Record Source - Table1
Order By - Table1.InvoiceNumber

As the field is an autonum the form opens, nothing is displayed. I roll the wheel on the mouse and the default goes in ASCENDING order beginning at record #1. I want to reverse that so that the form will display the last record first at record #7046. How can I do this? - thanks A.
Sep 2 '10 #1
2 14538
if you open your form then apply filter descending, save your form. Next time it opens it will list items in descending order however, the autonumber new record will still appear at the bottom of the screen so you would (if you had many records) have to scroll down. What's so important about having the last record appear at the top of the list? Why not just goto last record entered when form is opened, easier plus you see the last records entered right away!
Have an idea of getting around this but don't seea point to doing so!
Jan 2 '11 #2
TheSmileyCoder
2,322 Expert Mod 2GB
Hi and welcome to BYTES.

You can change your orderby to:
Expand|Select|Wrap|Line Numbers
  1. Order By - Table1.InvoiceNumber DESC
  2.  
where DESC stands for descending.

Please note that we have a specific access forum on Bytes: Access and VBA
Feb 28 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Talis | last post by:
I have a reasonably large table (over 2 million rows) and my select results need to be sorted in descending order. I've noticed, however, that my queries ORDER'ed by DESC are at least twice as...
3
by: Leszek | last post by:
Hello, I guess it should be easy. I need to iterate through the XML node list using foreach in descending order: string XML_DOCUMENT = Server.MapPath("members.xml"); XmlDocument myXmlDoc =...
4
by: Newbie | last post by:
i am able to allow the user to sort the columns of my datagrid, but only in ascending order. is there a way to allow sorting in descending order? thanks in advance. private void Page_Load(object...
0
by: Qajussi | last post by:
Hi! I am trying to create data entry forms like MS access forms using asp.net. I am talking about a form like MS access forms which let you enter a new record, edit, navigate to previous and next...
2
by: phillip.s.powell | last post by:
SELECT s.id, s.first_name, s.last_name, IF(s.school_year_id = 0, s.school_year_other, y.school_year_alt_display) AS school_year_name FROM student s LEFT OUTER JOIN school_year y ON...
2
by: Richard Hollenbeck | last post by:
I have the following query in a combo box: SELECT courses.courseCode, courses.courseDescription FROM courses ORDER BY courseDescription; I want to change the "ORDER BY" to display in...
5
by: subramanian100in | last post by:
In the ISO document www.open-std.org/jtc1/sc22/wg14/www/docs/n1124.pdf in the detail of the qsort library function in 7.20.5.2, the description says that, the contents of the array are sorted...
1
by: dipalipatel | last post by:
Hi, I need help to show Image on MS Access form using image control. i am using Memo field to store my image bytes, Data E.g. order# Number 1001 ...
0
by: ravikim1 | last post by:
Hi , use Sort::External; $output = '1.txt'; open(FILE, $output); my $sortex = Sort::External->new( mem_threshold => 1024**2 * 1024 ); while (<FILE>) { $sortex->feed($_); # tried to...
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: 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: 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
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:
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...

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.