robertmcallister
New member
- Local time
- Today, 12:10
- Joined
- Sep 15, 2020
- Messages
- 7
Hi all,
I hope you're all doing well and that there's someone here who can help!
I am very new to Access and in my line of work I help manage a huge database within a healthcare setting. Right now my team are receiving referrals and for years they have been inputting the district as the city, however the city itself is split up into three main healthcare districts (district one, district two, district three). Which district each belongs to is determined by their postcode.
Of course there are thousands of postcodes with slight variations: "D21 5DT" and "D21 9FH". With this example the third-last character is the difference between district one and district two, so I need Access to be able to find postcodes that begin with "D21 1" through to "D21 7" and have their district updated to district one, and similarly I need "D21 8" and "D21 9" updated to district two.
This is just one example, but if I could be assisted with this one example I would then know how to go on and do the rest.
Currently I have tried updating using the criteria 'like "D21 5"' and updating the district to 'District One', however this just erases the entire referral list!
Any help or advice would be greatly appreciated.
Many thanks in advance
UPDATE: I have managed to use wildcards to update the tables (e.g., 'like "D21 8**"') but then I just get one column with 1384 rows (the number of entries I replaced) saying 'District One' - how do I update information in one column based on information from another column?
I hope you're all doing well and that there's someone here who can help!
I am very new to Access and in my line of work I help manage a huge database within a healthcare setting. Right now my team are receiving referrals and for years they have been inputting the district as the city, however the city itself is split up into three main healthcare districts (district one, district two, district three). Which district each belongs to is determined by their postcode.
Of course there are thousands of postcodes with slight variations: "D21 5DT" and "D21 9FH". With this example the third-last character is the difference between district one and district two, so I need Access to be able to find postcodes that begin with "D21 1" through to "D21 7" and have their district updated to district one, and similarly I need "D21 8" and "D21 9" updated to district two.
This is just one example, but if I could be assisted with this one example I would then know how to go on and do the rest.
Currently I have tried updating using the criteria 'like "D21 5"' and updating the district to 'District One', however this just erases the entire referral list!
Any help or advice would be greatly appreciated.
Many thanks in advance

UPDATE: I have managed to use wildcards to update the tables (e.g., 'like "D21 8**"') but then I just get one column with 1384 rows (the number of entries I replaced) saying 'District One' - how do I update information in one column based on information from another column?
Last edited: