Results 1 to 2 of 2
  1. #1
    whollycow is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2020
    Posts
    2

    #Error - Very Strange Issue

    Hi. I have a list of date fields. They are in Short Text Data Type for reasons. They are mm/dd/yyyy. I run a select query and use CVDate expression. The problem here is that some of my date fields return the result but in some of the records there is #Error. These #Error is actually in some blanks. I'm not sure why it is in some blanks and some are displayed in blanks. No issues with my other date fields and I'm unable to determine the root cause. Please help!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,518
    The conversion functions will error if the value is Null. You can use the Nz() function to avoid the error, or maybe IIf().
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Strange error
    By jecho_nl in forum Macros
    Replies: 4
    Last Post: 01-30-2017, 08:22 AM
  2. Very Strange subform data entry issue
    By RayMilhon in forum Forms
    Replies: 3
    Last Post: 06-05-2015, 10:46 AM
  3. Very strange issue: form opens blank
    By spleewars in forum Programming
    Replies: 5
    Last Post: 06-01-2012, 12:47 PM
  4. Replies: 6
    Last Post: 03-17-2010, 10:09 PM
  5. Strange issue with Access 2002 - Any suggestions?
    By mlopezkimco in forum Access
    Replies: 0
    Last Post: 07-30-2008, 09:25 AM

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