?
Solved

Update All Records

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

649 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