PC Review


Reply
Thread Tools Rate Thread

Disallow null/allow null depending on the selection of another fie

 
 
Flydianslip
Guest
Posts: n/a
 
      18th Mar 2010
Can someone tell me if you can require a field (disallow null) depending on
the what a different field says? something like?

Private Sub Business_Area_AfterUpdate()
If Me.Business_Area = "Electronic Solutions - ES" Then
ON Order([Function]) WITH DISALLOW NULL

This doesnt work...I have a Combobox named "Business Area" when its field is
selected as "Electronic Solutions - ES" I want the adjacent Combobox which
Control Source is called "Function" to be a required field. This field is in
Table "Order" Field called "Function". But also I want if "Business Area" is
selected as anything else you can skip filling in the "Function" (allow null).
Thank you for any help.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fill null fields from last non-null record - No update query pleas mattsmom Microsoft Access 2 2nd Apr 2008 01:56 PM
NULL dates show today's date rather than a blank or NULL on form M Skabialka Microsoft Dot NET 5 1st Nov 2006 09:19 PM
Empty text values aren't null or zero-length, but 2-byte null (\x0000) Mark Steward Microsoft Access 2 21st Jan 2006 02:03 PM
Null result when combining null field with non-null field in ADP View Lauren Quantrell Microsoft Access Form Coding 8 17th Nov 2003 02:34 AM
Null value in selection form cfitz Microsoft Access Forms 0 19th Aug 2003 08:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:41 PM.