Solved

Update All Records

Posted on 2011-09-18
2
263 Views
Last Modified: 2012-05-12
Hi,

I have one table:

Name - Text
Location - Text
Ddate - Date/Time (Medium Date)
Day - Text

The sad part is there is no primary/autonumber in the table.

Situation is something, this database is like 2 years old and the data is being regularly updated. The day column has been recently inserted. Now what we want is to update all the day to weekday names according to the Ddate.

How can I do it?
0
Comment
Question by:Rahul Sehrawat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
plummet earned 500 total points
ID: 36556833
Try this:

1) Backup your database
2) Create a new query
3) In the SQL view enter this (but replace yourtablename):
       Update yourtablename set [Day]=format(Ddate,"dddd")

Running the query should populate the Day field with the day name.

I hope that's what you want, let me know how you get on.
0
 

Author Closing Comment

by:Rahul Sehrawat
ID: 36556841
Worked. :)
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

696 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