Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    330
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Dealing with a missing value (Access 2003 xp sp3)

    My form shows hours booked to a job. In reference to the attached pic
    Hours by Permanent staff show in the top white row and are called from a Labour table.
    Hours by Contract staff show in the bottom white row and are called from a ContractLabour table.

    Labour values are combined to give total hours using code such as: =nz([sbfContLab].[Form]![FAB])+nz([SortedLabour subform].[Form]![FAB])

    The lower view of the pic shows what happens when there is no contract labour for the job.

    How do I get the correct value to show in this case?
    Attached Images Attached Images
    "Heading for the deep end"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Dealing with a missing value (Access 2003 xp sp3)

    I think you'll have to create a table or query that lists Permanent and Contract (without knowing the details it's not possible for me to tell you how exactly), then create a new query based on this with a left join to the table or query that contains the hours, so that even if there is no contract labour, there will still be a (blank) record for it.

  3. #3
    3 Star Lounger
    Join Date
    Nov 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    330
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Re: Dealing with a missing value (Access 2003 xp sp3)

    Thanks Hans,

    I built a new query combining both sources as you suggested and it works fine.
    "Heading for the deep end"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •