Results 1 to 5 of 5

Thread: [RESOLVED] Newbie date question

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    26

    Resolved [RESOLVED] Newbie date question

    Hi everyone,

    How can i retrieve current date onto a text box ?

    Thanks,

  2. #2
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: Newbie date question

    Welcome to the Forum


    Here is one way:
    VB Code:
    1. Text1.Text = Format(Now(), "dd-mmm-yyyy")

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    26

    Re: Newbie date question

    Thank for your reply & for the welcome,

    When i copy your line says invalid outside procedure.

  4. #4
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Newbie date question

    Try this

    VB Code:
    1. Private Sub Form_Load()
    2.      Text1.Text = Date()
    3. 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."


  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2007
    Posts
    26

    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
  •  



Click Here to Expand Forum to Full Width