Wrox Programmer Forums
|
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 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 June 4th, 2008, 11:43 AM
Authorized User
 
Join Date: May 2008
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

 
Old June 5th, 2008, 07:17 AM
Authorized User
 
Join Date: May 2008
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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






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 10:08 AM
Stored Procedures jazzcatone Classic ASP Databases 0 August 28th, 2005 02:57 PM
Stored Procedures stu9820 Access 3 February 8th, 2004 01:13 PM





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