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 / May 2007

Tip: Looking for answers? Try searching our database.

automatic update in quarter text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick - 06 May 2007 08:35 GMT
I have a form where the OTDLdaTe text box is entered and woud like the the
quarter field to automaticly have the correct quarter entered. I currently
have to enter the "Quarter"  
I do not know where to start and in which text box use.
Quarter 1 = 01/01/2*** and < 04/01/2*** and so on.
Douglas J. Steele - 06 May 2007 12:40 GMT
Assuming the date's in text box txtDate, set the control source of text box
txtQuarter to =DatePart("q", Me.txtDate)

Note that this will only display the quarter on the form: you will not be
storing the quarter in the underlying recordset, which is the way it should
be: you shouldn't be storing calculated data in the table.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

>I have a form where the OTDLdaTe text box is entered and woud like the the
> quarter field to automaticly have the correct quarter entered. I currently
> have to enter the "Quarter"
> I do not know where to start and in which text box use.
> Quarter 1 = 01/01/2*** and < 04/01/2*** and so on.
 
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



©2009 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.