Results 1 to 3 of 3
  1. #1
    Phil Hoop is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Location
    Edina, MN
    Posts
    9

    Question Update blank fields in a table to "BLANK"

    I need to scan a table and update all blank fields to "BLANK". Ideally I would like to do this with an update query, but am willing to use vba if necessary. Thanks for any suggestions you are willing to offer. .................Phil Hoop

  2. #2
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    If you use something like Nz(fieldname,"") = "" in the criteria for the field to be updated it should work. I used Nz in case the "blank" field can be either Null or an empty string.

  3. #3
    Phil Hoop is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Sep 2017
    Location
    Edina, MN
    Posts
    9
    Thank you John_G. I tried your suggestion, but unfortunately it didn't work. After a couple of hours of trial and error I finally stumbled onto something that did work. It was an update query that updated the Field = 0 when the Len(Trim([fieldname]) & "") Criteria = 0. Hopefully this may save some access user a bit of frustration in the future. Thanks again. ..................Phil Hoop

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 07-12-2016, 08:10 AM
  2. Replies: 3
    Last Post: 02-08-2015, 02:43 PM
  3. Import Excel ("X" or blank) field to Access Checkbox
    By bbelly in forum Import/Export Data
    Replies: 4
    Last Post: 12-22-2014, 03:46 AM
  4. Setting Blank Fields to "N/A"
    By AKQTS in forum Reports
    Replies: 6
    Last Post: 07-15-2011, 04:40 AM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums