Re: How Can I Pre-Process Data in a Bound Control?
- From: "Ron Weiner" <weinNoSpam1@xxxxxxxxxxxxxx>
- Date: Tue, 23 Aug 2005 12:28:44 -0400
If you are interested I have a popup four function calculator that here
http://www.WorksRite.com/Calc.htm that you can easily bind to your text box.
when activated it uses the existing value and format of the field, allows
the user to perform any number of simple arithmetic steps and save the value
back your field when closed. Perhaps not exactly what you were aiming for
but, might get you where you want to go. The calculator is a 100% Access
solution with no Active X installation hassles.
--
Ron W
www.WorksRite.com
"JonOfAllTrades" <JonOfAllTrades@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F040B92A-29C1-4265-89D0-2AC1F6C160AA@xxxxxxxxxxxxxxxx
> Good morning. I have a fairly simple question, hopefully someone
here
> has seen it.
> I have a form used for data entry. There is an HoursWorked control,
> bound to a numeric field. Often, a user needs to enter hours from
multiple
> line items. They can do this by adding the hours in Excel, Calculator, a
> separate control with Eval(), or of course a physical calculator, and then
> entering the total.
> I would like to engineer it such that a user can type either "4.5" or
> "1.5+2+1" and the control will understand the value as 4.5. I added
Control
> = Eval(Control) to BeforeUpdate. However, it seems Access is verifying
the
> format of the input before BeforeUpdate runs; it complains about the value
> entered not being numeric. If I enter simple numeric data, the code tries
to
> run but throws an error "The macro or function set to the BeforeUpdate or
> ValidationRule property for this field is preventing Access from saving
the
> data in this field."
> I could create a separate unbound control, but in that case they
might
> as well use their favorite Casio or TI.
> Any suggestions?
> Thank you!
>
> Win XP/Access 2K
.
- References:
- How Can I Pre-Process Data in a Bound Control?
- From: JonOfAllTrades
- How Can I Pre-Process Data in a Bound Control?
- Prev by Date: Re: TabPages
- Next by Date: Re: prevent deletion of record
- Previous by thread: Re: How Can I Pre-Process Data in a Bound Control?
- Next by thread: Re: How Can I Pre-Process Data in a Bound Control?
- Index(es):
Relevant Pages
|