Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Format month-year (2000 sr 1)

    i use this code to get data from a txt line (VERSIONE: 20050107).
    If InStr(Mid(RIGA, 27, 9), "VERSIONE:") > 0 Then
    VAR_MESE = Mid(RIGA, 41, 2)
    VAR_ANNO = Mid(RIGA, 37, 4)
    End If

    after read the string how to have this var in this format:VAR_INDICE_TAB = GENNAIO-2005

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Format month-year (2000 sr 1)

    Try

    VAR_INDICE_TAB = Format(DateSerial(VAR_ANNO, VAR_MESE, 1), "mmmm-yyyy")

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Format month-year (2000 sr 1)

    "KISS"...

Posting Permissions

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