Query Question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

OK, I am going to try and word this as well as I can, but please bare with me!

I have two databases. One for the details of people, and one that holds
their phone numbers. A persons phone numbers are only added if necessary e.g.
if they have a mobile number, a new record is created in the numbers database
and labelled 'mobile'. If they don't have a mobile number, a 'mobile' record
will not exist for them.

I am trying to create a query (and report) to show the pager and mobile
numbers for all people, and to have a blank space for these numbers if they
do not exist. The output MUST be all on one line. At the moment I am only
able to either produce the required results on multiple lines, or else only
show those people that have BOTH numbers.

There MUST be a way around this, but i can not for the life of me figure it
out.

Please somebody help me!!!!
 
SELECT People.PeopleID, People.LName, People.FName, Phone.Phone,
PMobile.Mobile, Pager.Pager
FROM ((People LEFT JOIN Phone ON People.PeopleID = Phone.PeopleID) LEFT JOIN
PMobile ON People.PeopleID = PMobile.PeopleID) LEFT JOIN Pager ON
People.PeopleID = Pager.PeopleID;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Show every customer even if mobile in null 2
Access Tidy up phone numbers 0
Access Access Query Criterion 1
Phone Clock 4
Mobile Phone for Seniors. 1
Multiple, unique values into the one row 4
Mobile number from 3 fields 1
Wifi Network Issue 0

Back
Top