Bob &/or Scott,
Well, you can't edit the record without editing the record.
It might work to think of it the other way around... First add a new
record to the table that duplicates the values in the last existing
record, and then edit the newly added record as required.
I still don't know what you mean by "last record". Do you have a field
that shows the date/time the record was created, or a, incremental
numbering field, or whatnot, that can be used to identify the last
record. Whatever, you can make an Append Query based on this record, in
order to add a new record to the table, and then open the form to
display this record, which will now be the "last", right?
You can't directly enter 10% by just entering 10. 10% is not 10, 10% is
..1, or else you can actually type in 10%. Having said that, I suppose
you could use code on the AfterUpdate event of the contol on the form,
the equivalent of this...
Me.YourPercentField = Me.YourPercentField / 100
I can't really envisage too much problem with this, unless someone tried
to edit a previously entered figure.
--
Steve Schapel, Microsoft Access MVP
Bob wrote:
> Hi Steve,
>
> Thanks for the help, but I've still got some issues...
> I've set it up so that my form opens the table and looks at the last
> record on activation and now I can edit the text box but it will
> automatically edit the table. I don't want to automatically edit the
> table, I want to display the values from the last record in the table,
> then I want a user to be able to edit those values and then add those
> figures to a new record in the table (without updating the last record
> in the table.. how do I do that?
>
> Also, I want the percentage to be able to be entered as a whole number,
> not a decimal, so 10% can be entered as 10, not .10, how can I do that?
|