Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases 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 Display Modes
  #1 (permalink)  
Old June 4th, 2008, 11:43 AM
Authorized User
Join Date: May 2008
Location: BELFAST, , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Stored Procedures

Hello again,
Sorry i seem to be taking over this forum with all my questions but you have helped me out in the past and I was wondering if you guys would be kind enough to do it again. Basically my query is this...

Can you get two different stored procedures to run on the same form at load at the same time. I have a stored procedure that counts the total wages on one table and adds it to a form from which i will save it to another. The same for Total income, but alas when i put both into the forms load event only one displays, I can use the toolStrip button created by the stored procedure to get the other value but the first then disappears. Any Ideas guys. Again sorry for always asking. I have been looking through other forums to try and help others out but with my limited knowledge im finding that always there is someone better suited to give the answers

Reply With Quote
  #2 (permalink)  
Old June 5th, 2008, 07:17 AM
Authorized User
Join Date: May 2008
Location: BELFAST, , .
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts

For anyone else with this problem i overcame it by adding two combo boxes to the form and adding a query to them from the toolstrip shortcut in design view, obviously the query was the stored procedure. I then added to text boxes and coded them to be assigned the value of the combo boxes, then made the comboboxes invisible. This is probably a long way around and more than likely wouldn't be recommended but hey it works for me

Reply With Quote

Thread Tools
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
stored procedures MunishBhatia SQL Server 2005 4 April 12th, 2008 01:39 AM
STORED PROCEDURES shazia1 SQL Server ASP 7 September 26th, 2007 06:11 AM
Stored Procedures itHighway SQL Server 2000 3 November 23rd, 2005 09:08 AM
Stored Procedures jazzcatone Classic ASP Databases 0 August 28th, 2005 02:57 PM
Stored Procedures stu9820 Access 3 February 8th, 2004 12:13 PM

All times are GMT -4. The time now is 04:41 PM.

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