Solved

If Is Not Null syntax

Posted on 2008-11-02
2
1,183 Views
Last Modified: 2013-11-27
Experts, would like to have this afterupdate event work but have a syntax.  I have looked around on EE and did not find a solution so I decided to ask a question.  It is my code so there might be a better way to code it.  Basically, on AfterUpdate and if the field txtDateApprovedOrDeclined is not null (meaning that  adate was entered) I would like the other two fields to say Inactive and 100.  thank you

Private Sub txtDateApprovedOrDeclined_AfterUpdate()

    If (IsNotNull(Me.ApprovedorDeclinedcbo)) Then
        Me.Status = "Inactive"
        Me.PrcntComplete = "100"
       
    End If
   
0
Comment
Question by:Petrobras
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 500 total points
ID: 22862214
Private Sub txtDateApprovedOrDeclined_AfterUpdate()

    If Not IsNull(Me.ApprovedorDeclinedcbo) Then
        Me.Status = "Inactive"
        Me.PrcntComplete = "100"
       
    End If
0
 
LVL 18

Expert Comment

by:jmoss111
ID: 22862218
Hello Petrobras,

Private Sub txtDateApprovedOrDeclined_AfterUpdate()

    If Not(IsNull(Me.ApprovedorDeclinedcbo)) Then
        Me.Status = "Inactive"
        Me.PrcntComplete = "100"
       
    End If

Regards,

Jim
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question