Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old January 18th, 2005, 10:35 AM
Rishyraj Rishyraj is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 53 Rishyraj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m
Reputation Power: 4
Arrow Date format

Hi There,

I have formatted the date as follows:

Month: Format([directors Meeting day],"mmmm" & "- " & "YY")

This gives me 08/31/2004 as August-04 but the problem is, how do i make the thing work in ascending order.

For example:

August -04
December -04
January-05
June-04

I want them to be in the ascending order as

June-04
August -04
December -04
January-05

Your advise/input is highly appreciated.

Rishy

Reply With Quote
  #2  
Old January 18th, 2005, 11:36 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Rishy,

In your query make a new column Year([directors Meeting day]) This will give you the year...Sort ascending in this column.

Then make another column Month([directors Meeting day]) This will give you the month as a number. Then sort ascending in this column.

Both columns can be hidden, but make sure you sort by year first then by the month.

lwells

Reply With Quote
  #3  
Old January 19th, 2005, 12:10 PM
Rishyraj Rishyraj is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 53 Rishyraj User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 29 m
Reputation Power: 4
Arrow That helped.

Thanks Iwells. Your suggestion was very helpful.

Well, but got stuck on next step.

I have the following condition.

Columns in a query are
Actionofficers Actiondirectors
1. Approved Approved
2. Declined Accepted report
3. Approved Blank-Null
4. Approved Declined.
5. Approved Tabled

I made another column with the following condition.

Actionoverall: IIf([actiondirectors] Is Null,[action],[actiondirectors]).This helped me in filling up the blank spaces in action by directors with action of officers and i would give the criteria <>declined and <> tabled. This works fine.

I WANT a condition apart from the above one, which says, if action officers=declined and if action directors = accepted report then take action officers(declined).

Any help in appreciated.

Rishy

Reply With Quote
  #4  
Old January 19th, 2005, 03:36 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Rishy

Is this the same type of question in your other post? Otherwise you have two conditions that will either provide either a TRUE or FALSE statement.

IIf([actionofficers]="declined" And [actiondirectors]="accepted report", TRUE part, FALSE part)

lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Date format


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT