From listmaster at databaseadvisors.com Sun Feb 8 20:13:31 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 08 Feb 2004 21:13:31 -0500 Subject: [dba-VB] Administrivia - List Software Upgrade Message-ID: <4026A67B.1068.B05F0E@localhost> On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the software that runs the lists hosted by Database Advisors will be upgraded. It should only take a couple of hours. This will bring our software upto date. Not only is it necessary for security but it will also be a step on the road to a completely searchable archive at http://databaseadvisors.com During the time it takes to run the upgrade, the server will be down. Any post made during this time will not be accepted. It may be rejected by the server as well. However, it will only be a temporary situation. A notice will be posted once the server is back up and running with the new list software. You can also keep an eye on http://www.databaseadvisors.com/liststatus.htm for any changes or notices. Thank you for your patience during this, and the upcoming changes and upgrades. Thank You, -- Bryan Carbonnell - Your Listmaster listmaster at databaseadvisors.com _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From bkollodge at parkindustries.com Mon Feb 9 15:16:58 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:16:58 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries From ebarro at afsweb.com Mon Feb 9 15:34:39 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 9 Feb 2004 13:34:39 -0800 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 From bkollodge at parkindustries.com Mon Feb 9 15:50:30 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:50:30 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From todd.buttrey at earthlink.net Mon Feb 9 21:52:03 2004 From: todd.buttrey at earthlink.net (Todd Buttrey) Date: Mon, 9 Feb 2004 21:52:03 -0600 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: if MyArray.items.count = 0 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 3:51 PM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ 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 Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [dba-VB] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From listmaster at databaseadvisors.com Sat Feb 14 11:11:24 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sat, 14 Feb 2004 12:11:24 -0500 Subject: [dba-VB] Administrivia - Software Updates Done Message-ID: <402E106C.13123.9EAD2F@localhost> Well folks, the stars and planets were all in alignment this morning and the list software upgrades went smoothly. Everything is back up and running. I will be tweaking as the day goes by, but you shouldn't notice anything. If you have any problems as a result of this upgrade, PLEASE let me know, listmaster at databaseadvisors.com. So why did we upgrade? Here are the highlights for those that are interested: - Several Security vulnerabilities - Bouncing rules have been updated - Hard Drive Usage improvements - Bounce Disable e-mail confirmation string expiry always out of date bug was fixed (This affected several members) - Archives takes time zome information into account when threading messages. These are the main reasons we upgraded. Thanks for your patience during the upgrade and if you encounter any problems, please let me know. -- Bryan Carbonnell - listmaster at databaseadvisors.com I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From tortise at paradise.net.nz Sat Feb 14 13:35:18 2004 From: tortise at paradise.net.nz (Tortise) Date: Sun, 15 Feb 2004 08:35:18 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> Message-ID: <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ 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 Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ 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 Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From tortise at paradise.net.nz Tue Feb 17 17:04:34 2004 From: tortise at paradise.net.nz (Tortise) Date: Wed, 18 Feb 2004 12:04:34 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Message-ID: <064301c3f5aa$68b90ff0$1e00a8c0@cheqsoft.local> Dear List I have come to the conclusion it is not designed to cope with this situation, unless anyone else can shed some light here? Kind Regards David ----- Original Message ----- From: Tortise To: dba-vb at databaseadvisors.com Sent: Sunday, February 15, 2004 8:35 AM Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David _______________________________________________ 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 Wed Feb 18 10:53:06 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Feb 2004 17:53:06 +0100 (CET) Subject: [dba-VB] Buttons & DropDown List On A DataGrid Message-ID: <5962657.1077123186257.JavaMail.www@wwinf3006> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [dba-VB] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ 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 Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ 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 Sat Feb 21 10:51:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 11:51:17 -0500 Subject: [dba-VB] Cross Posting Test Message-ID: <40374635.14782.C02296@localhost> Test. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From bkollodge at parkindustries.com Mon Feb 23 10:01:55 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 23 Feb 2004 10:01:55 -0600 Subject: [dba-VB] Formatting a disk Message-ID: Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries From BBarabash at TappeConstruction.com Mon Feb 23 10:13:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:13:25 -0600 Subject: [dba-VB] Formatting a disk Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE398@TAPPEEXCH01> Bill, Try this: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=68&lngWId= 1 (BTW, where were you searching? Google returned 100's of results) http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=vb+format+disk&sa =N&tab=gw http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=vb+fo rmat+disk -----Original Message----- From: bkollodge at parkindustries.com [mailto:bkollodge at parkindustries.com] Sent: Monday, February 23, 2004 10:02 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Formatting a disk Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From alecksorlino at aaa-phil.com Mon Feb 23 21:53:23 2004 From: alecksorlino at aaa-phil.com (Alecks Orlino) Date: Tue, 24 Feb 2004 11:53:23 +0800 Subject: [dba-VB] SMS through GPRS Modem Message-ID: <000001c3fa89$c12a6330$131511ac@CPQ1700Alecks> Hello! I'm trying to develop an SMS system to be integrated to our SQL backend. We've recently purchased a GPRS modem (iTegno WM1080A) but it's packaged with a very basic software which is of limited use to us. The manual for the modem was not even included. I've very little knowledge of AT commands, none useful on accessing SMS on GPRS modems! Can anyone provide me with the basic functions or does anybody have a sample code on how to do it! I'd very much appreciate any help! Thanks Alecks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.573 / Virus Database: 363 - Release Date: 1/28/2004 From paul.hartland at fsmail.net Tue Feb 24 07:06:50 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 24 Feb 2004 14:06:50 +0100 (CET) Subject: [dba-VB] Making A Phone Call From A Visual Basic Application Message-ID: <24142916.1077628010509.JavaMail.www@wwinf3005> To all, We are operating a windows 2000 network with windows XP desktops and as per usual we connect to the internet through our network. I?m trying to look a bit further into the future of our internal application, we have a Visual Basic FE connected to a SQL Server 7.0 BE. On this we have personnel and client data, what I want to be able to do is have a button next to the phone number so that when the user clicks it, it dials the number for them. I don?t think I can get into our phone network, but is there a way I can connect a headset to the PC and dial the number through our internet connection ? I hope I?ve explained what I want to do clearly enough, any help, pointers in the right direction etc will be greatly appreciated. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tortise at paradise.net.nz Wed Feb 25 14:42:31 2004 From: tortise at paradise.net.nz (Tortise) Date: Thu, 26 Feb 2004 09:42:31 +1300 Subject: [dba-VB] Licensing and Restricting Users On a Terminal Server References: <24142916.1077628010509.JavaMail.www@wwinf3005> Message-ID: <00f601c3fbdf$e43679c0$1e00a8c0@cheqsoft.local> Hi Can anyone point me in the right direction to measure and restrict the number of concurrent users of an application, for licensing purposes? So far as I can tell there is no easy way to do this? Kind Regards David From listmaster at databaseadvisors.com Sun Feb 8 20:13:31 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 08 Feb 2004 21:13:31 -0500 Subject: [dba-VB] Administrivia - List Software Upgrade Message-ID: <4026A67B.1068.B05F0E@localhost> On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the software that runs the lists hosted by Database Advisors will be upgraded. It should only take a couple of hours. This will bring our software upto date. Not only is it necessary for security but it will also be a step on the road to a completely searchable archive at http://databaseadvisors.com During the time it takes to run the upgrade, the server will be down. Any post made during this time will not be accepted. It may be rejected by the server as well. However, it will only be a temporary situation. A notice will be posted once the server is back up and running with the new list software. You can also keep an eye on http://www.databaseadvisors.com/liststatus.htm for any changes or notices. Thank you for your patience during this, and the upcoming changes and upgrades. Thank You, -- Bryan Carbonnell - Your Listmaster listmaster at databaseadvisors.com _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From bkollodge at parkindustries.com Mon Feb 9 15:16:58 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:16:58 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries From ebarro at afsweb.com Mon Feb 9 15:34:39 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 9 Feb 2004 13:34:39 -0800 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 From bkollodge at parkindustries.com Mon Feb 9 15:50:30 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:50:30 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From todd.buttrey at earthlink.net Mon Feb 9 21:52:03 2004 From: todd.buttrey at earthlink.net (Todd Buttrey) Date: Mon, 9 Feb 2004 21:52:03 -0600 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: if MyArray.items.count = 0 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 3:51 PM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ 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 Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [dba-VB] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From listmaster at databaseadvisors.com Sat Feb 14 11:11:24 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sat, 14 Feb 2004 12:11:24 -0500 Subject: [dba-VB] Administrivia - Software Updates Done Message-ID: <402E106C.13123.9EAD2F@localhost> Well folks, the stars and planets were all in alignment this morning and the list software upgrades went smoothly. Everything is back up and running. I will be tweaking as the day goes by, but you shouldn't notice anything. If you have any problems as a result of this upgrade, PLEASE let me know, listmaster at databaseadvisors.com. So why did we upgrade? Here are the highlights for those that are interested: - Several Security vulnerabilities - Bouncing rules have been updated - Hard Drive Usage improvements - Bounce Disable e-mail confirmation string expiry always out of date bug was fixed (This affected several members) - Archives takes time zome information into account when threading messages. These are the main reasons we upgraded. Thanks for your patience during the upgrade and if you encounter any problems, please let me know. -- Bryan Carbonnell - listmaster at databaseadvisors.com I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From tortise at paradise.net.nz Sat Feb 14 13:35:18 2004 From: tortise at paradise.net.nz (Tortise) Date: Sun, 15 Feb 2004 08:35:18 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> Message-ID: <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ 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 Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ 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 Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From tortise at paradise.net.nz Tue Feb 17 17:04:34 2004 From: tortise at paradise.net.nz (Tortise) Date: Wed, 18 Feb 2004 12:04:34 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Message-ID: <064301c3f5aa$68b90ff0$1e00a8c0@cheqsoft.local> Dear List I have come to the conclusion it is not designed to cope with this situation, unless anyone else can shed some light here? Kind Regards David ----- Original Message ----- From: Tortise To: dba-vb at databaseadvisors.com Sent: Sunday, February 15, 2004 8:35 AM Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David _______________________________________________ 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 Wed Feb 18 10:53:06 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Feb 2004 17:53:06 +0100 (CET) Subject: [dba-VB] Buttons & DropDown List On A DataGrid Message-ID: <5962657.1077123186257.JavaMail.www@wwinf3006> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [dba-VB] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ 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 Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ 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 Sat Feb 21 10:51:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 11:51:17 -0500 Subject: [dba-VB] Cross Posting Test Message-ID: <40374635.14782.C02296@localhost> Test. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From bkollodge at parkindustries.com Mon Feb 23 10:01:55 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 23 Feb 2004 10:01:55 -0600 Subject: [dba-VB] Formatting a disk Message-ID: Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries From BBarabash at TappeConstruction.com Mon Feb 23 10:13:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:13:25 -0600 Subject: [dba-VB] Formatting a disk Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE398@TAPPEEXCH01> Bill, Try this: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=68&lngWId= 1 (BTW, where were you searching? Google returned 100's of results) http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=vb+format+disk&sa =N&tab=gw http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=vb+fo rmat+disk -----Original Message----- From: bkollodge at parkindustries.com [mailto:bkollodge at parkindustries.com] Sent: Monday, February 23, 2004 10:02 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Formatting a disk Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From alecksorlino at aaa-phil.com Mon Feb 23 21:53:23 2004 From: alecksorlino at aaa-phil.com (Alecks Orlino) Date: Tue, 24 Feb 2004 11:53:23 +0800 Subject: [dba-VB] SMS through GPRS Modem Message-ID: <000001c3fa89$c12a6330$131511ac@CPQ1700Alecks> Hello! I'm trying to develop an SMS system to be integrated to our SQL backend. We've recently purchased a GPRS modem (iTegno WM1080A) but it's packaged with a very basic software which is of limited use to us. The manual for the modem was not even included. I've very little knowledge of AT commands, none useful on accessing SMS on GPRS modems! Can anyone provide me with the basic functions or does anybody have a sample code on how to do it! I'd very much appreciate any help! Thanks Alecks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.573 / Virus Database: 363 - Release Date: 1/28/2004 From paul.hartland at fsmail.net Tue Feb 24 07:06:50 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 24 Feb 2004 14:06:50 +0100 (CET) Subject: [dba-VB] Making A Phone Call From A Visual Basic Application Message-ID: <24142916.1077628010509.JavaMail.www@wwinf3005> To all, We are operating a windows 2000 network with windows XP desktops and as per usual we connect to the internet through our network. I?m trying to look a bit further into the future of our internal application, we have a Visual Basic FE connected to a SQL Server 7.0 BE. On this we have personnel and client data, what I want to be able to do is have a button next to the phone number so that when the user clicks it, it dials the number for them. I don?t think I can get into our phone network, but is there a way I can connect a headset to the PC and dial the number through our internet connection ? I hope I?ve explained what I want to do clearly enough, any help, pointers in the right direction etc will be greatly appreciated. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tortise at paradise.net.nz Wed Feb 25 14:42:31 2004 From: tortise at paradise.net.nz (Tortise) Date: Thu, 26 Feb 2004 09:42:31 +1300 Subject: [dba-VB] Licensing and Restricting Users On a Terminal Server References: <24142916.1077628010509.JavaMail.www@wwinf3005> Message-ID: <00f601c3fbdf$e43679c0$1e00a8c0@cheqsoft.local> Hi Can anyone point me in the right direction to measure and restrict the number of concurrent users of an application, for licensing purposes? So far as I can tell there is no easy way to do this? Kind Regards David From listmaster at databaseadvisors.com Sun Feb 8 20:13:31 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 08 Feb 2004 21:13:31 -0500 Subject: [dba-VB] Administrivia - List Software Upgrade Message-ID: <4026A67B.1068.B05F0E@localhost> On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the software that runs the lists hosted by Database Advisors will be upgraded. It should only take a couple of hours. This will bring our software upto date. Not only is it necessary for security but it will also be a step on the road to a completely searchable archive at http://databaseadvisors.com During the time it takes to run the upgrade, the server will be down. Any post made during this time will not be accepted. It may be rejected by the server as well. However, it will only be a temporary situation. A notice will be posted once the server is back up and running with the new list software. You can also keep an eye on http://www.databaseadvisors.com/liststatus.htm for any changes or notices. Thank you for your patience during this, and the upcoming changes and upgrades. Thank You, -- Bryan Carbonnell - Your Listmaster listmaster at databaseadvisors.com _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From bkollodge at parkindustries.com Mon Feb 9 15:16:58 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:16:58 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries From ebarro at afsweb.com Mon Feb 9 15:34:39 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 9 Feb 2004 13:34:39 -0800 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 From bkollodge at parkindustries.com Mon Feb 9 15:50:30 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:50:30 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From todd.buttrey at earthlink.net Mon Feb 9 21:52:03 2004 From: todd.buttrey at earthlink.net (Todd Buttrey) Date: Mon, 9 Feb 2004 21:52:03 -0600 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: if MyArray.items.count = 0 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 3:51 PM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ 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 Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [dba-VB] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From listmaster at databaseadvisors.com Sat Feb 14 11:11:24 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sat, 14 Feb 2004 12:11:24 -0500 Subject: [dba-VB] Administrivia - Software Updates Done Message-ID: <402E106C.13123.9EAD2F@localhost> Well folks, the stars and planets were all in alignment this morning and the list software upgrades went smoothly. Everything is back up and running. I will be tweaking as the day goes by, but you shouldn't notice anything. If you have any problems as a result of this upgrade, PLEASE let me know, listmaster at databaseadvisors.com. So why did we upgrade? Here are the highlights for those that are interested: - Several Security vulnerabilities - Bouncing rules have been updated - Hard Drive Usage improvements - Bounce Disable e-mail confirmation string expiry always out of date bug was fixed (This affected several members) - Archives takes time zome information into account when threading messages. These are the main reasons we upgraded. Thanks for your patience during the upgrade and if you encounter any problems, please let me know. -- Bryan Carbonnell - listmaster at databaseadvisors.com I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From tortise at paradise.net.nz Sat Feb 14 13:35:18 2004 From: tortise at paradise.net.nz (Tortise) Date: Sun, 15 Feb 2004 08:35:18 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> Message-ID: <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ 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 Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ 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 Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From tortise at paradise.net.nz Tue Feb 17 17:04:34 2004 From: tortise at paradise.net.nz (Tortise) Date: Wed, 18 Feb 2004 12:04:34 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Message-ID: <064301c3f5aa$68b90ff0$1e00a8c0@cheqsoft.local> Dear List I have come to the conclusion it is not designed to cope with this situation, unless anyone else can shed some light here? Kind Regards David ----- Original Message ----- From: Tortise To: dba-vb at databaseadvisors.com Sent: Sunday, February 15, 2004 8:35 AM Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David _______________________________________________ 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 Wed Feb 18 10:53:06 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Feb 2004 17:53:06 +0100 (CET) Subject: [dba-VB] Buttons & DropDown List On A DataGrid Message-ID: <5962657.1077123186257.JavaMail.www@wwinf3006> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [dba-VB] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ 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 Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ 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 Sat Feb 21 10:51:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 11:51:17 -0500 Subject: [dba-VB] Cross Posting Test Message-ID: <40374635.14782.C02296@localhost> Test. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From bkollodge at parkindustries.com Mon Feb 23 10:01:55 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 23 Feb 2004 10:01:55 -0600 Subject: [dba-VB] Formatting a disk Message-ID: Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries From BBarabash at TappeConstruction.com Mon Feb 23 10:13:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:13:25 -0600 Subject: [dba-VB] Formatting a disk Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE398@TAPPEEXCH01> Bill, Try this: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=68&lngWId= 1 (BTW, where were you searching? Google returned 100's of results) http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=vb+format+disk&sa =N&tab=gw http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=vb+fo rmat+disk -----Original Message----- From: bkollodge at parkindustries.com [mailto:bkollodge at parkindustries.com] Sent: Monday, February 23, 2004 10:02 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Formatting a disk Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From alecksorlino at aaa-phil.com Mon Feb 23 21:53:23 2004 From: alecksorlino at aaa-phil.com (Alecks Orlino) Date: Tue, 24 Feb 2004 11:53:23 +0800 Subject: [dba-VB] SMS through GPRS Modem Message-ID: <000001c3fa89$c12a6330$131511ac@CPQ1700Alecks> Hello! I'm trying to develop an SMS system to be integrated to our SQL backend. We've recently purchased a GPRS modem (iTegno WM1080A) but it's packaged with a very basic software which is of limited use to us. The manual for the modem was not even included. I've very little knowledge of AT commands, none useful on accessing SMS on GPRS modems! Can anyone provide me with the basic functions or does anybody have a sample code on how to do it! I'd very much appreciate any help! Thanks Alecks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.573 / Virus Database: 363 - Release Date: 1/28/2004 From paul.hartland at fsmail.net Tue Feb 24 07:06:50 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 24 Feb 2004 14:06:50 +0100 (CET) Subject: [dba-VB] Making A Phone Call From A Visual Basic Application Message-ID: <24142916.1077628010509.JavaMail.www@wwinf3005> To all, We are operating a windows 2000 network with windows XP desktops and as per usual we connect to the internet through our network. I?m trying to look a bit further into the future of our internal application, we have a Visual Basic FE connected to a SQL Server 7.0 BE. On this we have personnel and client data, what I want to be able to do is have a button next to the phone number so that when the user clicks it, it dials the number for them. I don?t think I can get into our phone network, but is there a way I can connect a headset to the PC and dial the number through our internet connection ? I hope I?ve explained what I want to do clearly enough, any help, pointers in the right direction etc will be greatly appreciated. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tortise at paradise.net.nz Wed Feb 25 14:42:31 2004 From: tortise at paradise.net.nz (Tortise) Date: Thu, 26 Feb 2004 09:42:31 +1300 Subject: [dba-VB] Licensing and Restricting Users On a Terminal Server References: <24142916.1077628010509.JavaMail.www@wwinf3005> Message-ID: <00f601c3fbdf$e43679c0$1e00a8c0@cheqsoft.local> Hi Can anyone point me in the right direction to measure and restrict the number of concurrent users of an application, for licensing purposes? So far as I can tell there is no easy way to do this? Kind Regards David From listmaster at databaseadvisors.com Sun Feb 8 20:13:31 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sun, 08 Feb 2004 21:13:31 -0500 Subject: [dba-VB] Administrivia - List Software Upgrade Message-ID: <4026A67B.1068.B05F0E@localhost> On Saturday February 14th, 2003 starting at 10:00 EST (15:00 UTC) the software that runs the lists hosted by Database Advisors will be upgraded. It should only take a couple of hours. This will bring our software upto date. Not only is it necessary for security but it will also be a step on the road to a completely searchable archive at http://databaseadvisors.com During the time it takes to run the upgrade, the server will be down. Any post made during this time will not be accepted. It may be rejected by the server as well. However, it will only be a temporary situation. A notice will be posted once the server is back up and running with the new list software. You can also keep an eye on http://www.databaseadvisors.com/liststatus.htm for any changes or notices. Thank you for your patience during this, and the upcoming changes and upgrades. Thank You, -- Bryan Carbonnell - Your Listmaster listmaster at databaseadvisors.com _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From bkollodge at parkindustries.com Mon Feb 9 15:16:58 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:16:58 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries From ebarro at afsweb.com Mon Feb 9 15:34:39 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 9 Feb 2004 13:34:39 -0800 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 From bkollodge at parkindustries.com Mon Feb 9 15:50:30 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 9 Feb 2004 15:50:30 -0600 Subject: [dba-VB] Is MyArray Empty? Message-ID: Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From todd.buttrey at earthlink.net Mon Feb 9 21:52:03 2004 From: todd.buttrey at earthlink.net (Todd Buttrey) Date: Mon, 9 Feb 2004 21:52:03 -0600 Subject: [dba-VB] Is MyArray Empty? In-Reply-To: Message-ID: if MyArray.items.count = 0 -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 3:51 PM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? Hi Eric, I tried it but that didn't work. This came from the help on IsEmpty. [False is always returned if expression contains more than one variable.] My backup is to write a public function to spin through all the elements and return a bool. Thanks, Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: February 09, 2004 3:35 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is MyArray Empty? If IsEmpty(MyArray) Then... --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Monday, February 09, 2004 1:17 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Is MyArray Empty? Does anyone know a quick way to determine if an array is empty or not? if MyArray = Empty then ... ??? Thanks, Bill K CNC Engineering Park Industries _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 _______________________________________________ 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 Tue Feb 10 04:12:41 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 10 Feb 2004 11:12:41 +0100 (CET) Subject: [dba-VB] Find Dialog In Visual Basic 6 Message-ID: <28718305.1076407961797.JavaMail.www@wwinf3001> To all, Can anyone supply me with some sample code, or explanation of how to get the equivalent to the Microsoft Access Find Dialog i.e. Screen.PreviousControl.SetFocus DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70 The main thing I need is to be able to keep track of the last control that had the focus, I could always create my own find form if necessary, but I?m sure there must be someone out there that has already done this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From listmaster at databaseadvisors.com Sat Feb 14 11:11:24 2004 From: listmaster at databaseadvisors.com (Bryan Carbonnell) Date: Sat, 14 Feb 2004 12:11:24 -0500 Subject: [dba-VB] Administrivia - Software Updates Done Message-ID: <402E106C.13123.9EAD2F@localhost> Well folks, the stars and planets were all in alignment this morning and the list software upgrades went smoothly. Everything is back up and running. I will be tweaking as the day goes by, but you shouldn't notice anything. If you have any problems as a result of this upgrade, PLEASE let me know, listmaster at databaseadvisors.com. So why did we upgrade? Here are the highlights for those that are interested: - Several Security vulnerabilities - Bouncing rules have been updated - Hard Drive Usage improvements - Bounce Disable e-mail confirmation string expiry always out of date bug was fixed (This affected several members) - Archives takes time zome information into account when threading messages. These are the main reasons we upgraded. Thanks for your patience during the upgrade and if you encounter any problems, please let me know. -- Bryan Carbonnell - listmaster at databaseadvisors.com I've learned.... That one should keep his words both soft and tender, because tomorrow he may have to eat them. _______________________________________________ Administrivia mailing list Administrivia at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/administrivia From tortise at paradise.net.nz Sat Feb 14 13:35:18 2004 From: tortise at paradise.net.nz (Tortise) Date: Sun, 15 Feb 2004 08:35:18 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> Message-ID: <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Mon Feb 16 03:03:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 16 Feb 2004 10:03:27 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <33430946.1076922207517.JavaMail.www@wwinf3002> To all, I have a table in SQL Server 7.0 called tblClient with the following fields of information: BranchNo BranchCode ClientName Addrs1 Addrs2 District Town County Postcode Telephone I want the following fields ClientName, Addrs1, Addrs2, District, Town, County, Postcode to appear as one line separated by a comma like below BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, District, Town, Postcode As you can se from the example Addrs2 and County are missing, this is because these are blank sometimes. I have tried a couple of ways but always end up with the following BranchNo BranchCode Address 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , Postcode As you can see where the missing fields are the comma?s still appear. Any help on this will be gratefully received. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg From stuart at lexacorp.com.pg Mon Feb 16 18:23:39 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Feb 2004 10:23:39 +1000 Subject: [dba-VB] [dba-SQLServer] Concatenating Fields In SQL Stored Procedure Or SQL View Message-ID: <4031EBAB.14760.13C55288@localhost> > I have a table in SQL Server 7.0 called tblClient with the following > fields of information: > BranchNo > BranchCode > ClientName > Addrs1 > Addrs2 > District > Town > County > Postcode > Telephone > > I want the following fields ClientName, Addrs1, Addrs2, District, Town, > County, Postcode to appear as one line separated by a comma like below > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, District, Town, > Postcode > > As you can se from the example Addrs2 and County are missing, this is > because these are blank sometimes. I have tried a couple of ways but > always end up with the following > > BranchNo BranchCode Address > 9999029 B&Q9999029 ClientName, Addrs1, , District, Town, , > Postcode > > As you can see where the missing fields are the comma?s still appear. Any > help on this will be gratefully received. It's a bit clumsy, but you could use: Select BranchNo, BranchCode, ClientName + ', ' + Addrs1 + ', ' + Case When Addrs2 > ' ' then Addrs2 + ',' Else '' End + District + "," + Town + "," + Case When County > ' ' then County + ',' Else '' End + Postcode from tblClient -- Stuart McLachlan Lexacorp Ltd Application Development, IT Consultancy http://www.lexacorp.com.pg _______________________________________________ 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 Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 03:34:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 10:34:39 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Is This Possible ? Message-ID: <16329281.1077010479959.JavaMail.www@wwinf3002> To all, Firstly can I say a GREAT big thank you to those of you that helped me yesterday on concatenating fields in SQL Server 7.0. Your answers worked like a charm. Now this is where it gets complicated. Each member of our staff can be available for a full day, or half day (am/pm), so in our employee availability table we have three records like below (Type 0 = Full Day, 1=AM, 2 = PM): PayrollNo JobDate JobNo Type AvailCode 9999999 01/03/04 8726 0 A 9999999 01/03/04 1 A 9999999 01/03/04 2 A 9999999 02/03/04 0 A 9999999 02/03/04 7465 1 A 9999999 02/03/04 9372 2 A I need to somehow turn the above into the example below, If I need to use temporary tables etc I will but if the main calculations etc can be done by Stored Procedures then even better. Week Commencing PayrollNo Mon Tue Wed Thur Fri Sat Sun 01/03/04 9999999 8726 7465, 9372 08/03/04 15/03/04 22/03/04 I don?t really require the payrollno in the above example asa it will be shown elsewhere along with the Employees name. The main requirement of the above is that I will need to be able to edit the data. Anyone ever done anything like this before ?, all help greatly appreciated. Anything to get me pointing in the right direction . Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ 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 Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Tue Feb 17 04:58:59 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 17 Feb 2004 11:58:59 +0100 (CET) Subject: [dba-VB] [dba-SQLServer] Week Commencing Table (SQL Server 7.0) Message-ID: <27579846.1077015539613.JavaMail.www@wwinf3002> To All, I am trying to write a stored procedure in SQL Server 7.0, that when I pass a startdate and enddate to it it will populate a week commencing table, I know how to pass parameters etc to a SQL Server stored procedure and I have also written other INSERT stored procedures, but how do I create a loop in a stored procedure so that startdate increments by 7 days and inserts the new week commencing date until enddate is reached. I was originally going to use Visual Basic to increment the dates then call the stored procedure each time the date incremented, but it would look a lot cleaner if I could achieve this in SQL Server itself. Can anyone point me in the right direction (Again) .. Thanks in advance for any help on this .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From tortise at paradise.net.nz Tue Feb 17 17:04:34 2004 From: tortise at paradise.net.nz (Tortise) Date: Wed, 18 Feb 2004 12:04:34 +1300 Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar References: <402E106C.13123.9EAD2F@localhost> <003e01c3f331$ad674840$1e00a8c0@cheqsoft.local> Message-ID: <064301c3f5aa$68b90ff0$1e00a8c0@cheqsoft.local> Dear List I have come to the conclusion it is not designed to cope with this situation, unless anyone else can shed some light here? Kind Regards David ----- Original Message ----- From: Tortise To: dba-vb at databaseadvisors.com Sent: Sunday, February 15, 2004 8:35 AM Subject: [dba-VB] Changing Application Icon in Title Bar and Task Bar Dear List Members As the title says I am having great difficulty getting a 'little' icon to change in the application title and task bar depending on the state of the app. It works fine in VB5, but when run as the exe it gets a black halo around, on first and subsequent change. (!) The behaviour may vary in W2K and XP. The icons being used a have transparent backgrounds. I have tried 16 bit and 256Bit colours as there was a suggestion NT series OS only cope with 256 colour icons properly. Any suggestions or experience with this would be welcomed! Regards David _______________________________________________ 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 Wed Feb 18 10:53:06 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 18 Feb 2004 17:53:06 +0100 (CET) Subject: [dba-VB] Buttons & DropDown List On A DataGrid Message-ID: <5962657.1077123186257.JavaMail.www@wwinf3006> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Feb 19 02:56:21 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 19 Feb 2004 09:56:21 +0100 (CET) Subject: [dba-VB] DataGrid Buttons Message-ID: <16335556.1077180981123.JavaMail.www@wwinf3004> To all, Firstly, I?m a bit of a novice with the buttons on a datagrid. Basically I can get the button to appear on a column, but don?t know how to make it drop down to shown the letters A & N. Also I need to make sure that the user can only select from the list. I have read up on the Visual Basic help but it says to use a combo box as well on the button click event, but there are no examples. Can anyone help me out on this Many thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. From carbonnb at sympatico.ca Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ From carbonnb at sympatico.ca Thu Feb 19 21:01:49 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:01:49 -0500 Subject: [dba-VB] [dba-SQLServer] Test 1/2 Message-ID: <4035324D.32194.1193E41@localhost> Test 1 of 2. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca I'm not a complete idiot some parts are missing. _______________________________________________ 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 Thu Feb 19 21:02:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 19 Feb 2004 22:02:19 -0500 Subject: [dba-VB] [dba-SQLServer] Test 2/2/ Message-ID: <4035326B.14341.119B0F3@localhost> Test 2/2 DO NOT REPLY!!!! -- Bryan Carbonnell - carbonnb at sympatico.ca A good friend will come bail you out of jail.... but a true friend will be sitting next to you saying ^Damn... We ****ed up.^ _______________________________________________ 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 Sat Feb 21 10:51:17 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sat, 21 Feb 2004 11:51:17 -0500 Subject: [dba-VB] Cross Posting Test Message-ID: <40374635.14782.C02296@localhost> Test. DO NOT REPLY!!! -- Bryan Carbonnell - carbonnb at sympatico.ca If you never fail, you're not trying hard enough. From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John From djkr at msn.com Sat Feb 21 11:47:06 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Feb 2004 17:47:06 -0000 Subject: [dba-VB] [dba-SQLServer] Thanks, Bryan In-Reply-To: <40374635.14782.C02296@localhost> Message-ID: <004001c3f8a2$b907c370$bf00a8c0@dabsight> Bryan Thanks for your work in analysing and solving the cross-posting problem. Those of us subscribed to more than one list will truly benefit! John _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From bkollodge at parkindustries.com Mon Feb 23 10:01:55 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Mon, 23 Feb 2004 10:01:55 -0600 Subject: [dba-VB] Formatting a disk Message-ID: Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries From BBarabash at TappeConstruction.com Mon Feb 23 10:13:25 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 23 Feb 2004 10:13:25 -0600 Subject: [dba-VB] Formatting a disk Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE398@TAPPEEXCH01> Bill, Try this: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=68&lngWId= 1 (BTW, where were you searching? Google returned 100's of results) http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=vb+format+disk&sa =N&tab=gw http://groups.google.com/groups?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=vb+fo rmat+disk -----Original Message----- From: bkollodge at parkindustries.com [mailto:bkollodge at parkindustries.com] Sent: Monday, February 23, 2004 10:02 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Formatting a disk Good morning, does anyone know how I can format a disk in drive A: through VB code? My search for "format" doesn't take me where I'm trying to go. Thanks! Bill CNC Engineering Park Industries -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From alecksorlino at aaa-phil.com Mon Feb 23 21:53:23 2004 From: alecksorlino at aaa-phil.com (Alecks Orlino) Date: Tue, 24 Feb 2004 11:53:23 +0800 Subject: [dba-VB] SMS through GPRS Modem Message-ID: <000001c3fa89$c12a6330$131511ac@CPQ1700Alecks> Hello! I'm trying to develop an SMS system to be integrated to our SQL backend. We've recently purchased a GPRS modem (iTegno WM1080A) but it's packaged with a very basic software which is of limited use to us. The manual for the modem was not even included. I've very little knowledge of AT commands, none useful on accessing SMS on GPRS modems! Can anyone provide me with the basic functions or does anybody have a sample code on how to do it! I'd very much appreciate any help! Thanks Alecks --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.573 / Virus Database: 363 - Release Date: 1/28/2004 From paul.hartland at fsmail.net Tue Feb 24 07:06:50 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 24 Feb 2004 14:06:50 +0100 (CET) Subject: [dba-VB] Making A Phone Call From A Visual Basic Application Message-ID: <24142916.1077628010509.JavaMail.www@wwinf3005> To all, We are operating a windows 2000 network with windows XP desktops and as per usual we connect to the internet through our network. I?m trying to look a bit further into the future of our internal application, we have a Visual Basic FE connected to a SQL Server 7.0 BE. On this we have personnel and client data, what I want to be able to do is have a button next to the phone number so that when the user clicks it, it dials the number for them. I don?t think I can get into our phone network, but is there a way I can connect a headset to the PC and dial the number through our internet connection ? I hope I?ve explained what I want to do clearly enough, any help, pointers in the right direction etc will be greatly appreciated. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tortise at paradise.net.nz Wed Feb 25 14:42:31 2004 From: tortise at paradise.net.nz (Tortise) Date: Thu, 26 Feb 2004 09:42:31 +1300 Subject: [dba-VB] Licensing and Restricting Users On a Terminal Server References: <24142916.1077628010509.JavaMail.www@wwinf3005> Message-ID: <00f601c3fbdf$e43679c0$1e00a8c0@cheqsoft.local> Hi Can anyone point me in the right direction to measure and restrict the number of concurrent users of an application, for licensing purposes? So far as I can tell there is no easy way to do this? Kind Regards David