Solved

Null field or not null field

Posted on 2013-02-03
3
420 Views
Last Modified: 2013-02-03
access 2010


I'm trying to up a field  primary_image2 from primary_image..


Alot of records will not update?
I have the "Zero Length" set to yes.




UPDATE Picture_NotAll SET Picture_NotAll.primary_image2 = [Picture_NotAll].[primary_image]
WHERE (((Picture_NotAll.primary_image2) Is Null));

Thanks
fordraiders
0
Comment
Question by:fordraiders
3 Comments
 
LVL 40

Assisted Solution

by:als315
als315 earned 100 total points
ID: 38848200
Try to set Where also to Or Like "". May be it is not Null, but zero length string
Full Criteria string will be:
is Null Or Like ""
0
 
LVL 10

Accepted Solution

by:
plummet earned 400 total points
ID: 38848473
Hi

Are you getting an eror or just not the result you're expecting? Are you sure that all the primary_image fields have data? Also, you could try a different variety of the WHERE clause:

WHERE nz(Picture_NotAll.primary_image2,"")=""

This checks for NULLs and empty strings - ie if the field is null it returns an empty string, which you can then check for.
0
 
LVL 3

Author Closing Comment

by:fordraiders
ID: 38848870
Thanks ! very much
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

809 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