Connecting Tech Pros Worldwide Help | Site Map

If a field is keyed in, then delete other fields

  #1  
Old November 13th, 2005, 02:28 PM
James G via AccessMonster.com
Guest
 
Posts: n/a
Hi

I have a textbox (Final Flat) that contains a default value of zero. The
other 2 textboxes (Final rate and Final Minimum) always have a numeric value
in them. What i want to do is this......whenever the (Final Flat) is keyed
in, then delete the values in the Final Rate and Final Minimum...........how
would i go about doing this?......thank you!


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200509/1
  #2  
Old November 13th, 2005, 02:28 PM
Larry Linson
Guest
 
Posts: n/a

re: If a field is keyed in, then delete other fields


James G wrote
[color=blue]
> I have a textbox (Final Flat) that contains
> a default value of zero. The other 2 text-
> boxes (Final rate and Final Minimum) always
> have a numeric value in them. What i
> want to do is this......whenever the (Final
> Flat) is keyed in, then delete the values
> in the Final Rate and Final Minimum[/color]

Assuming the Control is bound to a Field in the RecordSource, in the
AfterUpdate event, put code to test for non-zero and to set the other
Controls to zero. If it is unbound, probably the Lost Focus event would be
best.

Larry Linson
Microsoft Access MVP


  #3  
Old November 13th, 2005, 02:29 PM
James G via AccessMonster.com
Guest
 
Posts: n/a

re: If a field is keyed in, then delete other fields


Ok .....this works great.....thank you!....but what if i want to reverse the
process. For instance, what if the person didn't like what they keyed in on
the (Final Flat) and wanted to basically undo what they just did, so the
original values, which were in the (final rate) and (final min) textboxes
before, show up again. How would i go about doin that? thank you!


--
Message posted via http://www.accessmonster.com
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot update ODBC linked table even though I have R/W access to the table nzaiser answers 2 October 4th, 2007 03:31 PM
Deploying new app. Upgrade theory ARC answers 17 August 23rd, 2007 04:55 PM
access97, is there an event triggered when you undo the contents of a field lesperancer@natpro.com answers 4 June 23rd, 2006 10:15 PM
Linking an Mdb to SQL Server diskoduro answers 14 November 12th, 2005 07:12 PM