Solved

Update All Records

Posted on 2011-09-18
2
261 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
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 …

914 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now