Connecting Tech Pros Worldwide Help | Site Map

If a field is keyed in, then delete other fields

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:28 PM
James G via AccessMonster.com
Guest
 
Posts: n/a
Default If a field is keyed in, then delete other fields

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, 01:28 PM
Larry Linson
Guest
 
Posts: n/a
Default 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, 01:29 PM
James G via AccessMonster.com
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.