dbTalk Databases Forums  

How to trap moving from one record to another

comp.databases.ms-access comp.databases.ms-access


Discuss How to trap moving from one record to another in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Pieter Linden
 
Posts: n/a

Default How to trap moving from one record to another - 08-05-2003 , 10:18 PM






A2000/2002.

Stupid question, I hope.

I have a form in which I have a combobox, cboPayType and a textbox,
txtCC.

If the cboPayType.Value = "Cash", I don't need a value in txtCC.
Otherwise, I want to require a value. (If you're not paying cash, I
need a check number or a credit card number). I can stop the
Close/Unload event of the form without a problem.

How do I trap the moving from one record to the next? I thought
OnCurrent is after that...

Thanks,
Pieter

Reply With Quote
  #2  
Old   
Tom van Stiphout
 
Posts: n/a

Default Re: How to trap moving from one record to another - 08-05-2003 , 11:46 PM






On 5 Aug 2003 20:18:31 -0700, pietlinden (AT) hotmail (DOT) com (Pieter Linden)
wrote:

I would write my code in the Form_BeforeUpdate event, and set Cancel
to True if the user has not filled out the form correctly.

-Tom.


Quote:
A2000/2002.

Stupid question, I hope.

I have a form in which I have a combobox, cboPayType and a textbox,
txtCC.

If the cboPayType.Value = "Cash", I don't need a value in txtCC.
Otherwise, I want to require a value. (If you're not paying cash, I
need a check number or a credit card number). I can stop the
Close/Unload event of the form without a problem.

How do I trap the moving from one record to the next? I thought
OnCurrent is after that...

Thanks,
Pieter


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.