98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access Training and help » Validation rule?
Validation rule?
Resolved · Low Priority · Version 2003
Daiga has attended:
Access Intermediate course
Validation rule?
Let's say I need to have two fields on my'annual returns' form - Year and specific code (specific vaccination centre number, which is 'autonumber'aswell ). I need to make sure that the centre number doesn't have two records for each year. The centre number is for example '1234' and they are submitting one form for each year, which is then entered on my database. How do I need to set up my databse? Is it a validation rule that I need to define?
Many thanks
RE: validation rule?
Hi Daiga
Thanks for your question
Assuming that the form is taking its data from a single table, the the best option would to make the form's primary key, a compound of year and centre number. This would then mean that you could only ever enter one record per centre per year.
If you have any further problems please do not hesitate to follow up and I'll give you further guidance
Regards
Stephen
Thu 11 Mar 2010: Automatically marked as resolved.
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Choosing data types in AccessNot sure which data type to use for your Access fields? Here are some guidelines to help you choose a data type to assign to a field. |