Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7308321
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:32:29+00:00 2026-05-28T23:32:29+00:00

I have an Access 2007 database that has 3 tables, each the same. Each

  • 0

I have an Access 2007 database that has 3 tables, each the same.

Each of these tables is for a different telemarketer to enter leads. It is necessary for there to be multiple tables as each marketer must be treated as a separate entity.

Each of these tables has the following fields relevant to the question:

POBoxNumber
POBoxSuburb
POBoxCity
POBoxPostCode

AddressBuilding
AddressStreet
AddressSuburb
AddressCity
AddressPostCode

Now what I need to do is create a query for label printing which will prefer the PO Box to the physical address, if the PO Box is empty it will use the physical.

I then need this to be displayed as

AddrLine1
AddrLine2
AddrLine3
AddrLine4
AddrLine5

ie AddrLine1 if pobox is filled will be the PO Box number, otherwise it will be the building… and so on.

I have tried Unions and Conditional selects so far but to no avail!

How do I do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T23:32:30+00:00Added an answer on May 28, 2026 at 11:32 pm

    Perhaps:

    SELECT 
       t.POBoxNumber As AddrLine1,
       t.POBoxSuburb As AddrLine2,
       t.POBoxCity As AddrLine3,
       t.POBoxPostCode As AddrLine4,
       ""  As AddrLine5
    FROM TheTable t 
    WHERE t.POBoxNumber Is Not Null
    UNION ALL
    SELECT 
       AddressBuilding As AddrLine1,
       AddressStreet As AddrLine2,
       AddressSuburb As AddrLine3,
       AddressCity As AddrLine4,
       AddressPostCode As AddrLine5
    FROM TheTable t 
    WHERE t.POBoxNumber Is Null
    

    If this is not what you want, please explain why it is not and provide some sample data. Your question is a little vague as it stands.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited an Access 2007 database that has been split so the tables
I have a split access 2007 database that has been running fine on a
I have an access 2007 Database that outputs a report in excel format, the
I have an Access 2007 database that works asynchronously with a MAS200 database. Due
Using MS Access 2007, I am creating a student management database. I have tables
I have created a module in access 2007 that will update linked tables, but
I have about 35 queries in a large MS Access (2007) database that I
I have a report template in Word that pulls tables from an Access 2007
I have a database of Transactions (Access 2007) that are recorded in hourly, daily
I am using Access 2007 and have some linked tables to a mySQL database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.