Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 17th, 2005, 02:01 PM
Authorized User
Join Date: Jan 2005
Location: , , .
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.
Reply With Quote
  #2 (permalink)  
Old January 17th, 2005, 03:27 PM
Registered User
Join Date: Jun 2003
Location: , , .
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 :)

Reply With Quote
  #3 (permalink)  
Old January 18th, 2005, 12:43 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
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...)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 02:23 AM.

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