473,382 Members | 1,362 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

The Year() Function and Update Queries

Hello everyone,
I have a database of clients that has a Date_Closed Field and a
Table_Name field along w/other various client infor. At the end of the
year, files get moved into a "History" table that is used for old
Client searches. I need to write a update query that places
"CLOSECurrentYEAR" ie CLOSE2002 CLOSE2003 into the Table_Name Field
I Have tried to concatinate "CLOSE & Year()& " in the expression
builder but It did not work

In the Criteria Box I have "IS Null" because when the records are
placed in the History Table the Table_Name field is always null....I
ran It with the Update To: as "CLOSEYear()" and ended up in the
Table_Name field for the right records but it needs to say CLOSE2004
not CLOSEYear()

How do I Place the current Year after the text "CLOSE" in an update
query

Thanks Much
Any Help Will be much appreciated
Nov 13 '05 #1
1 2175
On 13 Jul 2004 09:23:17 -0700, Gobi wrote:
Hello everyone,
I have a database of clients that has a Date_Closed Field and a
Table_Name field along w/other various client infor. At the end of the
year, files get moved into a "History" table that is used for old
Client searches. I need to write a update query that places
"CLOSECurrentYEAR" ie CLOSE2002 CLOSE2003 into the Table_Name Field
I Have tried to concatinate "CLOSE & Year()& " in the expression
builder but It did not work

In the Criteria Box I have "IS Null" because when the records are
placed in the History Table the Table_Name field is always null....I
ran It with the Update To: as "CLOSEYear()" and ended up in the
Table_Name field for the right records but it needs to say CLOSE2004
not CLOSEYear()

How do I Place the current Year after the text "CLOSE" in an update
query

Thanks Much
Any Help Will be much appreciated


"CLOSE & Year()& "
should be:
"CLOSE" & Year([Date_Closed])
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Zero.NULL | last post by:
Hi, We are using Month-year tables to keep the history of long transaction of our application. For example: We capture the details of a certain action in table...
7
by: John Moore | last post by:
Hi I posted three days ago about a function I wrote which kept refusing to run a mysql_query. Well I did away with the function, and hard coded the variables into the query itself. Here's...
2
by: Douglas | last post by:
I have a Vehicle MOT field in my table which i have as a Date field I dont really want to hold the year, just 'dd mmm' as MOTs are the same date every year. I have the field on my form as a...
5
by: MHenry | last post by:
Hi, I don't know what happened, but all the MS Access dates in all tables, queries, forms, and reports in all databases suddenly show on my computer with the year as 4 digits (including network...
14
by: Alan | last post by:
Hi everyone! I'm trying to produce a periodic financial report on projects from various departments. My database is set up with the tables tblDepartment, tblProjects, tblPeriods, and tblBudgets...
6
by: Terri | last post by:
I have a table called Transactions with 3 fields: ID, Date, and Amount. Each ID can have multiple transactions in one particular year. An ID might not have had any transactions in recent years. ...
18
by: Bruno Baguette | last post by:
Hello, I have to design a table wich will store some action reports. Each report have an ID like this 1/2004, 2/2004, ... and each years, they restart to 1 (1/2004, 1/2005, 1/2006,...). So, I...
38
tdw
by: tdw | last post by:
In my Orders database (which someone else created and I have been improving), when I enter a new order it generates a file number (i.e. 2007-0001) using an autonumber REC_ID field. I'll show you the...
0
gregerly
by: gregerly | last post by:
Hello, I've got a question regarding the comparison of a date and year to a timestamp. I've got blog entries that get a timestamp on their way into my database (mysql). I'm programming an...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.