DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Nested working Access query doesn't work in

  1. #1
    Join Date
    Oct 2006

    Nested working Access query doesn't work in

    I have the following query which I 'm using in Access 2003 without any problems. When I use the same query (& database) in VB.NET it recognizes only 2 parameters ( & panels.panel ) instead of 4.

    SELECT [time]
    FROM times
    WHERE times.studypanelperioddayID = (select days.ID from days where days.studypanelperiodID = (select periods.ID from periods where periods.panelstudyID = (select panels.ID from panels where []=? and [panels.panel]=?) and [periods.period]=? ) and []=?);

    Is there any difference between the syntax in Access 2003 and VB.NET?


    Dries Mahieu

  2. #2
    Join Date
    Dec 2005
    South of Nowhere, Maine
    VB.Net doesn't have its own SQL Syntax. It uses SQL Server. And that syntax varies from Access.

    That being said... I am not that good with SQL, so I can't help you convert your query... other than maybe writing it from scratch using Query Analyzer to test?

Similar Threads

  1. Access SQL query in ASP page
    By Terry in forum ASP.NET
    Replies: 2
    Last Post: 03-12-2003, 08:17 AM
  2. Answered - Access SQL query in ASP page
    By Terry in forum ASP.NET
    Replies: 0
    Last Post: 03-03-2003, 11:46 AM
  3. Trouble with calling Access select query
    By Greg Busby in forum VB Classic
    Replies: 2
    Last Post: 12-22-2002, 01:24 AM
  4. GOSUB vs. Macros vs. Nested Functions
    By Jonathan Allen in forum .NET
    Replies: 331
    Last Post: 03-19-2001, 09:00 AM
  5. Query help in Access Combo Box
    By Larry Muller in forum VB Classic
    Replies: 1
    Last Post: 02-24-2001, 11:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center