S
Simon Harris
Hi All,
I am writing an Access application to keep track of what customers are
staying in what caravans on a number of Holiday parks.
Each Park has one or more pitches, each pitch has one customer assigned to
it.
I do not wish to, or need to store details of each pitch (Each pitch is the
same - A number, assinged to a given park)
I do need to:
1) Know what customer is on what pitches
2) Ensure that only 1 customer is on 1 pitch
So far, I have:
- tblCustomers (Address, site ID, Pitch Number)
- tblSites (Site Name, No of Pitches)
I am now trying to write a query that will return a list of pitch numbers
based on the value stored in tblSites which I am hoping will return a rwo
for each pitch (Even though we do not physically have this data). I then
plan to do a 'not exists in' query on this, hopefully showing me available
pitches.
Have I got my logic totally wrong here? Any ideas how I might achieve this?
Thanks!
Simon.
I am writing an Access application to keep track of what customers are
staying in what caravans on a number of Holiday parks.
Each Park has one or more pitches, each pitch has one customer assigned to
it.
I do not wish to, or need to store details of each pitch (Each pitch is the
same - A number, assinged to a given park)
I do need to:
1) Know what customer is on what pitches
2) Ensure that only 1 customer is on 1 pitch
So far, I have:
- tblCustomers (Address, site ID, Pitch Number)
- tblSites (Site Name, No of Pitches)
I am now trying to write a query that will return a list of pitch numbers
based on the value stored in tblSites which I am hoping will return a rwo
for each pitch (Even though we do not physically have this data). I then
plan to do a 'not exists in' query on this, hopefully showing me available
pitches.
Have I got my logic totally wrong here? Any ideas how I might achieve this?
Thanks!
Simon.