Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54
    Here is what I have:



    RightPart: IIf(IsNull([wc]),Null,[WC] & "-") & [WC] & "-" & IIf([endstring]<>Len([remainingoperations]),Right([remainingoperations],Len([remainingoperations])-[endstring]),Null)

  2. #17
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    I don't have a copy of the database I did testing with anymore so if you want to post a copy of what you're working with I can take a look, just redact any privacy information and zip up a copy of your database and post it on this forum.

  3. #18
    KrenzyRyan is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    54
    Thank you sir, please see attached

  4. #19
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Your #Error is appearing on lines where the remainingoperations line is null so you'd need this formula:

    RightPart: iif(isnull(remainingoperations), null,([WC] & "-" & IIf([endstring <>Len([remainingoperations]),Right([remainingoperations],Len([remainingoperations])-[endstring]),Null)))

    And you would similarly need to account for the null value of remaining operations in any of the segments where on which you're using left/right/mid string functions.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Conditional formatting
    By avarusbrightfyre in forum Forms
    Replies: 3
    Last Post: 07-01-2011, 11:18 AM
  2. Bold Field by Cursor Position
    By Rawb in forum Forms
    Replies: 4
    Last Post: 02-08-2011, 08:03 AM
  3. Conditional Formatting
    By Desstro in forum Programming
    Replies: 3
    Last Post: 12-01-2010, 09:52 PM
  4. conditional formatting right(..)
    By bbeernaert in forum Access
    Replies: 3
    Last Post: 08-25-2010, 12:33 AM
  5. Conditional Formatting
    By DanOzDirect in forum Reports
    Replies: 3
    Last Post: 07-21-2010, 08:49 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