Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Null field or not null field

Posted on 2013-02-03
3
Medium Priority
?
425 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 400 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 1600 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

824 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