Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO I MAKE A FORM SHOW THE DATE 1

Status
Not open for further replies.

villica

Programmer
Feb 25, 2000
332
CA
I create form every month where a series of activities are enter. I like the form to display title as such &quot;LOGS FOR NOVEMBER 2000&quot;. Can anyone give me any sugestions.<br> <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>
 
Use the On Open event of your form:<br><br>Private Sub Form_Open(Cancel As Integer)<br>Me.Form.Caption = &quot;LOGS FOR &quot; & UCase(Format(Now(), &quot;mmmm yyyy&quot;))<br>End Sub<br><br>HTH<br>RDH <p>Ricky Hicks<br><a href=mailto: rdhicks@mindspring.com> rdhicks@mindspring.com</a><br><a href= > </a><br>
 
Thank you for your help it work great <p>Villica<br><a href=mailto:villica67@hotmail.com>villica67@hotmail.com</a><br><a href= > </a><br>
 
Just open a text box on the form, and enter the formula<br>=Format(Now(),(&quot;mmmm,yyyy&quot;))<br>
 
The result of the previous post will be only the month and year. The poster wanted this example: &quot;LOG OF NOVEMBER 2000&quot;. So you will have to concatenate &quot;LOG OF &quot; then use the UCase Function to make the result of the Format Function all Capital letters. Thus you end up with:<br><br>&quot;LOGS FOR &quot; & UCase(Format(Now(), &quot;mmmm yyyy&quot;))<br><br>Just thought I'd explain.<br><br>RDH <p>Ricky Hicks<br><a href=mailto: rdhicks@mindspring.com> rdhicks@mindspring.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top