Results 1 to 6 of 6
  1. #1
    cotri is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    32

    If Form Field is not null then...


    I have a field called [Warning] in a form that I want to simply populate with the word “NOT” under a particular condition. That condition being if a field called [Model] is “Not Null” -AND- a field called [Year] is “NULL” then the [Warning] field will be the word “NOT”. I tried putting an expression together in the “Control Source” for the [Warning] field but was getting errors. Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try using "Not IsNull([YourField])" in your expression instead of "Not Null".

  3. #3
    MAF4Fam6's Avatar
    MAF4Fam6 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Dec 2009
    Location
    Fruit Heights, Utah USA
    Posts
    140

    Post Condition Macro with Set Value Action

    You could try a Condition Macro.
    I use Access 2007, but I am almost sure this works in Access 2000.
    Here's a pic of the Macro in Access 2007:

    Attachment 513

    Just change the field names and add the Macro to the On Current event of your form's Property Sheet.

    -RC

  4. #4
    cotri is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    32
    Quote Originally Posted by RuralGuy View Post
    Try using "Not IsNull([YourField])" in your expression instead of "Not Null".
    Thanks, that worked great

  5. #5
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad we could help. Are you ready to mark this thread as Solved?

  6. #6
    cotri is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    32

    Thanks

    Quote Originally Posted by RuralGuy View Post
    Glad we could help. Are you ready to mark this thread as Solved?
    Will do...Thanks again

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 08-14-2009, 08:41 AM
  2. A NULL Question
    By botts121 in forum Programming
    Replies: 2
    Last Post: 07-09-2009, 07:59 PM
  3. In a field on a Form, on click open another form
    By jackieagra in forum Programming
    Replies: 1
    Last Post: 03-20-2008, 09:44 AM
  4. Null vs New Record
    By jversiz in forum Access
    Replies: 2
    Last Post: 02-20-2008, 12:02 PM
  5. Replies: 0
    Last Post: 11-17-2006, 09:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums