From subs at solution-providers.ie Mon Jun 2 15:04:21 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Mon, 2 Jun 2003 21:04:21 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland From chizotz at charter.net Mon Jun 2 15:23:33 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 02 Jun 2003 16:23:33 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, It should not cause a problem. I have VS6 and VS.NET installed, with no problems. They seem to live together peacefully. HTH, Ron On Mon, 2 Jun 2003 21:04:21 +0100 "Mark L. Breen" wrote: >Can I install the .net 60 day trial on top of VS 6.0. I >am running Windows >XP Professional, SQL Server 7.0 and VS 6 From jcolby at colbyconsulting.com Mon Jun 2 15:27:34 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 2 Jun 2003 16:27:34 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, VB.net is not related in any way to VB6. It installs in it's own directory and does not overwrite any other version of VB. I am (slowly!) learning VB.net and can tell you it is HOT stuff! John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen Sent: Monday, June 02, 2003 4:04 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Installing over VS6 Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jun 3 03:57:02 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Jun 2003 09:57:02 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <00c001c329ae$1d23a730$6a1118ac@D8TZHN0J> Hello John and Ron, Yipee, Thanks I will keep you informed. Mark ----- Original Message ----- From: "John Colby" To: "Mark L. Breen" ; Sent: Monday, June 02, 2003 9:27 PM Subject: RE: [dba-VB] Installing over VS6 > Mark, > > VB.net is not related in any way to VB6. It installs in it's own directory > and does not overwrite any other version of VB. I am (slowly!) learning > VB.net and can tell you it is HOT stuff! > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen > Sent: Monday, June 02, 2003 4:04 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] Installing over VS6 > > > Hello All, > > Can I install the .net 60 day trial on top of VS 6.0. I am running Windows > XP Professional, SQL Server 7.0 and VS 6 > > Thanks in advance > > > Mark Breen > Ireland > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] [AccessD] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jun 12 06:51:56 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 12 Jun 2003 12:51:56 +0100 Subject: [dba-VB] Msgbox HELP button Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1A9@MAILGATE.bury.gov.uk> Paul AFAIK, the Help button simply tries to open the help file specified in the [HelpFile] parameter of msgbox. If none is specified nothing happens, else it opens the help file or displays a message saying it can't find the help file and prompts you to find it yourself. To do what you require I thing you may need to build your own frmMsgBox form and code appropriately. Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 12 June 2003 12:44 > To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com > Subject: [dba-VB] Msgbox HELP button > > To all, > > How do I get the msgbox to detect when the help button is pressed, I have > the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", > vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click the > HELP button nothing happens, I assumed that it would store a value into > pubUserResponse, but the msgbox doesn't even go away after clicking help. > So my question is, how do I get to display a little help form or msgbox > when the user clicks HELP..... > > Thanks in advance. > > Paul > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best > Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 16 10:05:53 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Jun 2003 15:05:53 +0000 Subject: [dba-VB] Command Objects within Data Environments Message-ID: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] [AccessD] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Tue Jun 17 11:53:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 12:53:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron From GRAY at utah.gov Tue Jun 17 14:50:02 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 17 Jun 2003 13:50:02 -0600 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: There is an event handler discussion for the close event here: http://www.dotnet247.com/247reference/msgs/19/98033.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> chizotz at charter.net 06/17/03 10:53AM >>> How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chizotz at charter.net Tue Jun 17 16:03:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 17:03:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully In-Reply-To: Message-ID: Hi Gary, Thank you, I'll look at that right now. Ron On Tue, 17 Jun 2003 13:50:02 -0600 "Gary Ray" wrote: >There is an event handler discussion for the close event >here: > >http://www.dotnet247.com/247reference/msgs/19/98033.aspx From artful at rogers.com Wed Jun 18 10:06:22 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 18 Jun 2003 11:06:22 -0400 Subject: [dba-VB] Infragistics NetVantage In-Reply-To: Message-ID: <01e701c335ab$2dee7d70$6501a8c0@Rock> Does anyone have said software? I just received email about release 2.0. I downloaded a trial of release 1.0 and it looks awesome, but demos often hide the scars, battle-wounds, shortcomings etc. Anyone got real-world experience with this package? It's pricy, which is why I ask. Arthur From artful at rogers.com Fri Jun 20 06:22:05 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 20 Jun 2003 07:22:05 -0400 Subject: [dba-VB] Command Objects within Data Environments In-Reply-To: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> Message-ID: <002201c3371e$2e165d30$6501a8c0@Rock> I like to handle this type of task using static functions, rather than rebuilding the SQL. Write a static function called CurrentEmployee() or somesuch, then write the SQL something like: SELECT someColumns FROM tblEmps WHERE EmployeeID = CurrentEmployee() Then all you need to do is assign a new value to the static function and requery. Here's the template I use when creating static functions. Just follow the directions. Static Function CurrentX(Optional lngNew As Long) As Long 'Copy this template each time you need a new set/get function 'Then Replace "X" with the name of your object, i.e.,"Employee" 'Replace all in current proc and you're done. Dim lngCurrent As Long Select Case lngNew Case Is < 0 lngCurrent = 0 Case Is > 0 lngCurrent = lngNew Case Else 'just return the current value End Select CurrentX = lngCurrent #If conDebug = 1 Then Debug.Print "Current X: ", CurrentX #End If End Function To assign a value, call it like this: CurrentX(12345) To obtain the current value elsewhere, write: ? CurrentX() Hth, Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: June 16, 2003 11:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Command Objects within Data Environments To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer][AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Mon Jun 2 15:04:21 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Mon, 2 Jun 2003 21:04:21 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland From chizotz at charter.net Mon Jun 2 15:23:33 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 02 Jun 2003 16:23:33 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, It should not cause a problem. I have VS6 and VS.NET installed, with no problems. They seem to live together peacefully. HTH, Ron On Mon, 2 Jun 2003 21:04:21 +0100 "Mark L. Breen" wrote: >Can I install the .net 60 day trial on top of VS 6.0. I >am running Windows >XP Professional, SQL Server 7.0 and VS 6 From jcolby at colbyconsulting.com Mon Jun 2 15:27:34 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 2 Jun 2003 16:27:34 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, VB.net is not related in any way to VB6. It installs in it's own directory and does not overwrite any other version of VB. I am (slowly!) learning VB.net and can tell you it is HOT stuff! John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen Sent: Monday, June 02, 2003 4:04 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Installing over VS6 Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jun 3 03:57:02 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Jun 2003 09:57:02 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <00c001c329ae$1d23a730$6a1118ac@D8TZHN0J> Hello John and Ron, Yipee, Thanks I will keep you informed. Mark ----- Original Message ----- From: "John Colby" To: "Mark L. Breen" ; Sent: Monday, June 02, 2003 9:27 PM Subject: RE: [dba-VB] Installing over VS6 > Mark, > > VB.net is not related in any way to VB6. It installs in it's own directory > and does not overwrite any other version of VB. I am (slowly!) learning > VB.net and can tell you it is HOT stuff! > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen > Sent: Monday, June 02, 2003 4:04 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] Installing over VS6 > > > Hello All, > > Can I install the .net 60 day trial on top of VS 6.0. I am running Windows > XP Professional, SQL Server 7.0 and VS 6 > > Thanks in advance > > > Mark Breen > Ireland > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] [AccessD] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jun 12 06:51:56 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 12 Jun 2003 12:51:56 +0100 Subject: [dba-VB] Msgbox HELP button Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1A9@MAILGATE.bury.gov.uk> Paul AFAIK, the Help button simply tries to open the help file specified in the [HelpFile] parameter of msgbox. If none is specified nothing happens, else it opens the help file or displays a message saying it can't find the help file and prompts you to find it yourself. To do what you require I thing you may need to build your own frmMsgBox form and code appropriately. Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 12 June 2003 12:44 > To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com > Subject: [dba-VB] Msgbox HELP button > > To all, > > How do I get the msgbox to detect when the help button is pressed, I have > the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", > vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click the > HELP button nothing happens, I assumed that it would store a value into > pubUserResponse, but the msgbox doesn't even go away after clicking help. > So my question is, how do I get to display a little help form or msgbox > when the user clicks HELP..... > > Thanks in advance. > > Paul > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best > Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 16 10:05:53 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Jun 2003 15:05:53 +0000 Subject: [dba-VB] Command Objects within Data Environments Message-ID: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] [AccessD] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Tue Jun 17 11:53:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 12:53:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron From GRAY at utah.gov Tue Jun 17 14:50:02 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 17 Jun 2003 13:50:02 -0600 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: There is an event handler discussion for the close event here: http://www.dotnet247.com/247reference/msgs/19/98033.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> chizotz at charter.net 06/17/03 10:53AM >>> How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chizotz at charter.net Tue Jun 17 16:03:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 17:03:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully In-Reply-To: Message-ID: Hi Gary, Thank you, I'll look at that right now. Ron On Tue, 17 Jun 2003 13:50:02 -0600 "Gary Ray" wrote: >There is an event handler discussion for the close event >here: > >http://www.dotnet247.com/247reference/msgs/19/98033.aspx From artful at rogers.com Wed Jun 18 10:06:22 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 18 Jun 2003 11:06:22 -0400 Subject: [dba-VB] Infragistics NetVantage In-Reply-To: Message-ID: <01e701c335ab$2dee7d70$6501a8c0@Rock> Does anyone have said software? I just received email about release 2.0. I downloaded a trial of release 1.0 and it looks awesome, but demos often hide the scars, battle-wounds, shortcomings etc. Anyone got real-world experience with this package? It's pricy, which is why I ask. Arthur From artful at rogers.com Fri Jun 20 06:22:05 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 20 Jun 2003 07:22:05 -0400 Subject: [dba-VB] Command Objects within Data Environments In-Reply-To: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> Message-ID: <002201c3371e$2e165d30$6501a8c0@Rock> I like to handle this type of task using static functions, rather than rebuilding the SQL. Write a static function called CurrentEmployee() or somesuch, then write the SQL something like: SELECT someColumns FROM tblEmps WHERE EmployeeID = CurrentEmployee() Then all you need to do is assign a new value to the static function and requery. Here's the template I use when creating static functions. Just follow the directions. Static Function CurrentX(Optional lngNew As Long) As Long 'Copy this template each time you need a new set/get function 'Then Replace "X" with the name of your object, i.e.,"Employee" 'Replace all in current proc and you're done. Dim lngCurrent As Long Select Case lngNew Case Is < 0 lngCurrent = 0 Case Is > 0 lngCurrent = lngNew Case Else 'just return the current value End Select CurrentX = lngCurrent #If conDebug = 1 Then Debug.Print "Current X: ", CurrentX #End If End Function To assign a value, call it like this: CurrentX(12345) To obtain the current value elsewhere, write: ? CurrentX() Hth, Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: June 16, 2003 11:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Command Objects within Data Environments To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer][AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Mon Jun 2 15:04:21 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Mon, 2 Jun 2003 21:04:21 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland From chizotz at charter.net Mon Jun 2 15:23:33 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 02 Jun 2003 16:23:33 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, It should not cause a problem. I have VS6 and VS.NET installed, with no problems. They seem to live together peacefully. HTH, Ron On Mon, 2 Jun 2003 21:04:21 +0100 "Mark L. Breen" wrote: >Can I install the .net 60 day trial on top of VS 6.0. I >am running Windows >XP Professional, SQL Server 7.0 and VS 6 From jcolby at colbyconsulting.com Mon Jun 2 15:27:34 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 2 Jun 2003 16:27:34 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, VB.net is not related in any way to VB6. It installs in it's own directory and does not overwrite any other version of VB. I am (slowly!) learning VB.net and can tell you it is HOT stuff! John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen Sent: Monday, June 02, 2003 4:04 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Installing over VS6 Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jun 3 03:57:02 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Jun 2003 09:57:02 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <00c001c329ae$1d23a730$6a1118ac@D8TZHN0J> Hello John and Ron, Yipee, Thanks I will keep you informed. Mark ----- Original Message ----- From: "John Colby" To: "Mark L. Breen" ; Sent: Monday, June 02, 2003 9:27 PM Subject: RE: [dba-VB] Installing over VS6 > Mark, > > VB.net is not related in any way to VB6. It installs in it's own directory > and does not overwrite any other version of VB. I am (slowly!) learning > VB.net and can tell you it is HOT stuff! > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen > Sent: Monday, June 02, 2003 4:04 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] Installing over VS6 > > > Hello All, > > Can I install the .net 60 day trial on top of VS 6.0. I am running Windows > XP Professional, SQL Server 7.0 and VS 6 > > Thanks in advance > > > Mark Breen > Ireland > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] [AccessD] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jun 12 06:51:56 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 12 Jun 2003 12:51:56 +0100 Subject: [dba-VB] Msgbox HELP button Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1A9@MAILGATE.bury.gov.uk> Paul AFAIK, the Help button simply tries to open the help file specified in the [HelpFile] parameter of msgbox. If none is specified nothing happens, else it opens the help file or displays a message saying it can't find the help file and prompts you to find it yourself. To do what you require I thing you may need to build your own frmMsgBox form and code appropriately. Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 12 June 2003 12:44 > To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com > Subject: [dba-VB] Msgbox HELP button > > To all, > > How do I get the msgbox to detect when the help button is pressed, I have > the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", > vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click the > HELP button nothing happens, I assumed that it would store a value into > pubUserResponse, but the msgbox doesn't even go away after clicking help. > So my question is, how do I get to display a little help form or msgbox > when the user clicks HELP..... > > Thanks in advance. > > Paul > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best > Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 16 10:05:53 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Jun 2003 15:05:53 +0000 Subject: [dba-VB] Command Objects within Data Environments Message-ID: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] [AccessD] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Tue Jun 17 11:53:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 12:53:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron From GRAY at utah.gov Tue Jun 17 14:50:02 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 17 Jun 2003 13:50:02 -0600 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: There is an event handler discussion for the close event here: http://www.dotnet247.com/247reference/msgs/19/98033.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> chizotz at charter.net 06/17/03 10:53AM >>> How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chizotz at charter.net Tue Jun 17 16:03:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 17:03:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully In-Reply-To: Message-ID: Hi Gary, Thank you, I'll look at that right now. Ron On Tue, 17 Jun 2003 13:50:02 -0600 "Gary Ray" wrote: >There is an event handler discussion for the close event >here: > >http://www.dotnet247.com/247reference/msgs/19/98033.aspx From artful at rogers.com Wed Jun 18 10:06:22 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 18 Jun 2003 11:06:22 -0400 Subject: [dba-VB] Infragistics NetVantage In-Reply-To: Message-ID: <01e701c335ab$2dee7d70$6501a8c0@Rock> Does anyone have said software? I just received email about release 2.0. I downloaded a trial of release 1.0 and it looks awesome, but demos often hide the scars, battle-wounds, shortcomings etc. Anyone got real-world experience with this package? It's pricy, which is why I ask. Arthur From artful at rogers.com Fri Jun 20 06:22:05 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 20 Jun 2003 07:22:05 -0400 Subject: [dba-VB] Command Objects within Data Environments In-Reply-To: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> Message-ID: <002201c3371e$2e165d30$6501a8c0@Rock> I like to handle this type of task using static functions, rather than rebuilding the SQL. Write a static function called CurrentEmployee() or somesuch, then write the SQL something like: SELECT someColumns FROM tblEmps WHERE EmployeeID = CurrentEmployee() Then all you need to do is assign a new value to the static function and requery. Here's the template I use when creating static functions. Just follow the directions. Static Function CurrentX(Optional lngNew As Long) As Long 'Copy this template each time you need a new set/get function 'Then Replace "X" with the name of your object, i.e.,"Employee" 'Replace all in current proc and you're done. Dim lngCurrent As Long Select Case lngNew Case Is < 0 lngCurrent = 0 Case Is > 0 lngCurrent = lngNew Case Else 'just return the current value End Select CurrentX = lngCurrent #If conDebug = 1 Then Debug.Print "Current X: ", CurrentX #End If End Function To assign a value, call it like this: CurrentX(12345) To obtain the current value elsewhere, write: ? CurrentX() Hth, Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: June 16, 2003 11:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Command Objects within Data Environments To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer][AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From subs at solution-providers.ie Mon Jun 2 15:04:21 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Mon, 2 Jun 2003 21:04:21 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland From chizotz at charter.net Mon Jun 2 15:23:33 2003 From: chizotz at charter.net (Ron Allen) Date: Mon, 02 Jun 2003 16:23:33 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, It should not cause a problem. I have VS6 and VS.NET installed, with no problems. They seem to live together peacefully. HTH, Ron On Mon, 2 Jun 2003 21:04:21 +0100 "Mark L. Breen" wrote: >Can I install the .net 60 day trial on top of VS 6.0. I >am running Windows >XP Professional, SQL Server 7.0 and VS 6 From jcolby at colbyconsulting.com Mon Jun 2 15:27:34 2003 From: jcolby at colbyconsulting.com (John Colby) Date: Mon, 2 Jun 2003 16:27:34 -0400 Subject: [dba-VB] Installing over VS6 In-Reply-To: <001501c32942$43c04400$6a1118ac@D8TZHN0J> Message-ID: Mark, VB.net is not related in any way to VB6. It installs in it's own directory and does not overwrite any other version of VB. I am (slowly!) learning VB.net and can tell you it is HOT stuff! John W. Colby www.colbyconsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen Sent: Monday, June 02, 2003 4:04 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Installing over VS6 Hello All, Can I install the .net 60 day trial on top of VS 6.0. I am running Windows XP Professional, SQL Server 7.0 and VS 6 Thanks in advance Mark Breen Ireland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From subs at solution-providers.ie Tue Jun 3 03:57:02 2003 From: subs at solution-providers.ie (Mark L. Breen) Date: Tue, 3 Jun 2003 09:57:02 +0100 Subject: [dba-VB] Installing over VS6 References: Message-ID: <00c001c329ae$1d23a730$6a1118ac@D8TZHN0J> Hello John and Ron, Yipee, Thanks I will keep you informed. Mark ----- Original Message ----- From: "John Colby" To: "Mark L. Breen" ; Sent: Monday, June 02, 2003 9:27 PM Subject: RE: [dba-VB] Installing over VS6 > Mark, > > VB.net is not related in any way to VB6. It installs in it's own directory > and does not overwrite any other version of VB. I am (slowly!) learning > VB.net and can tell you it is HOT stuff! > > John W. Colby > www.colbyconsulting.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Mark L. Breen > Sent: Monday, June 02, 2003 4:04 PM > To: dba-vb at databaseadvisors.com > Subject: [dba-VB] Installing over VS6 > > > Hello All, > > Can I install the .net 60 day trial on top of VS 6.0. I am running Windows > XP Professional, SQL Server 7.0 and VS 6 > > Thanks in advance > > > Mark Breen > Ireland > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Thu Jun 12 06:43:44 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 12 Jun 2003 11:43:44 +0000 Subject: [dba-VB] [AccessD] Msgbox HELP button Message-ID: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> To all, How do I get the msgbox to detect when the help button is pressed, I have the following code : pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") MsgBox pubUserResponse When the msgbox is displayed the ok button works fine but when I click the HELP button nothing happens, I assumed that it would store a value into pubUserResponse, but the msgbox doesn't even go away after clicking help. So my question is, how do I get to display a little help form or msgbox when the user clicks HELP..... Thanks in advance. Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Jun 12 06:51:56 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 12 Jun 2003 12:51:56 +0100 Subject: [dba-VB] Msgbox HELP button Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F1A9@MAILGATE.bury.gov.uk> Paul AFAIK, the Help button simply tries to open the help file specified in the [HelpFile] parameter of msgbox. If none is specified nothing happens, else it opens the help file or displays a message saying it can't find the help file and prompts you to find it yourself. To do what you require I thing you may need to build your own frmMsgBox form and code appropriately. Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 12 June 2003 12:44 > To: accessd at databaseadvisors.com; dba-vb at databaseadvisors.com > Subject: [dba-VB] Msgbox HELP button > > To all, > > How do I get the msgbox to detect when the help button is pressed, I have > the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", > vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click the > HELP button nothing happens, I assumed that it would store a value into > pubUserResponse, but the msgbox doesn't even go away after clicking help. > So my question is, how do I get to display a little help form or msgbox > when the user clicks HELP..... > > Thanks in advance. > > Paul > > __________________________________________________________________________ > Join Freeserve http://www.freeserve.com/time/ > > Winner of the 2003 Internet Service Providers' Association awards for Best > Unmetered ISP and Best Consumer Application. > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Jun 12 06:56:45 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 12 Jun 2003 21:56:45 +1000 Subject: [dba-VB] [AccessD] Msgbox HELP button In-Reply-To: <20030612114350.BTCO7126.fep02-svc.ttys.com@localhost> Message-ID: <3EE8F71D.7278.F899A1@localhost> On 12 Jun 2003 at 11:43, paul.hartland at fsmail.net wrote: > To all, > > How do I get the msgbox to detect when the help button is pressed, I have the following code : > > pubUserResponse = MsgBox("User not found, please check & try again.", vbInformation + vbMsgBoxHelpButton, "**** USER WARNING ****") > MsgBox pubUserResponse > > When the msgbox is displayed the ok button works fine but when I click > the HELP button nothing happens, I assumed that it would store a value > into pubUserResponse, but the msgbox doesn't even go away after > clicking help. So my question is, how do I get to display a little > help form or msgbox when the user clicks HELP..... > You need to provide the name of a helpfile and a context: MsgBox(prompt[, buttons] [, title] [, helpfile, context]) If you do, the help will pop up, but the msgbox will remain until you press on of the other buttons. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 16 10:05:53 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Jun 2003 15:05:53 +0000 Subject: [dba-VB] Command Objects within Data Environments Message-ID: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Tue Jun 17 03:02:51 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Jun 2003 8:02:51 +0000 Subject: [dba-VB] [AccessD] VB6 Help - Command Objects within the Data Environment Message-ID: <20030617080251.FPKX28680.fep03-svc.ttys.com@localhost> To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Tue Jun 17 11:53:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 12:53:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron From GRAY at utah.gov Tue Jun 17 14:50:02 2003 From: GRAY at utah.gov (Gary Ray) Date: Tue, 17 Jun 2003 13:50:02 -0600 Subject: [dba-VB] OT: C# Question, Exiting Gracefully Message-ID: There is an event handler discussion for the close event here: http://www.dotnet247.com/247reference/msgs/19/98033.aspx Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> chizotz at charter.net 06/17/03 10:53AM >>> How do you exit a Windows forms application gracefully? private void menuItemFileQuit_Click(object sender, System.EventArgs e) { DialogResult myResult; myResult = MessageBox.Show("Are you sure you want to quit ?","Polybags Tracking",MessageBoxButtons.YesNo , MessageBoxIcon.Question); if (myResult == DialogResult.Yes) { this.Close(); Application.Exit(); } } Which works fine when the user plays nice and uses my Quit menu item. What I'm having trouble figuring out is how to handle when the user clicks on the close 'X' button, or uses the control box or alt-F4 to exit the program. I have put the Application.Exit(); in the formMain_Unload, formMain_Close, etc events and the event never fires. I can't find anything about this in the help files, on the MS site, or in the two thick books on C# I have. Its frustrating, because in VB this is pretty simple to do. Any help out there? Thanks, Ron _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chizotz at charter.net Tue Jun 17 16:03:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 17 Jun 2003 17:03:10 -0400 Subject: [dba-VB] OT: C# Question, Exiting Gracefully In-Reply-To: Message-ID: Hi Gary, Thank you, I'll look at that right now. Ron On Tue, 17 Jun 2003 13:50:02 -0600 "Gary Ray" wrote: >There is an event handler discussion for the close event >here: > >http://www.dotnet247.com/247reference/msgs/19/98033.aspx From artful at rogers.com Wed Jun 18 10:06:22 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 18 Jun 2003 11:06:22 -0400 Subject: [dba-VB] Infragistics NetVantage In-Reply-To: Message-ID: <01e701c335ab$2dee7d70$6501a8c0@Rock> Does anyone have said software? I just received email about release 2.0. I downloaded a trial of release 1.0 and it looks awesome, but demos often hide the scars, battle-wounds, shortcomings etc. Anyone got real-world experience with this package? It's pricy, which is why I ask. Arthur From artful at rogers.com Fri Jun 20 06:22:05 2003 From: artful at rogers.com (Arthur Fuller) Date: Fri, 20 Jun 2003 07:22:05 -0400 Subject: [dba-VB] Command Objects within Data Environments In-Reply-To: <20030616150553.XWFX5167.fep04-svc.ttys.com@localhost> Message-ID: <002201c3371e$2e165d30$6501a8c0@Rock> I like to handle this type of task using static functions, rather than rebuilding the SQL. Write a static function called CurrentEmployee() or somesuch, then write the SQL something like: SELECT someColumns FROM tblEmps WHERE EmployeeID = CurrentEmployee() Then all you need to do is assign a new value to the static function and requery. Here's the template I use when creating static functions. Just follow the directions. Static Function CurrentX(Optional lngNew As Long) As Long 'Copy this template each time you need a new set/get function 'Then Replace "X" with the name of your object, i.e.,"Employee" 'Replace all in current proc and you're done. Dim lngCurrent As Long Select Case lngNew Case Is < 0 lngCurrent = 0 Case Is > 0 lngCurrent = lngNew Case Else 'just return the current value End Select CurrentX = lngCurrent #If conDebug = 1 Then Debug.Print "Current X: ", CurrentX #End If End Function To assign a value, call it like this: CurrentX(12345) To obtain the current value elsewhere, write: ? CurrentX() Hth, Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: June 16, 2003 11:06 AM To: dba-vb at databaseadvisors.com Subject: [dba-VB] Command Objects within Data Environments To all, I have a DataEnvironment (DEEmploy), which has a command tblEmps which uses a SQL Statement to get all the records from tblEmps like so : SELECT * FROM tblEmps Now I have reached a point where I only want to bring one employee back from the back-end, so what I need to know is can I build a SQL statement on the fly (something like (SELECT TOP 1 * FROM tblEmps) or (SELECT * FROM tblEmps WHERE (Criteria)) ) and assign that select statement to the Command object tblEmps so that it only returns employees that meet the criteria thats been built on the fly.... Thanks in advance for any help Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [AccessD] [dba-SQLServer]Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Jun 27 21:29:37 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 27 Jun 2003 22:29:37 -0400 Subject: [dba-VB] [dba-SQLServer][AccessD] Ping Again Message-ID: <3EFCC551.29241.2A0D811@localhost> Ping. -- Bryan Carbonnell - carbonnb at sympatico.ca Never be afraid to try something new. Remember, amateurs built the ark, and professionals built the Titanic. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer]SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 03:19:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 8:19:11 +0000 Subject: [dba-VB] [dba-SQLServer][AccessD] SQL Server 7.0 (Stored Procedure Help) Message-ID: <20030630081911.BLRV25735.fep08-svc.ttys.com@localhost> To all, I have two tables on a SQL Server(7.0), one is called tblSingleAvailability and the other tblAvailabilityAll. What I need to do is append records from tblSingleAvailability into tblAvailabilityAll where they do not already exist, e.g. see below : tblSingleAvailability Payroll AvailCode JobDate Type 99999 A 01/01/02 2 99999 N 04/02/02 0 tblAvailabilityAll Payroll AvailCode JobDate Type 99999 A 01/01/02 0 99999 A 01/01/02 1 99999 A 01/01/02 2 99999 N 04/02/02 1 99999 N 04/02/02 2 So I just need to append the record 99999, N, 04/02/02, 0 into tblAvailabilityAll because it does not already exist. So I have the following SQL Stored Procedure, can anyeon see where I am going wrong as it times out whilst trying to run this. CREATE PROCEDURE [genesis_insert_tblAvailabilityAll] AS INSERT INTO tblAvailabilityAll (PayrollNo, JobDate, AvailabilityCode, Type) SELECT PayrollNo, JobDate, AvailabilityCode, Type FROM tblSingleAvailability WHERE NOT EXISTS(SELECT PayrollNo, JobDate, AvailabilityCode,Type FROM tblAvailabilityAll WHERE (tblSingleAvailability.PayrollNo = tblAvailabilityAll.PayrollNo AND tblSingleAvailability.JobDate = tblAvailabilityAll.JobDate AND tblSingleAvailability.Type = tblAvailabilityAll.Type)) Any help appreciated thanks...... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [dba-SQLServer] [AccessD] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Mon Jun 30 04:27:35 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 30 Jun 2003 9:27:35 +0000 Subject: [dba-VB] [AccessD] [dba-SQLServer] Sent Wrong Info Regarding Stored Procedure help URGENT. Message-ID: <20030630092735.JKIT5167.fep04-svc.ttys.com@localhost> To all, I have two tables tblAvailabilityAll and tblAvailabilityCodes, in tblAvailabilityAll I have a payroll number, availability code (A, N, S or H) and a jobdate, in tblAvailabilityCodes I have an availability code and a corresponding number i.e Code Number A 1 N 2 S 3 H 4 I have a VB6 form with an employees details on, and when a finish date is entered I need to convert the availability code in tblAvailabilityAll to the corresponding number in tblAvailabilityCodes. I have the following stored procedure (this is the one thats timing out, not the on in the previous email). CREATE PROCEDURE [genesis_update_AvailabilityCode] ( @Payroll_1 [nvarchar] (25), @MyDate_2 [datetime] ) AS UPDATE [Genesis].[dbo].[tblAvailabilityAll] SET AvailabilityCode = tblAvailabilityCodes.CancelledAvailabilityCode FROM tblAvailabilityAll INNER JOIN tblAvailabilityCodes ON AvailabilityCode = tblAvailabilityCodes.LiveAvailabilityCode WHERE (tblAvailabilityAll.PayrollNo = @Payroll_1 AND tblAvailabilityAll.JobDate >= @MyDate_2) can anyone see where the stored procedure may be going wrong......I could really do with some urgent help on this... Paul __________________________________________________________________________ Join Freeserve http://www.freeserve.com/time/ Winner of the 2003 Internet Service Providers' Association awards for Best Unmetered ISP and Best Consumer Application. _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com