Consulting

Results 1 to 4 of 4

Thread: Problem with three ComboBox including Date item

  1. #1

    Question Problem with three ComboBox including Date item

    I have three ComboBox the first one including item of years ( 2008,2009,..) the second for mounthe (1,2..0
    and the third for day ( 1,2,3..etc)
    I insert the code in Combobox3

    [VBA]lblDate.Caption = ComboBox1.Text & "/" & ComboBox2.Text & "/" & ComboBox3.Text[/VBA]to print the data in label (lblDate) like this format 2008/2/20

    the problem that i faced if I want to change only the mounth I have to Clear all the Date and starts from the
    year then mounth then dya and same for the day or year
    How can change only one text of comboBox without change the other texts

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Why do you have to clear all the data?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Becaue it will not insert the new number to the lalble I have to start again

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I cannot see why not. Wat is the code?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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