A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I compare a number to the current year?



 
 
Thread Tools Display Modes
  #1  
Old September 30th, 2004, 09:37 PM
Novice
external usenet poster
 
Posts: n/a
Default how do I compare a number to the current year?

I Microsoft Access I have a field that contains a 4 digit number that I want
to be able to compare it to the current year. How do I do this?

I am using Microsoft Access 2002.
  #2  
Old September 30th, 2004, 10:35 PM
Dan Artuso
external usenet poster
 
Posts: n/a
Default

Hi,
You can't do that directly from a table so I assume you mean you have a form
that displays the number?
You don't say what you want to happen or what kind of comparison you want,
so the only thing I can offer is to use the DatePart function to get the current year:

DatePart("yyyy",Date())

HTH
Dan Artuso, MVP

"Novice" wrote in message ...
I Microsoft Access I have a field that contains a 4 digit number that I want
to be able to compare it to the current year. How do I do this?

I am using Microsoft Access 2002.



 




Thread Tools
Display Modes

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect current slide number, and notes page Snoop Powerpoint 1 September 16th, 2004 05:57 PM
Add a FIXED MONTH and DAY with the CURRENT YEAR texcel General Discussion 1 June 23rd, 2004 01:36 AM
day number in a year Peter B Worksheet Functions 7 January 9th, 2004 09:54 PM
Rounding Functions Teacher Worksheet Functions 2 January 7th, 2004 02:27 PM
date conversion web_time Worksheet Functions 10 December 25th, 2003 06:51 PM


All times are GMT +1. The time now is 05:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.