Improve company productivity with a Business Account.Sign Up

x
?
Solved

Convert current date to Julian date code - Access query or VB

Posted on 2014-04-23
2
Medium Priority
?
2,952 Views
Last Modified: 2014-04-24
I need to update a field with the current Julian code on a daily basis.  The hurdle I have is how to find the Julian date code, based upon today's date.  I'd rather do it in a query, but can create a macro and do it in VB if needed.  Any suggestions?
0
Comment
Question by:dzirkelb
  • 2
2 Comments
 
LVL 59
ID: 40017544
Really simple, it's the VBA format function:

? Format$(Now(),"y")

Jim.
0
 
LVL 59

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 40017570
year and day BTW is:

? Format$(Now(),"yyy")

Jim.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article, we will show how to detach and attach a database and then show how to repair a corrupt database and attach it, If it has some errors. We will show how to detach and attach using SSMS or using T-SQL sentences.
With the functions here, you can parse, convert, and format back and forth between feet and inches and fractions and decimal inches - for normal as well as extreme values and with extreme precision.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

586 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