Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / December 2005

Tip: Looking for answers? Try searching our database.

Fill text box based on combo box selection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Scott - 10 Dec 2005 08:03 GMT
Hello-

I have a form called frmInquiries. There is a combo box called
cboInqStatus and a text box called txtResolveDate. The two values in
the combo box are "Active" and "Completed". >What I want to do is to
have txtResolveDate filled with the current date once the user changes
the combo box from "Active" to "Completed". Any ideas on this? Thanks
in advance for the help.
Scott - 10 Dec 2005 08:30 GMT
I think I figured this out with the following code in the After Update
event of the combo box:

Private Sub InquiryStatus_AfterUpdate()
If InquiryStatus = "Completed" Then
Me.ResolveDate = Date
Else
Me.ResolveDate = Null
End If
End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.