|
-
Feb 24th, 2007, 06:56 PM
#1
Thread Starter
Junior Member
[RESOLVED] Newbie date question
Hi everyone,
How can i retrieve current date onto a text box ?
Thanks,
-
Feb 24th, 2007, 06:58 PM
#2
Re: Newbie date question
Welcome to the Forum 
Here is one way:
VB Code:
Text1.Text = Format(Now(), "dd-mmm-yyyy")
-
Feb 24th, 2007, 07:06 PM
#3
Thread Starter
Junior Member
Re: Newbie date question
Thank for your reply & for the welcome,
When i copy your line says invalid outside procedure.
-
Feb 24th, 2007, 07:06 PM
#4
Re: Newbie date question
Try this
VB Code:
Private Sub Form_Load()
Text1.Text = Date()
End Sub
Regards,
Mark
Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."
-
Feb 24th, 2007, 07:14 PM
#5
Thread Starter
Junior Member
Re: Newbie date question
Thaks Guys........solved!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|