Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
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:
  #1  
Old June 16th, 2004, 11:00 AM
VanDam2000 VanDam2000 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Peterborough, UK
Posts: 2 VanDam2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post Reports

Hi,

I'm building a program that will print a checklist. I have a database setup, and works, but I want to reproduce this in VB.

The DB has 4 jobroles, and I want to be able to select which jobrole is printed by selecting it from a dropdown list, then print the check sheet.

This I can do, to a point, I Have a button which has the following in it (testing an the moment):

Private Sub Command2_Click()
sSQL = "SELECT *"
sSQL = sSQL & " FROM Jobs"
sSQL = sSQL & " where Jobrole ="
sSQL = sSQL & Chr(39) & txtJR & Chr(39)
sSQL = sSQL & " ORDER BY Jobrole"
Data1.RecordSource = sSQL
Data1.Refresh
End Sub

I can change the txtJR to a different number and it will update the display. Now I want to do the same for the print but the way I see it, I have to create one report for each jobrole, but this changes.

Can I do the same as above but for the report?

I'm using the report in VB.

Thanks.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Reports


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 6 hosted by Hostway
Stay green...Green IT