Forum home » Delegate support and help forum » Microsoft Access Training and help » Validation rule?
Validation rule?
Resolved · Low Priority · Version 2003
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
For upcoming training course dates see: Pricing & availability
RE: validation rule?
Hi DaigaThanks 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.
|
|
» Forum post: Macros |



Course updates

