SunQuest
 
           Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Iron Speed
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old July 28th, 2004, 02:43 PM
cus129 cus129 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 20 cus129 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 18 sec
Reputation Power: 0
Display Query result set?

Hi,

How do I display a query result set in Access?
My query outputs a bunch of rows...how do I display it on a screen?


thanks
cus129

Reply With Quote
  #2  
Old July 29th, 2004, 04:03 AM
anh5001 anh5001 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 22 anh5001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 24 m 8 sec
Reputation Power: 0
Question ask for more

what exactly do you want?do you want to test your query syntax? if it is true,why dont' you use Query Analyzer from SQL Server 2000

Reply With Quote
  #3  
Old July 29th, 2004, 09:03 AM
cus129 cus129 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 20 cus129 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 18 sec
Reputation Power: 0
Hi,

I am coding in VBA. I have a form which has a combo box, couple of checkboxes and a button.
Based on the selected item in combo box and checking some checkboxes, a query has to be generated. Now what if my query returns
multiple rows....I should have a way of outputting it on the screen say on form or report....

how do I do this?

Reply With Quote
  #4  
Old July 29th, 2004, 10:24 AM
anh5001 anh5001 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 22 anh5001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 24 m 8 sec
Reputation Power: 0
Exclamation vba is not my majority

HI! cus129.
Exactly, i don't know vba,but you use vba.so, what to do now?.I use visual basic 6.In visual basic i can show the multiple rows through report,or i can show multiple rows through MSHFlex Grid.Is there grid in vba.if yes,i think you can do that.let's say you have grid.then you should select grid,give it colums,rows.then creat the query that generated from the combo boxes and some checkboxes...
Then you have the query like:"select somefields from yourtables where YourFieldInDatabase='"& comboboxname.list(comboboxname.ListIndex) &"'.
Quote:
Originally Posted by cus129
Hi,

I am coding in VBA. I have a form which has a combo box, couple of checkboxes and a button.
Based on the selected item in combo box and checking some checkboxes, a query has to be generated. Now what if my query returns
multiple rows....I should have a way of outputting it on the screen say on form or report....

how do I do this?

Reply With Quote
  #5  
Old July 29th, 2004, 10:28 AM
anh5001 anh5001 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 22 anh5001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 24 m 8 sec
Reputation Power: 0
Exclamation if you are interested!

Hi cus129!
if you are interested, i will you the demo in visual basic to show multiple rows through MSHFLEx Grid.

Quote:
Originally Posted by anh5001
HI! cus129.
Exactly, i don't know vba,but you use vba.so, what to do now?.I use visual basic 6.In visual basic i can show the multiple rows through report,or i can show multiple rows through MSHFlex Grid.Is there grid in vba.if yes,i think you can do that.let's say you have grid.then you should select grid,give it colums,rows.then creat the query that generated from the combo boxes and some checkboxes...
Then you have the query like:"select somefields from yourtables where YourFieldInDatabase='"& comboboxname.list(comboboxname.ListIndex) &"'.

Reply With Quote
  #6  
Old July 29th, 2004, 10:38 AM
cus129 cus129 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 20 cus129 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 39 m 18 sec
Reputation Power: 0
Hi

Thanks for the quick reply.
Can you please post the sample code in VB?

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Display Query result set?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway