473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

OldValue

In A2k3 is it possible to determine if the OldValue property for a check box
exists using code?

Thanks.

Keith.
Oct 11 '06 #1
2 3464
Keith, the simplest approach would be to just refer to the OldValue
property, and use error-handling to recover if the property doesn't apply.

There are too other factors to consider, such as whether the check box is
part of an option group (examine its Parent property), or bound to a
non-updatable field, or whether the check box is unbound (in which case the
OldValue does not generate an error, but is not useful), and so on.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Keith Wilby" <he**@there.comwrote in message
news:45********@glkas0286.greenlnk.net...
In A2k3 is it possible to determine if the OldValue property for a check
box exists using code?

Thanks.

Keith.

Oct 11 '06 #2
"Allen Browne" <Al*********@SeeSig.Invalidwrote in message
news:45**********************@per-qv1-newsreader-01.iinet.net.au...
Keith, the simplest approach would be to just refer to the OldValue
property, and use error-handling to recover if the property doesn't apply.
Thanks Allen, I'll look into that.
>
There are too other factors to consider, such as whether the check box is
part of an option group (examine its Parent property), or bound to a
non-updatable field, or whether the check box is unbound (in which case
the OldValue does not generate an error, but is not useful), and so on.
Duly noted, thanks.

Regards,
Keith.
Oct 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andi Plotsky | last post by:
I am running some code to validate the entry made into a form called NumberOfSamples. If validation fails, then I want to revert back to the old value. I keep getting an error msg that says: ...
0
by: Bob Darlington | last post by:
I'm using the following code, which is called from the BeforeUpdate event in a form based on 'Tenant Details', to check for changes or additions to a series of dates, and if changed, to edit...
1
by: Scott R | last post by:
I want to be able to see the changes a user makes while in the Edit Mode of FormView. My understanding is that in the FormView ItemUpdating event, I should be able to get a collection of Keys,...
5
by: Dugo | last post by:
In Access 2003, I have a form (continuous form view) with several text boxes. The text boxes are not bound to a table since the layout of the form differs greatly from the structure of the...
1
by: gazelle04 | last post by:
I have these on BeforeUpdate event of a control If Me.txtAddress.Value <> Me.txtAddress.OldValue Then Me.txtGenInfo_UpdatedOn = Now Me.txtGenInfo_UpdatedBy = fOSUserName ...
1
by: David C | last post by:
Using ASP.Net 2.0 and VS2005. I have a GridView that is bound to an SqlDataSource and I want to get and hold the previous value of a bound control on the row I am editing. Below is what I am...
1
by: DaAdmin | last post by:
I am making a Cancel button to close a form without saving. I check for changes in each control and if it changed I want to restore it to the old value, I get an error saying I can't assign value to...
8
by: Avi | last post by:
Hi all, I'm using string Replace(string oldValue, string newValue) and would like it to replace only full words that matches oldValue and not when oldValue is a substring of a larger word. ...
1
by: Allen Browne | last post by:
Testing if the new value is different from the old one avoids giving the message in these cases: a) It's a new record (so there was no old value.) b) No customer was specified previously (so the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.