Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Date Box - A couple of things

Posted on 2011-02-14
3
223 Views
Last Modified: 2012-05-11
Hi all,

Please see the attached database.  Jez created the form frm_KPI_Main.

As you can see the MonthID is a text field and the order field is used to sort them into the correct order.  I am going to be adding some buttons to launch some reports directly from this form and I want to use the Month ID as the search criteria in the query.  

However the date combo box doesn't return what is selected (i.e. December 2010) but it returns the order (01) - Is there a way around this?

Also is it possible to arrange the dates into descending order?

Regards

Chris
Copy-of-ee5.mdb
0
Comment
Question by:smods
  • 2
3 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 500 total points
ID: 34887521
you can extract the date column from the listbox by using

Me.[Order].Column(0)
0
 

Author Comment

by:smods
ID: 34887573
Excellent! Cheers for that capricorn1

Is there also a way to sort the combo box data in descending order?
0
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 500 total points
ID: 34887611
just set the order by clause to Desc in the rowsource of the list box

select monthid,[order] from tableName order by [order] desc
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question