+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    07-28-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    1

    How can I after selecting date on the Calendar autoinsert text into a activex textbox

    Hi,

    Need help on inserting text. I am currently creating a Registration Page with activex textbox. One of the field that I am creating is the "DOB" and I am putting a Calendar button beside the text box. When clicked, the Calendar button will display a Calendar Userform that allows the user to click on the specific date he wants, after which I hope that the date will be reflected on the textbox. I tried this formula "Textbox1.Text = Calendar1.Value" and it doesn't work, any help here?

    Alvin

  2. #2
    Registered User
    Join Date
    10-04-2008
    Location
    uk
    Posts
    26

    Re: How can I after selecting date on the Calendar autoinsert text into a activex tex

    Hi

    try adding the following code to the Calendar form (e.g. frmCalendar) and the data should update when you close the calendar form and return to your Registration form

    Code:
    Private Sub Form_Close()
        Forms!frmRegistration!Textbox1= Calendar1.Value
    End Sub

    hope this helps
    qff

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0