Results 1 to 4 of 4

Thread: Access query and VB .NET problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    2

    Access query and VB .NET problem

    Hi!

    I have trouble accessing data from a query. I am using VS.NET 2003 against ACcess 2000.

    The acces query returns two fields and many rows. The query works fine in access. How should i set it up in vb .net to retrieve all the data from the query ? I tried using a datareader but i always get the message that 'Microsoft Jet cannot find table or query...'. ( Yes the query name is correctly spelled in the code ) ;-)

    Any help would be greatly appreciated. It is the first time i use these tools togheter and am currently quite confused.

    Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Post your code so we can see what you're doing.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2004
    Posts
    2
    I found the problem. The query i was using was built for a report. So it was calling many other queries. Some among them had formatting commands. It ran fine with the report but when executed from a oledb command object these commands ( like Format$ and others ) were causing problems.

    Thanks anyway.

    Bryan

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Yeah... that was going to be my next response.

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