--
Message posted via http://www.accessmonster.com
If I got you correctly, you want the answer in a dropdown in section 5
to be no less than the average in section 1.
One possible solution is to not populate the section5 dropdowns until
section1 has been completed. Once completed, only populate those
dropdowns with the values up to the average.
Another possible solution is to write code in the BeforeUpdate event
of the section5 dropdowns (assuming they are still populated with 0-3)
to validate the answer. Something like this one-liner:
Cancel = Me.mySection5Combobox.Value > myGetAverageOfSection1()
(of course you use yourObjectNames rather than mine)
The trick here is that Cancel is set to True if the value is more than
the average, which forces the user to select a different value.
-Tom.
Microsoft Access MVP
Tom van Stiphout wrote:
>If I got you correctly, you want the answer in a dropdown in section 5
>to be no less than the average in section 1.
>
>One possible solution is to not populate the section5 dropdowns until
>section1 has been completed. Once completed, only populate those
>dropdowns with the values up to the average.
>
>Another possible solution is to write code in the BeforeUpdate event
>of the section5 dropdowns (assuming they are still populated with 0-3)
>to validate the answer. Something like this one-liner:
>Cancel = Me.mySection5Combobox.Value > myGetAverageOfSection1()
>(of course you use yourObjectNames rather than mine)
>The trick here is that Cancel is set to True if the value is more than
>the average, which forces the user to select a different value.
>
>-Tom.
>Microsoft Access MVP
>
>>I have a form which employees enter data answering questions using a scoring
>>system (0-3). The form has 5 sections. What i would for it to do is after
>[quoted text clipped - 15 lines]
>>rules so the score cannot be more than 3. If more info is needed please post
>>and i will provide info as needed. Thanks in advance for the help.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/201001/1
Hi shangman,
I apologise if this is an unsatisfactory answer, but I really think
you need the help of a professional developer. That's what your
questions are indicating. This forum can give you hints in the right
direction but cannot write the code for you.
"Microsoft Solution Provider" in your yellow pages may be a good place
to start.
-Tom.
Microsoft Access MVP