From cyx5 at cdc.gov Tue Nov 2 05:38:12 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 06:38:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! From cyx5 at cdc.gov Tue Nov 2 06:17:57 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:17:57 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:32:32 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:32:32 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 cyx5 at cdc.gov Tue Nov 2 06:37:16 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:37:16 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:45:07 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:45:07 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yes the dba-vb forum is usually less frequented than the AccessD forum. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:37 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 martyconnelly at shaw.ca Tue Nov 2 09:36:15 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Nov 2004 07:36:15 -0800 Subject: [dba-VB] VB.Net Set Start Up Form References: Message-ID: <4187A96F.90703@shaw.ca> I started with ASP.Net and WebForms rather than VB.Net and WinForms using WebMatrix Wizard http://www.asp.net/Default.aspx?tabindex=0&tabid=1 For vb.net samples you could start here. There are about a 100 samples vb.net and winforms http://www.gotdotnet.com/community/usersamples/ Nicholson, Karen wrote: >Yikes. Moving to VB.net hurts. How do I set a form, for instance >frmInitialReview, to be the start page when the project is opened? >Secondly, I have been googling like crazy looking for good examples, >something like Northwind only in VB.net to get started. Aughghghg! >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at gmail.com Tue Nov 2 10:05:41 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 2 Nov 2004 11:05:41 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: References: Message-ID: On Tue, 2 Nov 2004 07:37:16 -0500, Nicholson, Karen wrote: > There is life on this thread. I looked at the archives and it looks > like only one or two messages get posted a month. Are the archives > broke? No matter where I go, the Database Advisors list is by far the > best list - AccessD members are great. Yee haa. Yep. This is pretty quite. The problem is that instead of using this list (or any of the other specific lists), folks post their questions to AccessD or DBA-OT . -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mikedorism at adelphia.net Wed Nov 3 13:48:12 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 3 Nov 2004 14:48:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: Message-ID: <000001c4c1de$0dc325d0$0b08a845@hargrove.internal> I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 cyx5 at cdc.gov Wed Nov 3 14:01:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 3 Nov 2004 15:01:07 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Great. I downloaded a slew of examples from the Microsoft Site, disjointed as they may be. I am making progress. Wish there was a Northwind VisualStudio VB.net version out there - that is how I usually jump to new platforms. Good 'ole Northwind. I have this great contract right now, working for Xerox for the CDC and cleaning up some horrible databases while also getting up to snuff on VB.net and I have another year on this contract to do so. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 03, 2004 2:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Mon Nov 15 12:56:05 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 13:56:05 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: I read that if a database has an SQL backend, then use the SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE and could pass parameters easily, for instance: Select au_id, au_lname, state from authors where (state = ?) If I am using the SQLDataAdapter this bombs. What is the SQL equivalent, or is this a bad idea to even use the SQL adapter? Learning is such a bear. From chizotz at mchsi.com Mon Nov 15 13:19:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:19:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041919.14079.178c@mchsi.com> You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From cyx5 at cdc.gov Mon Nov 15 13:24:17 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:24:17 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 ebarro at afsweb.com Mon Nov 15 13:39:58 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 11:39:58 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 13:56:23 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:56:23 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041956.21586.5ed7@mchsi.com> It would be the .Text property, not .Value, but yes, that's the general idea :) Also, that will work only if the data adapter is on the form with the unbound textbox. I frequently work in an MDI environment where I have a MDI parent main form where the dates and other parameters are entered, but the data adapter that must be filled is on an MDI child form. In that case, I use something like this to get to the entered parameter values: formMain mainForm = null; mainForm = (formMain)this.MdiParent; DateTime curStartDate = Convert.ToDateTime(mainForm.textBoxStartDate.Text); DateTime curEndDate = Convert.ToDateTime(mainForm.textBoxEndDate.Text); This creates a new instance of formMain and then sets it equal to the executing instance of the form, which opens up the text boxes -- which have their modifiers marked Public -- to be accessed by the child form. HTH, Ron > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? From cyx5 at cdc.gov Mon Nov 15 13:57:19 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:57:19 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Mon Nov 15 14:00:45 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 12:00:45 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: That's the recommendation. I use OLEDB adapter commands for accessing MDBs and SQL adapter commands for accessing SQL dbs. I believe it has to do with how the drivers are optimized for each back end. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, November 15, 2004 11:57 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 14:28:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 20:28:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520042028.28977.3c56@mchsi.com> Also, here is a site that I have found to be a fantastic resource. It's got many examples for both VB.NET and C#. And don't let the name fool you, while the main focus is windows forms, there are other goodies there too. http://www.syncfusion.com/FAQ/WinForms/ Ron > Got it. But, question, still. Is it true that if you have an SQL > backend that it is better to use the SQL Adapters instead of the OLE > adapters? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Monday, November 15, 2004 2:40 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > me.startdate.text > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, > Karen > Sent: Monday, November 15, 2004 11:24 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > chizotz at mchsi.com > Sent: Monday, November 15, 2004 2:20 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > You can parameters to the data adapter select command. Here's a C# > example, > which you should be able to adapt to VB pretty easily: > > dsADARpt1.Clear(); > daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; > daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; > daADARpt.Fill(dsADARpt1); > > The SQL in the data adapter uses the parameters basically exactly as you > are > used to, for example the SQL in the above referenced data adapter > includes a > line: > > WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= > @endDate) > > I hope that helps. > > Ron > > > I read that if a database has an SQL backend, then use the > > SQLDataAdapter in VB.net. OK... So, up until this point I have used > OLE > > and could pass parameters easily, for instance: > > > > Select au_id, au_lname, state from authors where (state = ?) > > > > If I am using the SQLDataAdapter this bombs. What is the SQL > > equivalent, or is this a bad idea to even use the SQL adapter? > Learning > > is such a bear. > > _______________________________________________ > > 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 > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > > > > > ---------------------------------------------------------------- > The information contained in this e-mail message and any file, document, > previous e-mail message and/or attachment transmitted herewith is > confidential and may be legally privileged. It is intended solely for > the private use of the addressee and must not be disclosed to or used by > anyone other than the addressee. If you receive this transmission by > error, please immediately notify the sender by reply e-mail and destroy > the original transmission and its attachments without reading or saving > it in any manner. If you are not the intended recipient, or a person > responsible for delivering it to the intended recipient, you are hereby > notified that any disclosure, copying, distribution or use of any of the > information contained in or attached to this transmission is STRICTLY > PROHIBITED. E-mail transmission cannot be guaranteed to be secure or > error free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a result of > email transmission. Users and employees of the e-mail system are > expressly required not to make defamatory statements and not to infringe > or authorize any infringement of copyright or any other legal right by > email communications. Any such communication is contrary to company > policy. The company will not accept any liability in respect of such > communication. > > > _______________________________________________ > 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 cyx5 at cdc.gov Tue Nov 16 10:56:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 11:56:07 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! From ebarro at afsweb.com Tue Nov 16 11:18:49 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 09:18:49 -0800 Subject: [dba-VB] Text Box - Date Format In-Reply-To: Message-ID: I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Tue Nov 16 11:26:06 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 12:26:06 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: Yep. I will get there. So, I plop a text box on a vb.net form. Is there no place on the properties for that text box to set it to the date format? (Access Withdrawal...) Where would I put this code mydate.toshortdatestring? It does not look like it goes in the sql code that extracts the fields to form the dataset. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, November 16, 2004 12:19 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Text Box - Date Format I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 15:42:31 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 15:42:31 -0600 Subject: [dba-VB] VB6 Shell Message-ID: Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com From accessd at shaw.ca Tue Nov 16 15:58:23 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 13:58:23 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Hi Bill: Why not try something like this: Call ShellExecute(0&, "Open", "explorer.exe", "/e,/n,c:\", 0&, SW_SHOWNORMAL) HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Tue Nov 16 15:57:31 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 13:57:31 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: In your code %SystemRoot% is being interpreted as a string and not being evaluated before passing to the shell...so it is trying to execute %SystemRoot%\explorer.exe which eventually fails. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From ebarro at afsweb.com Tue Nov 16 16:00:36 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 14:00:36 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From michael at ddisolutions.com.au Tue Nov 16 16:06:08 2004 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 17 Nov 2004 09:06:08 +1100 Subject: [dba-VB] VB6 Shell Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0107C5C2@ddi-01.DDI.local> Looks like VB doesn't know what to do with the environment variable. You will need to explicitly state the full path. Google ShellExecute and you will be much happier... cheers Michael M Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 16:11:09 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 16:11:09 -0600 Subject: [dba-VB] VB6 Shell Message-ID: That did it! Thanks so much! Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: 16 November 2004 4:01 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB6 Shell Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Nov 17 09:01:21 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 17 Nov 2004 10:01:21 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. From mikedorism at adelphia.net Wed Nov 17 12:05:33 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 17 Nov 2004 13:05:33 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <000001c4ccd0$08a37350$0b08a845@hargrove.internal> Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Wed Nov 17 11:04:34 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 17 Nov 2004 09:04:34 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: Karen, This should work... MyFormControl.Text = FormatDateTime(MyRecordSetField, DateFormat.ShortDate) Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 7:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Thu Nov 18 05:37:36 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:37:36 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 10:32:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 11:32:54 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Nov 18 10:41:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 11:41:04 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: 0-7897-2572-x -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 accessd at shaw.ca Thu Nov 18 11:49:25 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 09:49:25 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> Message-ID: Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 12:14:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 13:14:08 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003f01c4cd9a$656e1f70$e8dafea9@ColbyM6805> LOL. No, I was asking what the number for the book mentioned was. I tried to look it up by the title and didn't get a hit. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, November 18, 2004 12:49 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Nov 18 14:32:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 12:32:16 -0800 Subject: [dba-VB] VB6 Shell References: Message-ID: <419D06D0.8040908@shaw.ca> How about using the shell.application object, I only came across these methods recently See url below for more examples under methods vbscript samples 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shell/browseforfolder.asp ' Some caveats you may get odd results if opening to printers or network neighbourhoods 'trying to pick an individual file on winxp using objShell.BrowseForFolder method will gpf , known bug 'but works under win 2000 Here are some examples Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\ Dim objShell as object Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\") Set objShell = Nothing End Function Sub testshell() 'open various control panel windows Dim shl As Object Set shl = CreateObject("Shell.Application") 'shl.ControlPanelItem CStr("desk.cpl") 'opens Analog clock and date selection panel shl.ControlPanelItem CStr("TIMEDATE.CPL") 'shl.ControlPanelItem CStr("INETCPL.CPL") '--CPL files and their respective Control Panel windows: '--DESK.CPL - Display Properties '--INETCPL.CPL - Internet Properties '--MMSYS.CPL - Multimedia Properties '--MODEM.CPL - Modems Properties '--NETCPL.CPL - Network '--PASSWORD.CPL - Passwords '--POWERCFG.CPL - Power Management Properties '--APPWIZ.CPL - Add/Remove Programs '--MAIN.CPL - Main - defaults to mouse properties. '--SYSDM.CPL - System Properties '--TELEPHON.CPL - Telephony '--TIMEDATE.CPL - TimeDate '--STICPL.CPL - Scanners and Cameras '-- Set shl = Nothing End Sub Function fnShellFindFilesVB() 'opens find or search file window Dim objShell Set objShell = CreateObject("Shell.Application") objShell.FindFiles Set objShell = Nothing End Function Function fnShellOpenVB() Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Open ("C:\") Set objShell = Nothing End Function Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\temp Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\temp") Set objShell = Nothing End Function Function fnShellExploreVB() 'opens win explorer at os Windows directory Dim objShell Dim ssfWINDOWS ssfWINDOWS = 36 Set objShell = CreateObject("Shell.Application") objShell.Explore (ssfWINDOWS) Set objShell = Nothing End Function Function fnFolderTitleVB() 'browse for folder then display folder title chosen Dim objShell Set objShell = CreateObject("Shell.Application") If (Not objShell Is Nothing) Then Dim objFolder Dim ssfPROGRAMS ssfPROGRAMS = 2 Set objFolder = objShell.NameSpace(ssfPROGRAMS) If (Not objFolder Is Nothing) Then MsgBox objFolder.Title End If Set objFolder = Nothing End If Set objShell = Nothing End Function Function fnFolderObjectItemsVB() 'count or display items in a folder Dim objShell Dim objFolder 'Dim objFolderItems Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace("C:\Temp2") If (Not objFolder Is Nothing) Then Dim objFolderItems Set objFolderItems = objFolder.Items 'you can list all items in folder here If (Not objFolderItems Is Nothing) Then MsgBox objFolderItems.Count End If Set objFolderItems = Nothing End If Set objFolder = Nothing Set objShell = Nothing End Function bkollodge at parkindustries.com wrote: >Do any VB6 programmers know how to use the shell to run a systems app >such as explorer? The "target" was copied from my desktop shortcut but >doesn't work - I must be missing some syntax??? > >Private Sub Command1_Click() > RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) >End Sub > >Thanks, >Bill Kollodge >Electrical Engineering / CNC Products >Park Industries >St. Cloud, MN 56303 >bkollodge at parkindustries.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Tue Nov 2 05:38:12 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 06:38:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! From cyx5 at cdc.gov Tue Nov 2 06:17:57 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:17:57 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:32:32 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:32:32 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 cyx5 at cdc.gov Tue Nov 2 06:37:16 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:37:16 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:45:07 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:45:07 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yes the dba-vb forum is usually less frequented than the AccessD forum. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:37 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 martyconnelly at shaw.ca Tue Nov 2 09:36:15 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Nov 2004 07:36:15 -0800 Subject: [dba-VB] VB.Net Set Start Up Form References: Message-ID: <4187A96F.90703@shaw.ca> I started with ASP.Net and WebForms rather than VB.Net and WinForms using WebMatrix Wizard http://www.asp.net/Default.aspx?tabindex=0&tabid=1 For vb.net samples you could start here. There are about a 100 samples vb.net and winforms http://www.gotdotnet.com/community/usersamples/ Nicholson, Karen wrote: >Yikes. Moving to VB.net hurts. How do I set a form, for instance >frmInitialReview, to be the start page when the project is opened? >Secondly, I have been googling like crazy looking for good examples, >something like Northwind only in VB.net to get started. Aughghghg! >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at gmail.com Tue Nov 2 10:05:41 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 2 Nov 2004 11:05:41 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: References: Message-ID: On Tue, 2 Nov 2004 07:37:16 -0500, Nicholson, Karen wrote: > There is life on this thread. I looked at the archives and it looks > like only one or two messages get posted a month. Are the archives > broke? No matter where I go, the Database Advisors list is by far the > best list - AccessD members are great. Yee haa. Yep. This is pretty quite. The problem is that instead of using this list (or any of the other specific lists), folks post their questions to AccessD or DBA-OT . -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mikedorism at adelphia.net Wed Nov 3 13:48:12 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 3 Nov 2004 14:48:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: Message-ID: <000001c4c1de$0dc325d0$0b08a845@hargrove.internal> I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 cyx5 at cdc.gov Wed Nov 3 14:01:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 3 Nov 2004 15:01:07 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Great. I downloaded a slew of examples from the Microsoft Site, disjointed as they may be. I am making progress. Wish there was a Northwind VisualStudio VB.net version out there - that is how I usually jump to new platforms. Good 'ole Northwind. I have this great contract right now, working for Xerox for the CDC and cleaning up some horrible databases while also getting up to snuff on VB.net and I have another year on this contract to do so. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 03, 2004 2:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Mon Nov 15 12:56:05 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 13:56:05 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: I read that if a database has an SQL backend, then use the SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE and could pass parameters easily, for instance: Select au_id, au_lname, state from authors where (state = ?) If I am using the SQLDataAdapter this bombs. What is the SQL equivalent, or is this a bad idea to even use the SQL adapter? Learning is such a bear. From chizotz at mchsi.com Mon Nov 15 13:19:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:19:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041919.14079.178c@mchsi.com> You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From cyx5 at cdc.gov Mon Nov 15 13:24:17 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:24:17 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 ebarro at afsweb.com Mon Nov 15 13:39:58 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 11:39:58 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 13:56:23 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:56:23 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041956.21586.5ed7@mchsi.com> It would be the .Text property, not .Value, but yes, that's the general idea :) Also, that will work only if the data adapter is on the form with the unbound textbox. I frequently work in an MDI environment where I have a MDI parent main form where the dates and other parameters are entered, but the data adapter that must be filled is on an MDI child form. In that case, I use something like this to get to the entered parameter values: formMain mainForm = null; mainForm = (formMain)this.MdiParent; DateTime curStartDate = Convert.ToDateTime(mainForm.textBoxStartDate.Text); DateTime curEndDate = Convert.ToDateTime(mainForm.textBoxEndDate.Text); This creates a new instance of formMain and then sets it equal to the executing instance of the form, which opens up the text boxes -- which have their modifiers marked Public -- to be accessed by the child form. HTH, Ron > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? From cyx5 at cdc.gov Mon Nov 15 13:57:19 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:57:19 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Mon Nov 15 14:00:45 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 12:00:45 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: That's the recommendation. I use OLEDB adapter commands for accessing MDBs and SQL adapter commands for accessing SQL dbs. I believe it has to do with how the drivers are optimized for each back end. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, November 15, 2004 11:57 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 14:28:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 20:28:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520042028.28977.3c56@mchsi.com> Also, here is a site that I have found to be a fantastic resource. It's got many examples for both VB.NET and C#. And don't let the name fool you, while the main focus is windows forms, there are other goodies there too. http://www.syncfusion.com/FAQ/WinForms/ Ron > Got it. But, question, still. Is it true that if you have an SQL > backend that it is better to use the SQL Adapters instead of the OLE > adapters? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Monday, November 15, 2004 2:40 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > me.startdate.text > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, > Karen > Sent: Monday, November 15, 2004 11:24 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > chizotz at mchsi.com > Sent: Monday, November 15, 2004 2:20 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > You can parameters to the data adapter select command. Here's a C# > example, > which you should be able to adapt to VB pretty easily: > > dsADARpt1.Clear(); > daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; > daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; > daADARpt.Fill(dsADARpt1); > > The SQL in the data adapter uses the parameters basically exactly as you > are > used to, for example the SQL in the above referenced data adapter > includes a > line: > > WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= > @endDate) > > I hope that helps. > > Ron > > > I read that if a database has an SQL backend, then use the > > SQLDataAdapter in VB.net. OK... So, up until this point I have used > OLE > > and could pass parameters easily, for instance: > > > > Select au_id, au_lname, state from authors where (state = ?) > > > > If I am using the SQLDataAdapter this bombs. What is the SQL > > equivalent, or is this a bad idea to even use the SQL adapter? > Learning > > is such a bear. > > _______________________________________________ > > 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 > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > > > > > ---------------------------------------------------------------- > The information contained in this e-mail message and any file, document, > previous e-mail message and/or attachment transmitted herewith is > confidential and may be legally privileged. It is intended solely for > the private use of the addressee and must not be disclosed to or used by > anyone other than the addressee. If you receive this transmission by > error, please immediately notify the sender by reply e-mail and destroy > the original transmission and its attachments without reading or saving > it in any manner. If you are not the intended recipient, or a person > responsible for delivering it to the intended recipient, you are hereby > notified that any disclosure, copying, distribution or use of any of the > information contained in or attached to this transmission is STRICTLY > PROHIBITED. E-mail transmission cannot be guaranteed to be secure or > error free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a result of > email transmission. Users and employees of the e-mail system are > expressly required not to make defamatory statements and not to infringe > or authorize any infringement of copyright or any other legal right by > email communications. Any such communication is contrary to company > policy. The company will not accept any liability in respect of such > communication. > > > _______________________________________________ > 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 cyx5 at cdc.gov Tue Nov 16 10:56:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 11:56:07 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! From ebarro at afsweb.com Tue Nov 16 11:18:49 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 09:18:49 -0800 Subject: [dba-VB] Text Box - Date Format In-Reply-To: Message-ID: I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Tue Nov 16 11:26:06 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 12:26:06 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: Yep. I will get there. So, I plop a text box on a vb.net form. Is there no place on the properties for that text box to set it to the date format? (Access Withdrawal...) Where would I put this code mydate.toshortdatestring? It does not look like it goes in the sql code that extracts the fields to form the dataset. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, November 16, 2004 12:19 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Text Box - Date Format I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 15:42:31 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 15:42:31 -0600 Subject: [dba-VB] VB6 Shell Message-ID: Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com From accessd at shaw.ca Tue Nov 16 15:58:23 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 13:58:23 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Hi Bill: Why not try something like this: Call ShellExecute(0&, "Open", "explorer.exe", "/e,/n,c:\", 0&, SW_SHOWNORMAL) HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Tue Nov 16 15:57:31 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 13:57:31 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: In your code %SystemRoot% is being interpreted as a string and not being evaluated before passing to the shell...so it is trying to execute %SystemRoot%\explorer.exe which eventually fails. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From ebarro at afsweb.com Tue Nov 16 16:00:36 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 14:00:36 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From michael at ddisolutions.com.au Tue Nov 16 16:06:08 2004 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 17 Nov 2004 09:06:08 +1100 Subject: [dba-VB] VB6 Shell Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0107C5C2@ddi-01.DDI.local> Looks like VB doesn't know what to do with the environment variable. You will need to explicitly state the full path. Google ShellExecute and you will be much happier... cheers Michael M Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 16:11:09 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 16:11:09 -0600 Subject: [dba-VB] VB6 Shell Message-ID: That did it! Thanks so much! Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: 16 November 2004 4:01 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB6 Shell Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Nov 17 09:01:21 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 17 Nov 2004 10:01:21 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. From mikedorism at adelphia.net Wed Nov 17 12:05:33 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 17 Nov 2004 13:05:33 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <000001c4ccd0$08a37350$0b08a845@hargrove.internal> Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Wed Nov 17 11:04:34 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 17 Nov 2004 09:04:34 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: Karen, This should work... MyFormControl.Text = FormatDateTime(MyRecordSetField, DateFormat.ShortDate) Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 7:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Thu Nov 18 05:37:36 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:37:36 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 10:32:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 11:32:54 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Nov 18 10:41:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 11:41:04 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: 0-7897-2572-x -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 accessd at shaw.ca Thu Nov 18 11:49:25 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 09:49:25 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> Message-ID: Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 12:14:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 13:14:08 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003f01c4cd9a$656e1f70$e8dafea9@ColbyM6805> LOL. No, I was asking what the number for the book mentioned was. I tried to look it up by the title and didn't get a hit. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, November 18, 2004 12:49 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Nov 18 14:32:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 12:32:16 -0800 Subject: [dba-VB] VB6 Shell References: Message-ID: <419D06D0.8040908@shaw.ca> How about using the shell.application object, I only came across these methods recently See url below for more examples under methods vbscript samples 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shell/browseforfolder.asp ' Some caveats you may get odd results if opening to printers or network neighbourhoods 'trying to pick an individual file on winxp using objShell.BrowseForFolder method will gpf , known bug 'but works under win 2000 Here are some examples Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\ Dim objShell as object Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\") Set objShell = Nothing End Function Sub testshell() 'open various control panel windows Dim shl As Object Set shl = CreateObject("Shell.Application") 'shl.ControlPanelItem CStr("desk.cpl") 'opens Analog clock and date selection panel shl.ControlPanelItem CStr("TIMEDATE.CPL") 'shl.ControlPanelItem CStr("INETCPL.CPL") '--CPL files and their respective Control Panel windows: '--DESK.CPL - Display Properties '--INETCPL.CPL - Internet Properties '--MMSYS.CPL - Multimedia Properties '--MODEM.CPL - Modems Properties '--NETCPL.CPL - Network '--PASSWORD.CPL - Passwords '--POWERCFG.CPL - Power Management Properties '--APPWIZ.CPL - Add/Remove Programs '--MAIN.CPL - Main - defaults to mouse properties. '--SYSDM.CPL - System Properties '--TELEPHON.CPL - Telephony '--TIMEDATE.CPL - TimeDate '--STICPL.CPL - Scanners and Cameras '-- Set shl = Nothing End Sub Function fnShellFindFilesVB() 'opens find or search file window Dim objShell Set objShell = CreateObject("Shell.Application") objShell.FindFiles Set objShell = Nothing End Function Function fnShellOpenVB() Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Open ("C:\") Set objShell = Nothing End Function Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\temp Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\temp") Set objShell = Nothing End Function Function fnShellExploreVB() 'opens win explorer at os Windows directory Dim objShell Dim ssfWINDOWS ssfWINDOWS = 36 Set objShell = CreateObject("Shell.Application") objShell.Explore (ssfWINDOWS) Set objShell = Nothing End Function Function fnFolderTitleVB() 'browse for folder then display folder title chosen Dim objShell Set objShell = CreateObject("Shell.Application") If (Not objShell Is Nothing) Then Dim objFolder Dim ssfPROGRAMS ssfPROGRAMS = 2 Set objFolder = objShell.NameSpace(ssfPROGRAMS) If (Not objFolder Is Nothing) Then MsgBox objFolder.Title End If Set objFolder = Nothing End If Set objShell = Nothing End Function Function fnFolderObjectItemsVB() 'count or display items in a folder Dim objShell Dim objFolder 'Dim objFolderItems Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace("C:\Temp2") If (Not objFolder Is Nothing) Then Dim objFolderItems Set objFolderItems = objFolder.Items 'you can list all items in folder here If (Not objFolderItems Is Nothing) Then MsgBox objFolderItems.Count End If Set objFolderItems = Nothing End If Set objFolder = Nothing Set objShell = Nothing End Function bkollodge at parkindustries.com wrote: >Do any VB6 programmers know how to use the shell to run a systems app >such as explorer? The "target" was copied from my desktop shortcut but >doesn't work - I must be missing some syntax??? > >Private Sub Command1_Click() > RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) >End Sub > >Thanks, >Bill Kollodge >Electrical Engineering / CNC Products >Park Industries >St. Cloud, MN 56303 >bkollodge at parkindustries.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Tue Nov 2 05:38:12 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 06:38:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! From cyx5 at cdc.gov Tue Nov 2 06:17:57 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:17:57 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:32:32 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:32:32 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 cyx5 at cdc.gov Tue Nov 2 06:37:16 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:37:16 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:45:07 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:45:07 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yes the dba-vb forum is usually less frequented than the AccessD forum. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:37 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 martyconnelly at shaw.ca Tue Nov 2 09:36:15 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Nov 2004 07:36:15 -0800 Subject: [dba-VB] VB.Net Set Start Up Form References: Message-ID: <4187A96F.90703@shaw.ca> I started with ASP.Net and WebForms rather than VB.Net and WinForms using WebMatrix Wizard http://www.asp.net/Default.aspx?tabindex=0&tabid=1 For vb.net samples you could start here. There are about a 100 samples vb.net and winforms http://www.gotdotnet.com/community/usersamples/ Nicholson, Karen wrote: >Yikes. Moving to VB.net hurts. How do I set a form, for instance >frmInitialReview, to be the start page when the project is opened? >Secondly, I have been googling like crazy looking for good examples, >something like Northwind only in VB.net to get started. Aughghghg! >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at gmail.com Tue Nov 2 10:05:41 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 2 Nov 2004 11:05:41 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: References: Message-ID: On Tue, 2 Nov 2004 07:37:16 -0500, Nicholson, Karen wrote: > There is life on this thread. I looked at the archives and it looks > like only one or two messages get posted a month. Are the archives > broke? No matter where I go, the Database Advisors list is by far the > best list - AccessD members are great. Yee haa. Yep. This is pretty quite. The problem is that instead of using this list (or any of the other specific lists), folks post their questions to AccessD or DBA-OT . -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mikedorism at adelphia.net Wed Nov 3 13:48:12 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 3 Nov 2004 14:48:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: Message-ID: <000001c4c1de$0dc325d0$0b08a845@hargrove.internal> I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 cyx5 at cdc.gov Wed Nov 3 14:01:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 3 Nov 2004 15:01:07 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Great. I downloaded a slew of examples from the Microsoft Site, disjointed as they may be. I am making progress. Wish there was a Northwind VisualStudio VB.net version out there - that is how I usually jump to new platforms. Good 'ole Northwind. I have this great contract right now, working for Xerox for the CDC and cleaning up some horrible databases while also getting up to snuff on VB.net and I have another year on this contract to do so. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 03, 2004 2:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Mon Nov 15 12:56:05 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 13:56:05 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: I read that if a database has an SQL backend, then use the SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE and could pass parameters easily, for instance: Select au_id, au_lname, state from authors where (state = ?) If I am using the SQLDataAdapter this bombs. What is the SQL equivalent, or is this a bad idea to even use the SQL adapter? Learning is such a bear. From chizotz at mchsi.com Mon Nov 15 13:19:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:19:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041919.14079.178c@mchsi.com> You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From cyx5 at cdc.gov Mon Nov 15 13:24:17 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:24:17 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 ebarro at afsweb.com Mon Nov 15 13:39:58 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 11:39:58 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 13:56:23 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:56:23 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041956.21586.5ed7@mchsi.com> It would be the .Text property, not .Value, but yes, that's the general idea :) Also, that will work only if the data adapter is on the form with the unbound textbox. I frequently work in an MDI environment where I have a MDI parent main form where the dates and other parameters are entered, but the data adapter that must be filled is on an MDI child form. In that case, I use something like this to get to the entered parameter values: formMain mainForm = null; mainForm = (formMain)this.MdiParent; DateTime curStartDate = Convert.ToDateTime(mainForm.textBoxStartDate.Text); DateTime curEndDate = Convert.ToDateTime(mainForm.textBoxEndDate.Text); This creates a new instance of formMain and then sets it equal to the executing instance of the form, which opens up the text boxes -- which have their modifiers marked Public -- to be accessed by the child form. HTH, Ron > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? From cyx5 at cdc.gov Mon Nov 15 13:57:19 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:57:19 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Mon Nov 15 14:00:45 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 12:00:45 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: That's the recommendation. I use OLEDB adapter commands for accessing MDBs and SQL adapter commands for accessing SQL dbs. I believe it has to do with how the drivers are optimized for each back end. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, November 15, 2004 11:57 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 14:28:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 20:28:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520042028.28977.3c56@mchsi.com> Also, here is a site that I have found to be a fantastic resource. It's got many examples for both VB.NET and C#. And don't let the name fool you, while the main focus is windows forms, there are other goodies there too. http://www.syncfusion.com/FAQ/WinForms/ Ron > Got it. But, question, still. Is it true that if you have an SQL > backend that it is better to use the SQL Adapters instead of the OLE > adapters? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Monday, November 15, 2004 2:40 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > me.startdate.text > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, > Karen > Sent: Monday, November 15, 2004 11:24 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > chizotz at mchsi.com > Sent: Monday, November 15, 2004 2:20 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > You can parameters to the data adapter select command. Here's a C# > example, > which you should be able to adapt to VB pretty easily: > > dsADARpt1.Clear(); > daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; > daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; > daADARpt.Fill(dsADARpt1); > > The SQL in the data adapter uses the parameters basically exactly as you > are > used to, for example the SQL in the above referenced data adapter > includes a > line: > > WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= > @endDate) > > I hope that helps. > > Ron > > > I read that if a database has an SQL backend, then use the > > SQLDataAdapter in VB.net. OK... So, up until this point I have used > OLE > > and could pass parameters easily, for instance: > > > > Select au_id, au_lname, state from authors where (state = ?) > > > > If I am using the SQLDataAdapter this bombs. What is the SQL > > equivalent, or is this a bad idea to even use the SQL adapter? > Learning > > is such a bear. > > _______________________________________________ > > 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 > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > > > > > ---------------------------------------------------------------- > The information contained in this e-mail message and any file, document, > previous e-mail message and/or attachment transmitted herewith is > confidential and may be legally privileged. It is intended solely for > the private use of the addressee and must not be disclosed to or used by > anyone other than the addressee. If you receive this transmission by > error, please immediately notify the sender by reply e-mail and destroy > the original transmission and its attachments without reading or saving > it in any manner. If you are not the intended recipient, or a person > responsible for delivering it to the intended recipient, you are hereby > notified that any disclosure, copying, distribution or use of any of the > information contained in or attached to this transmission is STRICTLY > PROHIBITED. E-mail transmission cannot be guaranteed to be secure or > error free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a result of > email transmission. Users and employees of the e-mail system are > expressly required not to make defamatory statements and not to infringe > or authorize any infringement of copyright or any other legal right by > email communications. Any such communication is contrary to company > policy. The company will not accept any liability in respect of such > communication. > > > _______________________________________________ > 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 cyx5 at cdc.gov Tue Nov 16 10:56:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 11:56:07 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! From ebarro at afsweb.com Tue Nov 16 11:18:49 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 09:18:49 -0800 Subject: [dba-VB] Text Box - Date Format In-Reply-To: Message-ID: I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Tue Nov 16 11:26:06 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 12:26:06 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: Yep. I will get there. So, I plop a text box on a vb.net form. Is there no place on the properties for that text box to set it to the date format? (Access Withdrawal...) Where would I put this code mydate.toshortdatestring? It does not look like it goes in the sql code that extracts the fields to form the dataset. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, November 16, 2004 12:19 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Text Box - Date Format I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 15:42:31 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 15:42:31 -0600 Subject: [dba-VB] VB6 Shell Message-ID: Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com From accessd at shaw.ca Tue Nov 16 15:58:23 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 13:58:23 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Hi Bill: Why not try something like this: Call ShellExecute(0&, "Open", "explorer.exe", "/e,/n,c:\", 0&, SW_SHOWNORMAL) HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Tue Nov 16 15:57:31 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 13:57:31 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: In your code %SystemRoot% is being interpreted as a string and not being evaluated before passing to the shell...so it is trying to execute %SystemRoot%\explorer.exe which eventually fails. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From ebarro at afsweb.com Tue Nov 16 16:00:36 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 14:00:36 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From michael at ddisolutions.com.au Tue Nov 16 16:06:08 2004 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 17 Nov 2004 09:06:08 +1100 Subject: [dba-VB] VB6 Shell Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0107C5C2@ddi-01.DDI.local> Looks like VB doesn't know what to do with the environment variable. You will need to explicitly state the full path. Google ShellExecute and you will be much happier... cheers Michael M Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 16:11:09 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 16:11:09 -0600 Subject: [dba-VB] VB6 Shell Message-ID: That did it! Thanks so much! Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: 16 November 2004 4:01 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB6 Shell Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Nov 17 09:01:21 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 17 Nov 2004 10:01:21 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. From mikedorism at adelphia.net Wed Nov 17 12:05:33 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 17 Nov 2004 13:05:33 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <000001c4ccd0$08a37350$0b08a845@hargrove.internal> Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Wed Nov 17 11:04:34 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 17 Nov 2004 09:04:34 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: Karen, This should work... MyFormControl.Text = FormatDateTime(MyRecordSetField, DateFormat.ShortDate) Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 7:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Thu Nov 18 05:37:36 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:37:36 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 10:32:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 11:32:54 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Nov 18 10:41:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 11:41:04 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: 0-7897-2572-x -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 accessd at shaw.ca Thu Nov 18 11:49:25 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 09:49:25 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> Message-ID: Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 12:14:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 13:14:08 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003f01c4cd9a$656e1f70$e8dafea9@ColbyM6805> LOL. No, I was asking what the number for the book mentioned was. I tried to look it up by the title and didn't get a hit. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, November 18, 2004 12:49 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Nov 18 14:32:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 12:32:16 -0800 Subject: [dba-VB] VB6 Shell References: Message-ID: <419D06D0.8040908@shaw.ca> How about using the shell.application object, I only came across these methods recently See url below for more examples under methods vbscript samples 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shell/browseforfolder.asp ' Some caveats you may get odd results if opening to printers or network neighbourhoods 'trying to pick an individual file on winxp using objShell.BrowseForFolder method will gpf , known bug 'but works under win 2000 Here are some examples Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\ Dim objShell as object Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\") Set objShell = Nothing End Function Sub testshell() 'open various control panel windows Dim shl As Object Set shl = CreateObject("Shell.Application") 'shl.ControlPanelItem CStr("desk.cpl") 'opens Analog clock and date selection panel shl.ControlPanelItem CStr("TIMEDATE.CPL") 'shl.ControlPanelItem CStr("INETCPL.CPL") '--CPL files and their respective Control Panel windows: '--DESK.CPL - Display Properties '--INETCPL.CPL - Internet Properties '--MMSYS.CPL - Multimedia Properties '--MODEM.CPL - Modems Properties '--NETCPL.CPL - Network '--PASSWORD.CPL - Passwords '--POWERCFG.CPL - Power Management Properties '--APPWIZ.CPL - Add/Remove Programs '--MAIN.CPL - Main - defaults to mouse properties. '--SYSDM.CPL - System Properties '--TELEPHON.CPL - Telephony '--TIMEDATE.CPL - TimeDate '--STICPL.CPL - Scanners and Cameras '-- Set shl = Nothing End Sub Function fnShellFindFilesVB() 'opens find or search file window Dim objShell Set objShell = CreateObject("Shell.Application") objShell.FindFiles Set objShell = Nothing End Function Function fnShellOpenVB() Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Open ("C:\") Set objShell = Nothing End Function Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\temp Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\temp") Set objShell = Nothing End Function Function fnShellExploreVB() 'opens win explorer at os Windows directory Dim objShell Dim ssfWINDOWS ssfWINDOWS = 36 Set objShell = CreateObject("Shell.Application") objShell.Explore (ssfWINDOWS) Set objShell = Nothing End Function Function fnFolderTitleVB() 'browse for folder then display folder title chosen Dim objShell Set objShell = CreateObject("Shell.Application") If (Not objShell Is Nothing) Then Dim objFolder Dim ssfPROGRAMS ssfPROGRAMS = 2 Set objFolder = objShell.NameSpace(ssfPROGRAMS) If (Not objFolder Is Nothing) Then MsgBox objFolder.Title End If Set objFolder = Nothing End If Set objShell = Nothing End Function Function fnFolderObjectItemsVB() 'count or display items in a folder Dim objShell Dim objFolder 'Dim objFolderItems Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace("C:\Temp2") If (Not objFolder Is Nothing) Then Dim objFolderItems Set objFolderItems = objFolder.Items 'you can list all items in folder here If (Not objFolderItems Is Nothing) Then MsgBox objFolderItems.Count End If Set objFolderItems = Nothing End If Set objFolder = Nothing Set objShell = Nothing End Function bkollodge at parkindustries.com wrote: >Do any VB6 programmers know how to use the shell to run a systems app >such as explorer? The "target" was copied from my desktop shortcut but >doesn't work - I must be missing some syntax??? > >Private Sub Command1_Click() > RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) >End Sub > >Thanks, >Bill Kollodge >Electrical Engineering / CNC Products >Park Industries >St. Cloud, MN 56303 >bkollodge at parkindustries.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From cyx5 at cdc.gov Tue Nov 2 05:38:12 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 06:38:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! From cyx5 at cdc.gov Tue Nov 2 06:17:57 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:17:57 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:32:32 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:32:32 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 cyx5 at cdc.gov Tue Nov 2 06:37:16 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 2 Nov 2004 07:37:16 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Tue Nov 2 06:45:07 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 2 Nov 2004 12:45:07 -0000 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Yes the dba-vb forum is usually less frequented than the AccessD forum. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:37 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 martyconnelly at shaw.ca Tue Nov 2 09:36:15 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Nov 2004 07:36:15 -0800 Subject: [dba-VB] VB.Net Set Start Up Form References: Message-ID: <4187A96F.90703@shaw.ca> I started with ASP.Net and WebForms rather than VB.Net and WinForms using WebMatrix Wizard http://www.asp.net/Default.aspx?tabindex=0&tabid=1 For vb.net samples you could start here. There are about a 100 samples vb.net and winforms http://www.gotdotnet.com/community/usersamples/ Nicholson, Karen wrote: >Yikes. Moving to VB.net hurts. How do I set a form, for instance >frmInitialReview, to be the start page when the project is opened? >Secondly, I have been googling like crazy looking for good examples, >something like Northwind only in VB.net to get started. Aughghghg! >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada From carbonnb at gmail.com Tue Nov 2 10:05:41 2004 From: carbonnb at gmail.com (Bryan Carbonnell) Date: Tue, 2 Nov 2004 11:05:41 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: References: Message-ID: On Tue, 2 Nov 2004 07:37:16 -0500, Nicholson, Karen wrote: > There is life on this thread. I looked at the archives and it looks > like only one or two messages get posted a month. Are the archives > broke? No matter where I go, the Database Advisors list is by far the > best list - AccessD members are great. Yee haa. Yep. This is pretty quite. The problem is that instead of using this list (or any of the other specific lists), folks post their questions to AccessD or DBA-OT . -- Bryan Carbonnell - carbonnb at gmail.com Life's journey is not to arrive at the grave safely in a well preserved body, but rather to skid in sideways, totally worn out, shouting "What a great ride!" From mikedorism at adelphia.net Wed Nov 3 13:48:12 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 3 Nov 2004 14:48:12 -0500 Subject: [dba-VB] VB.Net Set Start Up Form In-Reply-To: Message-ID: <000001c4c1de$0dc325d0$0b08a845@hargrove.internal> I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 cyx5 at cdc.gov Wed Nov 3 14:01:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 3 Nov 2004 15:01:07 -0500 Subject: [dba-VB] VB.Net Set Start Up Form Message-ID: Great. I downloaded a slew of examples from the Microsoft Site, disjointed as they may be. I am making progress. Wish there was a Northwind VisualStudio VB.net version out there - that is how I usually jump to new platforms. Good 'ole Northwind. I have this great contract right now, working for Xerox for the CDC and cleaning up some horrible databases while also getting up to snuff on VB.net and I have another year on this contract to do so. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 03, 2004 2:48 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I just got back from Advisor .NET Live in Baltimore. I will post links to some really great sites when I dig my notes out. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 7:37 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form There is life on this thread. I looked at the archives and it looks like only one or two messages get posted a month. Are the archives broke? No matter where I go, the Database Advisors list is by far the best list - AccessD members are great. Yee haa. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: Tuesday, November 02, 2004 7:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form Hi Alternatively, project/properties gives you an option to specify a Startup Object (form or Sub) - much like VB6 Richard -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: 02 November 2004 12:18 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Set Start Up Form I found it! In the assembly there is code that VB creates for you. I changed the startup form to my form. In case anyone else is as clueless as me. _ Shared Sub Main() ' Starts the application. Application.Run(New frmMainSwitchboard) End Sub -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Tuesday, November 02, 2004 6:38 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Set Start Up Form Yikes. Moving to VB.net hurts. How do I set a form, for instance frmInitialReview, to be the start page when the project is opened? Secondly, I have been googling like crazy looking for good examples, something like Northwind only in VB.net to get started. Aughghghg! _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Mon Nov 15 12:56:05 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 13:56:05 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: I read that if a database has an SQL backend, then use the SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE and could pass parameters easily, for instance: Select au_id, au_lname, state from authors where (state = ?) If I am using the SQLDataAdapter this bombs. What is the SQL equivalent, or is this a bad idea to even use the SQL adapter? Learning is such a bear. From chizotz at mchsi.com Mon Nov 15 13:19:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:19:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041919.14079.178c@mchsi.com> You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From cyx5 at cdc.gov Mon Nov 15 13:24:17 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:24:17 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 ebarro at afsweb.com Mon Nov 15 13:39:58 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 11:39:58 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 13:56:23 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 19:56:23 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520041956.21586.5ed7@mchsi.com> It would be the .Text property, not .Value, but yes, that's the general idea :) Also, that will work only if the data adapter is on the form with the unbound textbox. I frequently work in an MDI environment where I have a MDI parent main form where the dates and other parameters are entered, but the data adapter that must be filled is on an MDI child form. In that case, I use something like this to get to the entered parameter values: formMain mainForm = null; mainForm = (formMain)this.MdiParent; DateTime curStartDate = Convert.ToDateTime(mainForm.textBoxStartDate.Text); DateTime curEndDate = Convert.ToDateTime(mainForm.textBoxEndDate.Text); This creates a new instance of formMain and then sets it equal to the executing instance of the form, which opens up the text boxes -- which have their modifiers marked Public -- to be accessed by the child form. HTH, Ron > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? From cyx5 at cdc.gov Mon Nov 15 13:57:19 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Mon, 15 Nov 2004 14:57:19 -0500 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Mon Nov 15 14:00:45 2004 From: ebarro at afsweb.com (Eric Barro) Date: Mon, 15 Nov 2004 12:00:45 -0800 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter In-Reply-To: Message-ID: That's the recommendation. I use OLEDB adapter commands for accessing MDBs and SQL adapter commands for accessing SQL dbs. I believe it has to do with how the drivers are optimized for each back end. -----Original Message----- From: Nicholson, Karen [mailto:cyx5 at cdc.gov] Sent: Monday, November 15, 2004 11:57 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter Got it. But, question, still. Is it true that if you have an SQL backend that it is better to use the SQL Adapters instead of the OLE adapters? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, November 15, 2004 2:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter me.startdate.text -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Monday, November 15, 2004 11:24 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter So if my @startdate is an unbound field on a form, then @startdate = me.startdate.value? -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of chizotz at mchsi.com Sent: Monday, November 15, 2004 2:20 PM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter You can parameters to the data adapter select command. Here's a C# example, which you should be able to adapt to VB pretty easily: dsADARpt1.Clear(); daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; daADARpt.Fill(dsADARpt1); The SQL in the data adapter uses the parameters basically exactly as you are used to, for example the SQL in the above referenced data adapter includes a line: WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= @endDate) I hope that helps. Ron > I read that if a database has an SQL backend, then use the > SQLDataAdapter in VB.net. OK... So, up until this point I have used OLE > and could pass parameters easily, for instance: > > Select au_id, au_lname, state from authors where (state = ?) > > If I am using the SQLDataAdapter this bombs. What is the SQL > equivalent, or is this a bad idea to even use the SQL adapter? Learning > is such a bear. > _______________________________________________ > 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From chizotz at mchsi.com Mon Nov 15 14:28:39 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Mon, 15 Nov 2004 20:28:39 +0000 Subject: [dba-VB] OleDBAdapter vs SQLDataAdapter Message-ID: <111520042028.28977.3c56@mchsi.com> Also, here is a site that I have found to be a fantastic resource. It's got many examples for both VB.NET and C#. And don't let the name fool you, while the main focus is windows forms, there are other goodies there too. http://www.syncfusion.com/FAQ/WinForms/ Ron > Got it. But, question, still. Is it true that if you have an SQL > backend that it is better to use the SQL Adapters instead of the OLE > adapters? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro > Sent: Monday, November 15, 2004 2:40 PM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > me.startdate.text > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, > Karen > Sent: Monday, November 15, 2004 11:24 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > So if my @startdate is an unbound field on a form, then @startdate = > me.startdate.value? > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of > chizotz at mchsi.com > Sent: Monday, November 15, 2004 2:20 PM > To: dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] OleDBAdapter vs SQLDataAdapter > > > You can parameters to the data adapter select command. Here's a C# > example, > which you should be able to adapt to VB pretty easily: > > dsADARpt1.Clear(); > daADARpt.SelectCommand.Parameters["@startDate"].Value = startDate; > daADARpt.SelectCommand.Parameters["@endDate"].Value = endDate; > daADARpt.Fill(dsADARpt1); > > The SQL in the data adapter uses the parameters basically exactly as you > are > used to, for example the SQL in the above referenced data adapter > includes a > line: > > WHERE (dw_draw1.draw_date >= @startDate) AND (dw_draw1.draw_date <= > @endDate) > > I hope that helps. > > Ron > > > I read that if a database has an SQL backend, then use the > > SQLDataAdapter in VB.net. OK... So, up until this point I have used > OLE > > and could pass parameters easily, for instance: > > > > Select au_id, au_lname, state from authors where (state = ?) > > > > If I am using the SQLDataAdapter this bombs. What is the SQL > > equivalent, or is this a bad idea to even use the SQL adapter? > Learning > > is such a bear. > > _______________________________________________ > > 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 > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > > > > > ---------------------------------------------------------------- > The information contained in this e-mail message and any file, document, > previous e-mail message and/or attachment transmitted herewith is > confidential and may be legally privileged. It is intended solely for > the private use of the addressee and must not be disclosed to or used by > anyone other than the addressee. If you receive this transmission by > error, please immediately notify the sender by reply e-mail and destroy > the original transmission and its attachments without reading or saving > it in any manner. If you are not the intended recipient, or a person > responsible for delivering it to the intended recipient, you are hereby > notified that any disclosure, copying, distribution or use of any of the > information contained in or attached to this transmission is STRICTLY > PROHIBITED. E-mail transmission cannot be guaranteed to be secure or > error free as information could be intercepted, corrupted, lost, > destroyed, arrive late or incomplete, or contain viruses. > The sender therefore does not accept liability for any errors or > omissions in the contents of this message, which arise as a result of > email transmission. Users and employees of the e-mail system are > expressly required not to make defamatory statements and not to infringe > or authorize any infringement of copyright or any other legal right by > email communications. Any such communication is contrary to company > policy. The company will not accept any liability in respect of such > communication. > > > _______________________________________________ > 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 cyx5 at cdc.gov Tue Nov 16 10:56:07 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 11:56:07 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! From ebarro at afsweb.com Tue Nov 16 11:18:49 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 09:18:49 -0800 Subject: [dba-VB] Text Box - Date Format In-Reply-To: Message-ID: I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Tue Nov 16 11:26:06 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Tue, 16 Nov 2004 12:26:06 -0500 Subject: [dba-VB] Text Box - Date Format Message-ID: Yep. I will get there. So, I plop a text box on a vb.net form. Is there no place on the properties for that text box to set it to the date format? (Access Withdrawal...) Where would I put this code mydate.toshortdatestring? It does not look like it goes in the sql code that extracts the fields to form the dataset. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Tuesday, November 16, 2004 12:19 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Text Box - Date Format I'm assuming that you are still referring to VB.NET? MyDate.ToShortDateString -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Tuesday, November 16, 2004 8:56 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Text Box - Date Format It's official. I am going through withdrawal and on my way to the looney bin. How in the world does one set the format of a date/time field on a form to the short date format? Like pulling teethhhhh!!!! _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 15:42:31 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 15:42:31 -0600 Subject: [dba-VB] VB6 Shell Message-ID: Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com From accessd at shaw.ca Tue Nov 16 15:58:23 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Nov 2004 13:58:23 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Hi Bill: Why not try something like this: Call ShellExecute(0&, "Open", "explorer.exe", "/e,/n,c:\", 0&, SW_SHOWNORMAL) HTH Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Tue Nov 16 15:57:31 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 13:57:31 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: In your code %SystemRoot% is being interpreted as a string and not being evaluated before passing to the shell...so it is trying to execute %SystemRoot%\explorer.exe which eventually fails. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From ebarro at afsweb.com Tue Nov 16 16:00:36 2004 From: ebarro at afsweb.com (Eric Barro) Date: Tue, 16 Nov 2004 14:00:36 -0800 Subject: [dba-VB] VB6 Shell In-Reply-To: Message-ID: Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From michael at ddisolutions.com.au Tue Nov 16 16:06:08 2004 From: michael at ddisolutions.com.au (Michael Maddison) Date: Wed, 17 Nov 2004 09:06:08 +1100 Subject: [dba-VB] VB6 Shell Message-ID: <59A61174B1F5B54B97FD4ADDE71E7D0107C5C2@ddi-01.DDI.local> Looks like VB doesn't know what to do with the environment variable. You will need to explicitly state the full path. Google ShellExecute and you will be much happier... cheers Michael M Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From bkollodge at parkindustries.com Tue Nov 16 16:11:09 2004 From: bkollodge at parkindustries.com (bkollodge at parkindustries.com) Date: Tue, 16 Nov 2004 16:11:09 -0600 Subject: [dba-VB] VB6 Shell Message-ID: That did it! Thanks so much! Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: 16 November 2004 4:01 To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB6 Shell Insert this in your code... Dim winPath as string winPath = Environ$("SystemRoot") and then change your shell line to read... RetVal = Shell(winPath & "\explorer.exe", vbMaximizedFocus) -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of bkollodge at parkindustries.com Sent: Tuesday, November 16, 2004 1:43 PM To: dba-vb at databaseadvisors.com Subject: [dba-VB] VB6 Shell Do any VB6 programmers know how to use the shell to run a systems app such as explorer? The "target" was copied from my desktop shortcut but doesn't work - I must be missing some syntax??? Private Sub Command1_Click() RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) End Sub Thanks, Bill Kollodge Electrical Engineering / CNC Products Park Industries St. Cloud, MN 56303 bkollodge at parkindustries.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Wed Nov 17 09:01:21 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Wed, 17 Nov 2004 10:01:21 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. From mikedorism at adelphia.net Wed Nov 17 12:05:33 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 17 Nov 2004 13:05:33 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <000001c4ccd0$08a37350$0b08a845@hargrove.internal> Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ebarro at afsweb.com Wed Nov 17 11:04:34 2004 From: ebarro at afsweb.com (Eric Barro) Date: Wed, 17 Nov 2004 09:04:34 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: Karen, This should work... MyFormControl.Text = FormatDateTime(MyRecordSetField, DateFormat.ShortDate) Eric -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 7:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------------------- The information contained in this e-mail message and any file, document, previous e-mail message and/or attachment transmitted herewith is confidential and may be legally privileged. It is intended solely for the private use of the addressee and must not be disclosed to or used by anyone other than the addressee. If you receive this transmission by error, please immediately notify the sender by reply e-mail and destroy the original transmission and its attachments without reading or saving it in any manner. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of email transmission. Users and employees of the e-mail system are expressly required not to make defamatory statements and not to infringe or authorize any infringement of copyright or any other legal right by email communications. Any such communication is contrary to company policy. The company will not accept any liability in respect of such communication. From cyx5 at cdc.gov Thu Nov 18 05:37:36 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 06:37:36 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 10:32:54 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 11:32:54 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From cyx5 at cdc.gov Thu Nov 18 10:41:04 2004 From: cyx5 at cdc.gov (Nicholson, Karen) Date: Thu, 18 Nov 2004 11:41:04 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields Message-ID: 0-7897-2572-x -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 11:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 accessd at shaw.ca Thu Nov 18 11:49:25 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 18 Nov 2004 09:49:25 -0800 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: <003901c4cd8c$4165e990$e8dafea9@ColbyM6805> Message-ID: Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 jwcolby at colbyconsulting.com Thu Nov 18 12:14:08 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 18 Nov 2004 13:14:08 -0500 Subject: [dba-VB] VB.Net Format Bound Date Fields In-Reply-To: Message-ID: <003f01c4cd9a$656e1f70$e8dafea9@ColbyM6805> LOL. No, I was asking what the number for the book mentioned was. I tried to look it up by the title and didn't get a hit. John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, November 18, 2004 12:49 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Hi John: It stands for International Standard Book Number, ISBN. It is a 10 digit unique number, one for every book published. It works great if you ever have to write a 'book' database. Jim -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, November 18, 2004 8:33 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields What is the isbn? John W. Colby www.ColbyConsulting.com Contribute your unused CPU cycles to a good cause: http://folding.stanford.edu/ -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Thursday, November 18, 2004 6:38 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields YES!! I stopped at Borders and got the Using Microsoft Visual Basic.Net book by Siler and Spotts. Life is getting rosier. This is getting fun, now. -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Wednesday, November 17, 2004 1:06 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] VB.Net Format Bound Date Fields Use a Calendar combo control instead of a text box. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Nicholson, Karen Sent: Wednesday, November 17, 2004 10:01 AM To: dba-VB at databaseadvisors.com Subject: [dba-VB] VB.Net Format Bound Date Fields Begging for help... I can't seem to get a straight answer on this. I have a windows form, vb.net, with a bound date/time field named accdate. The format is SQL server is short date. When I generate the dataset, the format is short date. When I place the bound field on the data entry form, it appears as short date with all the time information as well. How do I change the bound field on the form to display the normal old short date format? This seems nuts. _______________________________________________ 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 _______________________________________________ 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Nov 18 14:32:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 18 Nov 2004 12:32:16 -0800 Subject: [dba-VB] VB6 Shell References: Message-ID: <419D06D0.8040908@shaw.ca> How about using the shell.application object, I only came across these methods recently See url below for more examples under methods vbscript samples 'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/objects/shell/browseforfolder.asp ' Some caveats you may get odd results if opening to printers or network neighbourhoods 'trying to pick an individual file on winxp using objShell.BrowseForFolder method will gpf , known bug 'but works under win 2000 Here are some examples Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\ Dim objShell as object Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\") Set objShell = Nothing End Function Sub testshell() 'open various control panel windows Dim shl As Object Set shl = CreateObject("Shell.Application") 'shl.ControlPanelItem CStr("desk.cpl") 'opens Analog clock and date selection panel shl.ControlPanelItem CStr("TIMEDATE.CPL") 'shl.ControlPanelItem CStr("INETCPL.CPL") '--CPL files and their respective Control Panel windows: '--DESK.CPL - Display Properties '--INETCPL.CPL - Internet Properties '--MMSYS.CPL - Multimedia Properties '--MODEM.CPL - Modems Properties '--NETCPL.CPL - Network '--PASSWORD.CPL - Passwords '--POWERCFG.CPL - Power Management Properties '--APPWIZ.CPL - Add/Remove Programs '--MAIN.CPL - Main - defaults to mouse properties. '--SYSDM.CPL - System Properties '--TELEPHON.CPL - Telephony '--TIMEDATE.CPL - TimeDate '--STICPL.CPL - Scanners and Cameras '-- Set shl = Nothing End Sub Function fnShellFindFilesVB() 'opens find or search file window Dim objShell Set objShell = CreateObject("Shell.Application") objShell.FindFiles Set objShell = Nothing End Function Function fnShellOpenVB() Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Open ("C:\") Set objShell = Nothing End Function Function fnShellExploreJ() 'opens windows explorer at a specific directory in this example c:\temp Dim objShell Set objShell = CreateObject("Shell.Application") objShell.Explore ("C:\temp") Set objShell = Nothing End Function Function fnShellExploreVB() 'opens win explorer at os Windows directory Dim objShell Dim ssfWINDOWS ssfWINDOWS = 36 Set objShell = CreateObject("Shell.Application") objShell.Explore (ssfWINDOWS) Set objShell = Nothing End Function Function fnFolderTitleVB() 'browse for folder then display folder title chosen Dim objShell Set objShell = CreateObject("Shell.Application") If (Not objShell Is Nothing) Then Dim objFolder Dim ssfPROGRAMS ssfPROGRAMS = 2 Set objFolder = objShell.NameSpace(ssfPROGRAMS) If (Not objFolder Is Nothing) Then MsgBox objFolder.Title End If Set objFolder = Nothing End If Set objShell = Nothing End Function Function fnFolderObjectItemsVB() 'count or display items in a folder Dim objShell Dim objFolder 'Dim objFolderItems Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.NameSpace("C:\Temp2") If (Not objFolder Is Nothing) Then Dim objFolderItems Set objFolderItems = objFolder.Items 'you can list all items in folder here If (Not objFolderItems Is Nothing) Then MsgBox objFolderItems.Count End If Set objFolderItems = Nothing End If Set objFolder = Nothing Set objShell = Nothing End Function bkollodge at parkindustries.com wrote: >Do any VB6 programmers know how to use the shell to run a systems app >such as explorer? The "target" was copied from my desktop shortcut but >doesn't work - I must be missing some syntax??? > >Private Sub Command1_Click() > RetVal = Shell("%SystemRoot%\explorer.exe", vbMaximizedFocus) >End Sub > >Thanks, >Bill Kollodge >Electrical Engineering / CNC Products >Park Industries >St. Cloud, MN 56303 >bkollodge at parkindustries.com > >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com > > > > -- Marty Connelly Victoria, B.C. Canada