A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

After Update If



 
 
Thread Tools Display Modes
  #1  
Old January 8th, 2010, 06:37 PM posted to microsoft.public.access.forms
The Joker via AccessMonster.com
external usenet poster
 
Posts: 12
Default After Update If

Hello All,

I have a combo box on a form (frmTaskDetails) that has the status of the
current task open and a second field that has Completed Date. I'm looking to
have the Completed Date automatically populate with Date() if the user choose
Completed in the Status combo box. How would I go about doing this? My
thought was in the After Update but everything I'm trying is not working. I'm
trying to avoid validation rules if possible since it seems you can't control
the message it pops up with.

Thank you!

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201001/1

  #2  
Old January 8th, 2010, 07:05 PM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default After Update If

Private Sub StatusCombobox_AfterUpdate()
If StatusCombobox = "Completed" Then
Me.CompletedDate = Date
End If
End Sub

Replacing names as appropriate, of course.

--
There's ALWAYS more than one way to skin a cat!

Answers/posts based on Access 2000/2003

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201001/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.