Wrox Programmer Forums
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 17th, 2005, 02:01 PM
Authorized User
Join Date: Jan 2005
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default Show result from query

I have a query in an Access database and I would like to show the result of that query when I click a button in my VB program. I am using VB Net 2003. Any help would be greatly appreciated. Thanks.
Old January 17th, 2005, 03:27 PM
Registered User
Join Date: Jun 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

That's a good question and I would like to know about it as well :)

Old January 18th, 2005, 12:43 PM
Friend of Wrox
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

I think that what you are going to have to do is get a reference to the query, read its properties to get the Access query string from it, and build your own query string out of that, then retrieve records from Access with that string.

I don't think that you can open the query directly. MDBs only store the properties of queries. Access.exe actually implements them. ADO.NET should be able to perform anything that Access can, but I believe the syntax will be slightly different. (I think this will require a little experimentation...)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show result during SQL statement rtr1900 ASP.NET 2.0 Basics 0 December 7th, 2006 06:51 AM
how to show result of MS Analysis service to WEB? rosejeep C# 0 November 8th, 2006 09:27 PM
Database unable to show result. (ASP.NET C#) richie86 ASP.NET 1.0 and 1.1 Basics 3 November 10th, 2005 01:59 PM
Very beginner - Result didn't show in the browser not24 ASP.NET 1.0 and 1.1 Basics 7 February 22nd, 2005 12:08 PM
problem in show result (vb.net) q8z Beginning VB 6 0 October 27th, 2004 03:01 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.