Results 1 to 2 of 2
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839

    Changing the Numerical Display Part 2

    June7,


    You provided the following Code:
    Using a DLookup():

    IsCRNumComplete: DLookup("Action_Complete", "[Change Request]", "CR_No = " & [CR_No] & " AND Sub_No=0")

    MYAlias: IIf([IsCRNumComplete] And [sub_no]<>0,[CR_No] & Trim([CR_Numbers]),[CR_Numbers])

    It does work for the most part, but always leaves the Action_Complete CR's to a ##.## format.

    Is there a way to only have the CR's with CR_No + Sub_No<>0 and Action_Complete=False <> CR_No + Sub_No=0 and Action_Complete=True

    I am thinking this derives from the Dlookup code somehow. The current code makes a -1 output for the whole CR if any part of the CR is closed, regardless if there is one part of the CR + Sub_No<>0 is open.

  2. #2
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    Disreguard Problem solved.
    I changed
    MYAlias: IIf([IsCRNumComplete] And [sub_no]<>0,[CR_No] & Trim([CR_Numbers]),[CR_Numbers])
    To
    CR_Numbers: IIf([IsComp] And [sub_no]<>0 And [Action_Complete]=False,[CR_No] & Trim([CR_Numberz]),[CR_Numberz])

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

Similar Threads

  1. Changing the numerical display
    By Thompyt in forum Programming
    Replies: 45
    Last Post: 12-22-2015, 04:38 PM
  2. Changing font color of just part of a label
    By NGFLNG1 in forum Access
    Replies: 3
    Last Post: 09-11-2015, 11:02 AM
  3. Replies: 9
    Last Post: 09-09-2014, 01:50 AM
  4. Replies: 8
    Last Post: 05-21-2014, 07:21 PM
  5. Changing the century part of the date.
    By Chet in forum Queries
    Replies: 2
    Last Post: 05-13-2012, 08:27 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