Andy,
As far as I know, there is no way to limit the data entered into a field
according to significant digits.
However, on the Before Update event of the PayItemQuantity control, you
could test the value entered against the defined limits, and pop up a
message box to the user telling them if there's an error.
--
Steve Schapel, Microsoft Access MVP
Andy said:
This is really a "significant digit question. I have a
field,[PayItemTransactions]![PayItemQuantity] and yes it is set to
decimal,
in which, the user enters quantity used. The user must enter a pay item
prior
to that from a table [PayItems]![Item] which also contains the field
[BidPrice]. Upon entering his or her data in the field
[PayItemTransactions]![PayItemQuantity], perhaps a macro "on dirty" can
fire
and can set the perameter of the field [PayItemQuantity] to limit its
significant digits based on the [PayItems]![BidPrice].
The required field parameters are set as mentioned in the original
question.
I think this is a tall order and Im not sure if it is even possible.
[BidPrice] is a varable but non changeable dollar value. It determines how
many significant digits must be entered for calculating precision of
payment.
If the macro can automaticly set the number of digits prior to entering
the
data into the field [PayItemQuantity] it would eliminate a massive number
of
potential errors...The [PayItems] table can have a massive amount of items
in
it.
__________ Information from ESET Smart Security, version of virus signature database 4136 (20090606) __________
The message was checked by ESET Smart Security.
http://www.eset.com