Using MS Access/Update

Advertisement


Question
QUESTION: I have a field name 'CValume', type as 'number'. I am trying to set 2000 records to missing value from '10'.
I have tried using 'qurey Update' Update to: "." or "" ... , i got this ' ...can't update all the records in the update query.....'
How can i do this. Please help. Thanks!

ANSWER: Sorry I'm not following what you want to do. Are you trying to identify the blank records or fill them? What is the full SQL statement.

Scott<>

---------- FOLLOW-UP ----------

QUESTION: Sorry for the not clear question. I just want set a field with 2000 records to blank (missing value). in currently database this field have some values in there. Thanks!

Answer
Then run a Simple Update query. From Query Design mode, select your table, include the field you want updated in the grid and change the type to Update and then put Null or "" in the Update row and run the query.

The SQL for the query should look like this:

UPDATE table SET field = "" (or Is Null)

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.