• A mid function and a format (access 2000)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » A mid function and a format (access 2000)

    Author
    Topic
    #361972

    What is wrong with this – TransactionDate: format([Mid$([FullLineField],25,6)], yy/mm/dd)
    I get an error
    or how can I change a text to date
    show me some examples

    Viewing 2 reply threads
    Author
    Replies
    • #548685

      Not that I would want to move the dd to the end of the format, but try the ” ” around the yy/mm/dd. See if that does it.
      Paul
      TransactionDate: format([Mid$([FullLineField],25,6)], “yy/mm/dd”)

    • #548700

      Try this:

      format([Mid$([FullLineField],25,6), “yy/mm/dd”)

      You had an extra ] in there, and you need quotes around the date format.

    • #548703

      I would tend to use the cdate() function rather than the format() function (although the format function does work)

      Just as an alternative really I guess

      cdate(Mid$([FullLineField],25,6))

      Cheers

      Jayden

    Viewing 2 reply threads
    Reply To: A mid function and a format (access 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: