Results 1 to 6 of 6
  1. #1
    ShostyFan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    76

    Nz returning #size!

    I have as a txt box control source:
    =Nz(IinventoryCount].[Form]![MaxDateCount],0)



    When there is a date in the MaxDateCount the data is viewed as desired, but when the field is empty I get #size!

    Not sure how to handle this, but I did try:
    =Nz(IinventoryCount].[Form]![MaxDateCount],NULL)
    =Nz(IinventoryCount].[Form]![MaxDateCount]," ")

    All efforts have returned #size!

    Thanks.

  2. #2
    AccessPower's Avatar
    AccessPower is offline Competent Performer
    Windows 10 Access 2013 64bit
    Join Date
    Oct 2016
    Posts
    165
    =IIf(Len(IinventoryCount].[Form]![MaxDateCount]) > 0, "True", "False")))

    Untested. might be what you're looking for.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    ShostyFan is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    76
    I looked into the link Paul sent and it didn't seem to be same issue I am experiencing.
    I decided to approach the problem with a query join instead of a vba reference.
    thanks for the ideas.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Glad you got it sorted. It sounded like you were getting the error when the subform didn't have any records. The method in the link would have handled that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    have never seen this one, but I wonder if =Nz(Eval(IinventoryCount].[Form]![MaxDateCount]),0) would have done it.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Replies: 12
    Last Post: 10-21-2018, 05:49 PM
  2. Size of Access Window set to Fom size
    By MrDummy in forum Access
    Replies: 2
    Last Post: 06-26-2016, 05:18 AM
  3. Replies: 4
    Last Post: 02-10-2015, 01:07 AM
  4. Replies: 2
    Last Post: 03-20-2013, 04:25 PM
  5. Replies: 3
    Last Post: 07-19-2012, 09:27 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