Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2004
    Location
    austin
    Posts
    146

    Unanswered: access to sql query issue

    this string is from an access db
    DateAdd("d",-(Format([date_effective],"d")-1),[date_effective]) AS SvcMonth

    this is the error i get in sql:
    'Format' is not a recognized function name.

    what do i need to change?

  2. #2
    Join Date
    Aug 2003
    Location
    Massachusetts, USA
    Posts
    106

    Re: access to sql query issue

    If you are doing a pass-thru SQL statement then the target database does not support FORMAT.

    Originally posted by michelin man
    this string is from an access db
    DateAdd("d",-(Format([date_effective],"d")-1),[date_effective]) AS SvcMonth

    this is the error i get in sql:
    'Format' is not a recognized function name.

    what do i need to change?

  3. #3
    Join Date
    Jan 2004
    Location
    austin
    Posts
    146
    i got it to work.....


    DATEADD(d, - (DATEPART(d, DATE_EFFECTIVE) - 1), DATE_EFFECTIVE) AS SvcMonth

Posting Permissions

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