+ Reply to Thread
Results 1 to 3 of 3

user forms

  1. #1
    Registered User
    Join Date
    12-12-2005
    Posts
    2

    user forms

    Hi,

    I am building a user form for a journal entry sheet. I am trying to use the next index value in user chosen combo field. for example, if the user choices Jan-06 from a combo box, I want the reverse date to be automatically chosen as 'feb-06. any ideas

  2. #2
    Tom Ogilvy
    Guest

    Re: user forms

    Dim dt as Date, dt1 as Date
    dt = cDate(Combobox1.Value)
    dt1 = DateSerial(year(date),month(date)+1,1)
    Combobox2.Value = format(dt1,"mmm-yy")


    --
    Regards,
    Tom Ogilvy

    "steveshos" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi,
    >
    > I am building a user form for a journal entry sheet. I am trying to
    > use the next index value in user chosen combo field. for example, if
    > the user choices Jan-06 from a combo box, I want the reverse date to be
    > automatically chosen as 'feb-06. any ideas
    >
    >
    > --
    > steveshos
    > ------------------------------------------------------------------------
    > steveshos's Profile:

    http://www.excelforum.com/member.php...o&userid=29585
    > View this thread: http://www.excelforum.com/showthread...hreadid=492854
    >




  3. #3
    Registered User
    Join Date
    12-12-2005
    Posts
    2

    CDate

    I am running into another problem. I want to use the date in a form with the following MM-YY, The combo box is populated with AddITems such as JAN-06, FEB-06. The problem that I am having is that when I do cdate, it is recognizing the dates as january 6, 2005, and february 6, 2005. The research that I have done, says that if a year is not specified, than the year is assumed to be the systems current year. is there a way to specify that JAN-06 that the Jan represents the month, 06 represents the year and the day is missing?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.6.0 RC 1