Results 1 to 4 of 4
  1. #1
    excellenthelp is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    93

    Field = blankl, Show Value from Other Field?

    Hello Accessers,

    I am attempting to build a query where if one field is blank, the query can continue to include the data from the next field instead of excluding it in the results.

    The two tables and a query I am attempting to create a query from are:

    TABLE tblAssignment:
    ID (PK)
    AssignmentDescrip
    AMID (fk)


    DIVID (fk)

    TABLE tblDivision
    ID (PK)
    Division

    QUERY qrySupportName:
    ID
    EmployeeName
    DIVID (fk)

    I am building another query based on these three above to create a report where I could break down the assignments by DIVID from tblAssignment.

    The problem is that not every record have AMID but DIVID should be all filled. However, I do not want to manually select which division for every record, for when I select an AMID, it should autofill the DIVID according to the selection I made for AMID. For those without AMID, I would then select the division.

    How may I achieve this?

    Thanks...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Maybe:

    Nz([AMID], [DIVID])
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    excellenthelp is offline Advanced Beginner
    Windows 8 Access 2013
    Join Date
    Mar 2014
    Posts
    93
    June7,

    Thanks for the tip- where do I put that in?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    I am not sure, perhaps in qrySupportName on the Field row. This will create a field in the query.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-20-2014, 08:56 PM
  2. Replies: 4
    Last Post: 04-03-2014, 08:03 AM
  3. Replies: 11
    Last Post: 11-12-2012, 05:48 PM
  4. Query Help - Show field if another field is null
    By lukekonrad in forum Access
    Replies: 1
    Last Post: 03-05-2012, 04:02 PM
  5. Replies: 1
    Last Post: 12-28-2011, 11:37 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