Solved

How to change these Null values?

Posted on 2014-04-14
2
313 Views
Last Modified: 2014-04-14
I have a table with lots of Null values. I have realized why they are Null and I want to change them all to certain values.
Here is what my table looks like:

Nursing Home.....Worksheet....Line Number.....Column.....Number
1012587               B000002       400                                     3159
1012587               B000001        3000                                  7989
1012587               A000001        500                    200           299

For the B000002 work sheet the column should be 302 and for the B000001 worksheet the column should be 301.
Since the null values are all scattered and I have 11,481 that needs to be changed... is there a query I can run? I tried the update query but it came out blank...
0
Comment
Question by:alesha711
2 Comments
 
LVL 35

Accepted Solution

by:
Bembi earned 500 total points
ID: 40000220
As it is Access you can just use an update query to construct the sql statement.
Update tableName
Set column = 302
where Worksheet = "B000001"

or something into this direction-.
As I said you can use the access assinstant to create it, just slecte "Update" as the wuery type
0
 

Author Comment

by:alesha711
ID: 40000223
Ok thank you I was doing it wrong...
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

856 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