Results 1 to 12 of 12

Thread: Undefined function in query

Hybrid View

  1. #1
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Undefined function in query

    Linq to sql might be easier in your situation...

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2013
    Location
    San Francisco, CA
    Posts
    528

    Re: Undefined function in query

    Right, I need the SQL to convert the GetAssetPrice() function into a decimal value: GetAssetPrice(20,#4/18/2019#,"ClosePrice") = 133.56

    And do this for each row of data that the SQL returns.

    I'm really stumped why this works in MS Access, but not in VB.Net...

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,413

    Re: Undefined function in query

    Quote Originally Posted by Mark@SF View Post
    Right, I need the SQL to convert the GetAssetPrice() function into a decimal value: GetAssetPrice(20,#4/18/2019#,"ClosePrice") = 133.56

    And do this for each row of data that the SQL returns.

    I'm really stumped why this works in MS Access, but not in VB.Net...
    It works in Access because you're not concatenating a string in your query. Try the LINQ queries

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2013
    Location
    San Francisco, CA
    Posts
    528

    Re: Undefined function in query

    Ok, thanks. I've never worked with LINQ so I'll have to do some homework...

Tags for this Thread

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