It's a query that you can run in order to modify (update) data in a
table.
What I posted is a sample SQL statement of one.
To create one using the query QBE design view, create a new query in
design
view (from database window), select the table whose data need to be
updated)
and add it to the query. On the toolbar, there is a Query Type icon (with
dropdown arrow); click it and select Update Query.
Then pull the date field from the table onto the grid. In the Update To:
box, put this expression (using the actual name of the date field in
place
of DateFieldName):
DateAdd("yyyy", -100, [DateFieldName])
Clicking the red Exclamation Point icon on the toolbar will run the query
(once run, the data changes cannot be reversed).
--
Ken Snell
<MS ACCESS MVP>
Ann said:
Ken you'll have to go slow. What's an Update query?
Ann
:
You need to change the data? Just use an Update query (make copy of
database
before you do this, just in case):
UPDATE TableName
SET [DateFieldName] = DateAdd("yyyy", -100, [DateFieldName]);
--
Ken Snell
<MS ACCESS MVP>
Is there a way I can *quickly* change the year from 20XX to 19XX?
When I first entered the data, I used this date format xx/xx/xx and
all
the
years defaulted to 20xx like a count when the period went to xx00.
Hope this makes sense. My boss is asking for a quick solution!
Thanks,
Ann