Results 1 to 3 of 3

Thread: ERROR in sql query why?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,941

    ERROR in sql query why?

    Code:
     SQL = "TRANSFORM Sum(dbo_CC_Movimenti.Num_Operazioni) AS QUANTITY " & _
              "SELECT dbo_CC_Movimenti.COD_SPORT & [COD_CC] AS INDICE " & _
              "FROM dbo_CC_Movimenti " & _
              "GROUP BY dbo_CC_Movimenti.COD_SPORT &  [COD_CC] " & _
              "PIVOT dbo_CC_Movimenti.COD_CAUSALE_ABI"
    note:
    The table is linked Sql Server table into access database
    Last edited by luca90; Nov 15th, 2010 at 03:30 PM.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: ERROR in sql query why?

    What is this doing?
    Code:
    SELECT dbo_CC_Movimenti.COD_SPORT & [COD_CC] AS INDICE
    Is that supposed to be getting two separate columns or concatenating the values of two columns into one string?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: ERROR in sql query why?

    Also
    Try using 'dbo.CC_Movimenti'

    JG

Posting Permissions

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



Click Here to Expand Forum to Full Width