UK Post Codes

  • Thread starter Thread starter Gavin
  • Start date Start date
G

Gavin

Guest
Below is a section from my PostCode Tbl

CodeID....Area......County........Code
[20061] Yattendon, Berkshire, RG18
[20062] Ashford Hill, Hampshire, RG19
[20063] Crookham, Berkshire, RG19
[20064] Headley, Hampshire, RG19
[20065] Plastow Green, Hampshire, RG19
[20066] Arborfield Cross, Berkshire, RG2
[20067] Arborfield Garrison, Berkshire, RG2
[20068] Arborfield, Berkshire, RG2
[20069] Shinfield, Berkshire, RG2
[20070] Whitley, Berkshire, RG2
[20071] Ashmansworth, Hampshire, RG20
[20072] Bagnor, Berkshire, RG20
[20073] Ball Hill, Hampshire, RG20
[20074] Beedon, Berkshire, RG20
[20075] Boxford, Berkshire, RG20

On my Contractors Data form I want to be able to select one or more PostCodes (RG2, RG20, PO2) which represent the areas of the towns or cities that any one contractor can cover.

As can be seen any particular Code can represent more that one Area and/or County so I need to be able to filter out all duplicate entries so that on my From I can enter one or more Codes and have a list of all the Areas and Counties displayed below.

Yattendon, Berkshire, RG18
Ashford Hill, Hampshire, RG19
Crookham, Berkshire,
Headley, Hampshire,
Plastow Green, Hampshire,
Arborfield Cross, Berkshire, RG2
Arborfield Garrison, Berkshire,
Arborfield, Berkshire,
Shinfield, Berkshire,
Whitley, Berkshire,
Ashmansworth, Hampshire, RG20
Bagnor, Berkshire,
Ball Hill, Hampshire,
Beedon, Berkshire,
Boxford, Berkshire,

This Code (RG20) can then be used by my Customer.Form to find all Contractors within either the Customers Post Code or the Customers Area. So that if I enter on the Customers Form their Post Code as RG2 or address area as Whitley then a list of Contractors who cover these areas will be displayed

Is it possible and more to the point HOW?

Any help most welcome. Thanks Gavin
 
You have a one to many relationship between PostCode and district and therefore need to construct the tables ,Form/subform accordingly
 
Not clear

Are your contractors allocated to their patch by area or post code? You seem to suggest postcode.

If you want to enter the area in your form, why not look up the post code and populate the post code control on your form with this. Otherwise, key in the post code to the control.

Then query your contractors table by post code.

Am I missing something?
 

Users who are viewing this thread

Back
Top Bottom