Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems Inserting Date

Status
Not open for further replies.

shwin

Programmer
Jun 10, 2004
15
US
Hey everyone,

I would like to insert the year and month in the following format:
YY-MM

I am new to access and have no idea how to go about this. Any ideas would be appreciated.

Thanks for your help!
 
Take a look at the Format function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
put this in the open event of the form
or modify it to fit in the data- default value of the forms properties

Me![Text2] = Format(Date, "yy") & "-" & Format(Date, "mm")

"My God! It's full of stars...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top