Solved

If Is Not Null syntax

Posted on 2008-11-02
2
1,176 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
2 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) 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 Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now