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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Joining text with date 1

Status
Not open for further replies.

ksdadguy

Technical User
Mar 16, 2003
37
0
0
US
Is there a function in Access similar to spreadsheet TEXT() function where I can extract the current year and add it onto the end of the text?

I have created some update queries in ACC2000 and they work fine. However, on one of the queries, I need to add the year onto the end of the text field.

The database is for a school where a promotion query is run to graduate the seniors with the result becoming:
Graduated-yyyy
where yyyy is current year

Here is what my sql code looks like now with the exception of adding on the value of the year:

UPDATE StudentInfo SET StudentInfo.Grade = "Graduated-"
WHERE (((StudentInfo.Grade)="Senior"));

Any help would be greatly appreciated

Thanks,
KSDadGuy
 
Rudy,

Thanks much for the answer, it works perfectly. I tried the format statement last night, but did not have it setup with the single quotes and double quotes.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top