?
Solved

Update All Records

Posted on 2011-09-18
2
Medium Priority
?
267 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

752 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