Irmgard Wesselb
Registered User.
- Local time
- Today, 11:32
- Joined
- Feb 6, 2003
- Messages
- 12
Dear Access Gurus,
This is my very first post, but I have searched the Access Forum
for a few months and found many valuable tips and solutions.
Perhaps someone can help me with the following problem/challenge:
In a MEMBERSHIP database, I have a table named POSTCODES, which has the following fields:
ID (AutoNumber....linked to the Members table, One-to-Many)
AREA Description (Text)
FROM (Number, 4 digits for Australian Postcodes)
TO (Number, 4 digits for Australian Postcodes)
POSTGROUP (Number, 3 digits for the Postcode Group Number)
What I want to achieve is that the POSTGROUP number is automatically inserted as soon as the POSTCODE is entered. Access would have to check what is entered in the POSTCODE field (on the Members form), look up the correct value in the POSTCODES table and put it into the POSTGROUP field (also on the Members form).
For example: all Post Codes within the range 3100 to 3499 belong to the Postcode Group 335,
Therefore, if the Postcode 3249 is entered, the function (Macro?, VB? Query?) should find and insert 335 into the POSTGROUP field. Is this possible?
I have spent many hours trying to figure it out, but keep getting error messages. (I do not have VB programming knowledge but have worked with databases for a few years).
Any help would be much appreciated.
Regards….Irma
This is my very first post, but I have searched the Access Forum
for a few months and found many valuable tips and solutions.
Perhaps someone can help me with the following problem/challenge:
In a MEMBERSHIP database, I have a table named POSTCODES, which has the following fields:
ID (AutoNumber....linked to the Members table, One-to-Many)
AREA Description (Text)
FROM (Number, 4 digits for Australian Postcodes)
TO (Number, 4 digits for Australian Postcodes)
POSTGROUP (Number, 3 digits for the Postcode Group Number)
What I want to achieve is that the POSTGROUP number is automatically inserted as soon as the POSTCODE is entered. Access would have to check what is entered in the POSTCODE field (on the Members form), look up the correct value in the POSTCODES table and put it into the POSTGROUP field (also on the Members form).
For example: all Post Codes within the range 3100 to 3499 belong to the Postcode Group 335,
Therefore, if the Postcode 3249 is entered, the function (Macro?, VB? Query?) should find and insert 335 into the POSTGROUP field. Is this possible?
I have spent many hours trying to figure it out, but keep getting error messages. (I do not have VB programming knowledge but have worked with databases for a few years).
Any help would be much appreciated.
Regards….Irma