[mso] Access 2002: Syntax For Double If Statement?
- From: Cathy.Evans@xxxxxxxxx
- To: mso@xxxxxxxxxxxxx
- Date: Fri, 24 Jun 2005 15:10:28 -0400
What do I need to do to prevent the below from writing Now() if
ProjActionDate is not null? The sub runs on the after update event of my
combo box.
Tried adding an If [ProjActionDate] Is Not Null or [ProjActionDate] = "",
but don't have it quite right cause then it does nothing. Below writes
current date to ProjActionDate, but sometimes there is already a value
there and I don't want to overwrite what is already there if that's the
case. How can I prevent the overwrite if a value is already there? Thank
you, Cathy
Private Sub ProjActionTypeID_FK_AfterUpdate()
If [ProjActionTypeID_FK] = "1" Then
[ProjActionDate] = Now()
Else
If [ProjActionTypeID_FK] = "2" Then
[ProjActionDate] = Now()
[ProjActionNotes] = "No Commitments"
End If
End If
End Sub
-----------------------------------------------------------------------------------------------------
The information transmitted is intended only for the person
or entity to which it is addressed and may contain proprietary,
business-confidential and/or privileged material.
If you are not the intended recipient of this message you
are hereby notified that any use, review, retransmission,
dissemination, distribution, reproduction or any action taken
in reliance upon this message is prohibited. If you received
this in error, please contact the sender and delete the
material from any computer. Any views expressed in this message
are those of the individual sender and may not necessarily reflect
the views of the company.
-------------------------------------------------------------------------------------------------------
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, send an email to
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in
the subject line.
Or, visit the group's homepage and use the dropdown menu. This will also allow
you to change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
- Follow-Ups:
- [mso] Re: Access 2002: Syntax For Double If Statement?
- From: Jim Pettit
Other related posts:
- » [mso] Access 2002: Syntax For Double If Statement?
- » [mso] Re: Access 2002: Syntax For Double If Statement?
- » [mso] Re: Access 2002: Syntax For Double If Statement?
- [mso] Re: Access 2002: Syntax For Double If Statement?
- From: Jim Pettit