By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,704 Members | 1,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,704 IT Pros & Developers. It's quick & easy.

Zero-ing out other fields if another is Null

P: n/a
Is there a way that I can delete the text in a combobox (it allows
nulls) and have that cascade to write the numeral zero in other fields
beside it. I may want to place a refresh button to generate an event I
can attach code to.

Psuedocode: If Combo = "" Then Text1 = "0", Text2 = "0", etc.

Thanks!

Aug 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
How about putting this code in the event you want to use to delete the text
in the combobox ---

Me!NameOfCombobox = Null
Me!Text1 = 0
Me!Text2 = 0
<<etc>>

PC Datasheet
Providing Customers A Resource For Help With Access, Excel And Word
Applications
re******@pcdatasheet.com


"slinky" <ca***************@yahoo.comwrote in message
news:11**********************@22g2000hsm.googlegro ups.com...
Is there a way that I can delete the text in a combobox (it allows
nulls) and have that cascade to write the numeral zero in other fields
beside it. I may want to place a refresh button to generate an event I
can attach code to.

Psuedocode: If Combo = "" Then Text1 = "0", Text2 = "0", etc.

Thanks!

Aug 8 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.