From paul.hartland at fsmail.net Tue Dec 2 05:00:31 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 2 Dec 2003 12:00:31 +0100 (CET) Subject: [dba-VB] VB6 Crosstab Query Help Message-ID: <20115079.1070362831314.JavaMail.www@wwinf3005> To all, I have a crosstab query in an Access application that I would like to take across into my VB6 application, having never tried this before I would firstly like to know if it is possible & how to go about it and secondly how would I display the data in crosstab format. Any sample code etc greatly appreciated. Thanks in advance to anyone that can help on this matter. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Dec 4 03:02:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 10:02:45 +0100 (CET) Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <28452598.1070528565580.JavaMail.www@wwinf3006> To all, Does anyone know a way how to create a shortcut on a desktop using VB6, I have an application that creates various Excel spreadsheets and puts them into a specified directory. What I then want to do is give the user an option of creating a shortcut to this Excel sheet onto their desktop. Sample code etc will be greatly appreciated. Thanks in advance for all your help on this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From R.Griffiths at bury.gov.uk Thu Dec 4 03:43:58 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 09:43:58 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Hi Paul I can send a zipped file offline if you wish Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 04 December 2003 09:03 > To: dba-vb > Cc: accessd > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > To all, > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > have an application that creates various Excel spreadsheets and puts them > into a specified directory. What I then want to do is give the user an > option of creating a shortcut to this Excel sheet onto their desktop. > > Sample code etc will be greatly appreciated. > > Thanks in advance for all your help on this. > > Paul Hartland > Database Designer/Developer. > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From sgsax at ksu.edu Thu Dec 4 08:09:08 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 08:09:08 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070546948.15511.0.camel@sgsax-th4022.ksu.edu> Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From Jdemarco at hshhp.org Thu Dec 4 08:11:17 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 4 Dec 2003 09:11:17 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -------------- next part -------------- Seth, If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). Jim DeMarco -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:09 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ 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 Thu Dec 4 08:43:53 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 14:43:53 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Seth I am not sure what you mean by post it to a website . I can email direct to you if you wish Richard > -----Original Message----- > From: Seth Galitzer [SMTP:sgsax at ksu.edu] > Sent: 04 December 2003 14:09 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic > 6.0 > > Richard, > > Can you post it to a website and post the URL here? I'd be interested > in this code as well. > > Seth > > On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > > Hi Paul > > > > I can send a zipped file offline if you wish > > > > Richard > > > > > -----Original Message----- > > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > > Sent: 04 December 2003 09:03 > > > To: dba-vb > > > Cc: accessd > > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > > > To all, > > > > > > Does anyone know a way how to create a shortcut on a desktop using > VB6, I > > > have an application that creates various Excel spreadsheets and puts > them > > > into a specified directory. What I then want to do is give the user > an > > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > > > Sample code etc will be greatly appreciated. > > > > > > Thanks in advance for all your help on this. > > > > > > Paul Hartland > > > Database Designer/Developer. > > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > > > > > > www.freeserve.com/anytime > > -- > Seth Galitzer sgsax at ksu.edu > Computing Specialist http://puma.agron.ksu.edu/~sgsax > Dept. of Plant Pathology > Kansas State University > > _______________________________________________ > 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 Thu Dec 4 09:03:20 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:03:20 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: Message-ID: Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:22:38 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:22:38 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Thu Dec 4 09:31:22 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:31:22 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 7:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:39:02 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:39:02 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> Message-ID: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From sgsax at ksu.edu Thu Dec 4 09:44:48 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:44:48 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From jcolby at colbyconsulting.com Thu Dec 4 09:47:50 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 10:47:50 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Message-ID: Windows scripting host is a tool, nothing more. That's like saying you find knives evil because someone got stabbed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 10:39 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 4 09:50:08 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 4 Dec 2003 09:50:08 -0600 Subject: [dba-VB] Picture and Fax Viewer Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1CF@TAPPEEXCH01> Unfortunately, it is a DLL (shimgvw.dll). Out of curiousity I googled for some info on it. I saw several suggestions saying use the command line rundll32.exe shimgvw.dll,ImageView_Fullscreen, but I couldn't get it to work myself. I tried adding a reference to it in a VB6 project, and browsed through its methods. It has a ShowFile method that appears to load the image, and a Show method that should display it. The Show method has requires a single argument and I can't figure out exactly what it wants. I searched codehound and psc as well, with no success. I'm sure the answer is out there. -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From sgsax at ksu.edu Thu Dec 4 10:19:37 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 10:19:37 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070554777.15514.34.camel@sgsax-th4022.ksu.edu> Sorry. I've been using linux a lot more the last several months. I usually keep my EVIL comments to myself. Must've been a lapse in self-control. I need to go meditate now... Seth On Thu, 2003-12-04 at 09:47, John W. Colby wrote: > Windows scripting host is a tool, nothing more. That's like saying you find > knives evil because someone got stabbed. > > John W. Colby > www.ColbyConsulting.com > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Fri Dec 5 16:28:26 2003 From: ebarro at afsweb.com (Eric Barro) Date: Fri, 5 Dec 2003 14:28:26 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, ShellExecute was the solution that worked! Thanks!!! --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 7:45 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Picture and Fax Viewer Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From paul.hartland at fsmail.net Tue Dec 9 08:59:57 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 9 Dec 2003 15:59:57 +0100 (CET) Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: <18075390.1070981997699.JavaMail.www@wwinf3003> To all, I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. Thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From martyconnelly at shaw.ca Wed Dec 10 00:40:01 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 22:40:01 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors References: <18075390.1070981997699.JavaMail.www@wwinf3003> Message-ID: <3FD6BFC1.2000009@shaw.ca> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada From gray at utah.gov Wed Dec 10 08:23:51 2003 From: gray at utah.gov (Gary Ray) Date: Wed, 10 Dec 2003 07:23:51 -0700 Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Wed Dec 10 13:47:33 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 10 Dec 2003 11:47:33 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors In-Reply-To: Message-ID: <000501c3bf56$748a9e00$6601a8c0@rock> Another reason for this error is that you are trying to update a view tbat is not updatable. The multiple steps to which the error refers are a delete and an insert. It tries to delete the row then re-insert it with the new values, and errors out. Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Wednesday, December 10, 2003 6:24 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Multiple Step Operation Generatted Errors In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion /dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation >Generatted Errors, is there any particular reason that this error >occurs. We are linking to an Access XP database, and the recordsource >for the form is a command from the DataEnvironment. Has anyone else >come across this error, if so, why does this happen. Thanks in advance >for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the >first 3 months - Save ?7.50 a month www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 16 09:48:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 16 Dec 2003 16:48:47 +0100 (CET) Subject: [dba-VB] System Settings Etc Message-ID: <26431645.1071589727952.JavaMail.www@wwinf3006> To all, Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. Version of Operating System & Current Service Pack. Version of MS Office & Service Pack. Possibly including processor(s), RAM etc Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 16 10:27:20 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 16 Dec 2003 10:27:20 -0600 Subject: [dba-VB] System Settings Etc In-Reply-To: <26431645.1071589727952.JavaMail.www@wwinf3006> References: <26431645.1071589727952.JavaMail.www@wwinf3006> Message-ID: <1071592040.6764.3.camel@sgsax-th4022.ksu.edu> Paul, We've just started looking at this "little" app: http://www.aida32.hu/aida32.php I learned about it from one of the Woody's Watch newsletters. We're working on using it for enterprise-wide system inventory. It's very customizable, scans a lot of useful info, and is absolutely free. Don't let the Hungarian TLD worry you. It's good software that delivers what it promises. Seth Disclaimer: I have absolutely no ties to this company. I just really like this tool. On Tue, 2003-12-16 at 09:48, paul.hartland at fsmail.net wrote: > To all, > > Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. > > Version of Operating System & Current Service Pack. > Version of MS Office & Service Pack. > > Possibly including processor(s), RAM etc > > Paul Hartland > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From paul.hartland at fsmail.net Wed Dec 17 03:01:16 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 10:01:16 +0100 (CET) Subject: [dba-VB] Mailmerge Using Word & SQL Server (VB6) Message-ID: <19097147.1071651676550.JavaMail.www@wwinf3005> To all, I am starting to write a mailmerge application for our own internal use, I want the user to be able to select the people they want to mail to and store these in a temporary merge table on SQL Server 7.0 (this I have already done). I also give them the option to select an exisiting Word document or create a new one (also done) . I need to know how (when the user opens the Word document), I can tell the document to look at my temporary merge table on SQL Server 7.0. Anyone know how I can do this as I have never tried to connect a Word document to a datasource via code before. Thanks in advance for any help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Wed Dec 17 04:43:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 11:43:38 +0100 (CET) Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <7466440.1071657818093.JavaMail.www@wwinf3005> To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don?t wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Jdemarco at hshhp.org Wed Dec 17 07:08:50 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 17 Dec 2003 08:08:50 -0500 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA35@TTNEXCHSRV1.hshhp.com> Paul, Just set the command button's "Default" property to True. HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, December 17, 2003 5:44 AM To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bkollodge at parkindustries.com Wed Dec 17 07:38:50 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Wed, 17 Dec 2003 07:38:50 -0600 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: In the KeyPress_Event, call button_click. Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: December 17, 2003 4:44 To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 30 03:49:43 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Dec 2003 10:49:43 +0100 (CET) Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <12970890.1072777783067.JavaMail.www@wwinf3001> To all, We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. Has anyone ever done this and can tell me how to go about it Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 30 21:11:16 2003 From: sgsax at ksu.edu (Seth D. Galitzer) Date: Tue, 30 Dec 2003 21:11:16 -0600 Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <3FF76DCD@webmail.ksu.edu> Paul, I don't know about specific caveats for a data grid control (or for converting data on the fly from SQL server for that matter), but does using CBool() (either in a stored proc or setting the checkbox value in the OnCurrent event) not work? Seth >===== Original Message From paul.hartland at fsmail.net, dba-vb at databaseadvisors.com ===== >To all, > >We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. > >Has anyone ever done this and can tell me how to go about it > >Thanks in advance. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com The beatings will continue until morale has improved. From paul.hartland at fsmail.net Wed Dec 31 03:23:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 31 Dec 2003 10:23:58 +0100 (CET) Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <21900444.1072862638247.JavaMail.www@wwinf3004> To all, I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. Anyone any ideas how to do this. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From my.lists at verizon.net Wed Dec 31 11:34:58 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 31 Dec 2003 09:34:58 -0800 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 In-Reply-To: <21900444.1072862638247.JavaMail.www@wwinf3004> References: <21900444.1072862638247.JavaMail.www@wwinf3004> Message-ID: <3FF308C2.20708@verizon.net> paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco From LChristian at MassMutual.com Wed Dec 31 12:15:45 2003 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 31 Dec 2003 13:15:45 -0500 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <5B898D9F0627974EB82D0645E52B1E7D035CB9AD@EXMBPR03.na.mmfg.net> Hi there! Not be near my source code. Would something like this help? Public Sub AutoNumber() Dim cmd As New ADODB.Command cmd.ActiveConnection = myConn2 cmd.CommandType = adCmdStoredProc cmd.CommandText = "NBPHI.NEXT_INTVW_ID_NR" cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Execute iErrorResponse = cmd.Parameters(0).Value If cmd.Parameters(0).Value = 0 Then intKey = cmd.Parameters(1).Value Else MsgBox "An error occured creating this record. Contact your support", vbCritical End If End Sub HTHs Lorraine Happy New Year -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Wednesday, December 31, 2003 12:35 PM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- From paul.hartland at fsmail.net Tue Dec 2 05:00:31 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 2 Dec 2003 12:00:31 +0100 (CET) Subject: [dba-VB] VB6 Crosstab Query Help Message-ID: <20115079.1070362831314.JavaMail.www@wwinf3005> To all, I have a crosstab query in an Access application that I would like to take across into my VB6 application, having never tried this before I would firstly like to know if it is possible & how to go about it and secondly how would I display the data in crosstab format. Any sample code etc greatly appreciated. Thanks in advance to anyone that can help on this matter. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Dec 4 03:02:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 10:02:45 +0100 (CET) Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <28452598.1070528565580.JavaMail.www@wwinf3006> To all, Does anyone know a way how to create a shortcut on a desktop using VB6, I have an application that creates various Excel spreadsheets and puts them into a specified directory. What I then want to do is give the user an option of creating a shortcut to this Excel sheet onto their desktop. Sample code etc will be greatly appreciated. Thanks in advance for all your help on this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From R.Griffiths at bury.gov.uk Thu Dec 4 03:43:58 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 09:43:58 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Hi Paul I can send a zipped file offline if you wish Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 04 December 2003 09:03 > To: dba-vb > Cc: accessd > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > To all, > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > have an application that creates various Excel spreadsheets and puts them > into a specified directory. What I then want to do is give the user an > option of creating a shortcut to this Excel sheet onto their desktop. > > Sample code etc will be greatly appreciated. > > Thanks in advance for all your help on this. > > Paul Hartland > Database Designer/Developer. > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From sgsax at ksu.edu Thu Dec 4 08:09:08 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 08:09:08 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070546948.15511.0.camel@sgsax-th4022.ksu.edu> Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From Jdemarco at hshhp.org Thu Dec 4 08:11:17 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 4 Dec 2003 09:11:17 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -------------- next part -------------- Seth, If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). Jim DeMarco -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:09 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ 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 Thu Dec 4 08:43:53 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 14:43:53 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Seth I am not sure what you mean by post it to a website . I can email direct to you if you wish Richard > -----Original Message----- > From: Seth Galitzer [SMTP:sgsax at ksu.edu] > Sent: 04 December 2003 14:09 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic > 6.0 > > Richard, > > Can you post it to a website and post the URL here? I'd be interested > in this code as well. > > Seth > > On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > > Hi Paul > > > > I can send a zipped file offline if you wish > > > > Richard > > > > > -----Original Message----- > > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > > Sent: 04 December 2003 09:03 > > > To: dba-vb > > > Cc: accessd > > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > > > To all, > > > > > > Does anyone know a way how to create a shortcut on a desktop using > VB6, I > > > have an application that creates various Excel spreadsheets and puts > them > > > into a specified directory. What I then want to do is give the user > an > > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > > > Sample code etc will be greatly appreciated. > > > > > > Thanks in advance for all your help on this. > > > > > > Paul Hartland > > > Database Designer/Developer. > > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > > > > > > www.freeserve.com/anytime > > -- > Seth Galitzer sgsax at ksu.edu > Computing Specialist http://puma.agron.ksu.edu/~sgsax > Dept. of Plant Pathology > Kansas State University > > _______________________________________________ > 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 Thu Dec 4 09:03:20 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:03:20 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: Message-ID: Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:22:38 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:22:38 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Thu Dec 4 09:31:22 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:31:22 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 7:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:39:02 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:39:02 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> Message-ID: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From sgsax at ksu.edu Thu Dec 4 09:44:48 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:44:48 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From jcolby at colbyconsulting.com Thu Dec 4 09:47:50 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 10:47:50 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Message-ID: Windows scripting host is a tool, nothing more. That's like saying you find knives evil because someone got stabbed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 10:39 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 4 09:50:08 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 4 Dec 2003 09:50:08 -0600 Subject: [dba-VB] Picture and Fax Viewer Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1CF@TAPPEEXCH01> Unfortunately, it is a DLL (shimgvw.dll). Out of curiousity I googled for some info on it. I saw several suggestions saying use the command line rundll32.exe shimgvw.dll,ImageView_Fullscreen, but I couldn't get it to work myself. I tried adding a reference to it in a VB6 project, and browsed through its methods. It has a ShowFile method that appears to load the image, and a Show method that should display it. The Show method has requires a single argument and I can't figure out exactly what it wants. I searched codehound and psc as well, with no success. I'm sure the answer is out there. -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From sgsax at ksu.edu Thu Dec 4 10:19:37 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 10:19:37 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070554777.15514.34.camel@sgsax-th4022.ksu.edu> Sorry. I've been using linux a lot more the last several months. I usually keep my EVIL comments to myself. Must've been a lapse in self-control. I need to go meditate now... Seth On Thu, 2003-12-04 at 09:47, John W. Colby wrote: > Windows scripting host is a tool, nothing more. That's like saying you find > knives evil because someone got stabbed. > > John W. Colby > www.ColbyConsulting.com > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Fri Dec 5 16:28:26 2003 From: ebarro at afsweb.com (Eric Barro) Date: Fri, 5 Dec 2003 14:28:26 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, ShellExecute was the solution that worked! Thanks!!! --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 7:45 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Picture and Fax Viewer Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From paul.hartland at fsmail.net Tue Dec 9 08:59:57 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 9 Dec 2003 15:59:57 +0100 (CET) Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: <18075390.1070981997699.JavaMail.www@wwinf3003> To all, I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. Thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From martyconnelly at shaw.ca Wed Dec 10 00:40:01 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 22:40:01 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors References: <18075390.1070981997699.JavaMail.www@wwinf3003> Message-ID: <3FD6BFC1.2000009@shaw.ca> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada From gray at utah.gov Wed Dec 10 08:23:51 2003 From: gray at utah.gov (Gary Ray) Date: Wed, 10 Dec 2003 07:23:51 -0700 Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Wed Dec 10 13:47:33 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 10 Dec 2003 11:47:33 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors In-Reply-To: Message-ID: <000501c3bf56$748a9e00$6601a8c0@rock> Another reason for this error is that you are trying to update a view tbat is not updatable. The multiple steps to which the error refers are a delete and an insert. It tries to delete the row then re-insert it with the new values, and errors out. Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Wednesday, December 10, 2003 6:24 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Multiple Step Operation Generatted Errors In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion /dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation >Generatted Errors, is there any particular reason that this error >occurs. We are linking to an Access XP database, and the recordsource >for the form is a command from the DataEnvironment. Has anyone else >come across this error, if so, why does this happen. Thanks in advance >for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the >first 3 months - Save ?7.50 a month www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 16 09:48:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 16 Dec 2003 16:48:47 +0100 (CET) Subject: [dba-VB] System Settings Etc Message-ID: <26431645.1071589727952.JavaMail.www@wwinf3006> To all, Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. Version of Operating System & Current Service Pack. Version of MS Office & Service Pack. Possibly including processor(s), RAM etc Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 16 10:27:20 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 16 Dec 2003 10:27:20 -0600 Subject: [dba-VB] System Settings Etc In-Reply-To: <26431645.1071589727952.JavaMail.www@wwinf3006> References: <26431645.1071589727952.JavaMail.www@wwinf3006> Message-ID: <1071592040.6764.3.camel@sgsax-th4022.ksu.edu> Paul, We've just started looking at this "little" app: http://www.aida32.hu/aida32.php I learned about it from one of the Woody's Watch newsletters. We're working on using it for enterprise-wide system inventory. It's very customizable, scans a lot of useful info, and is absolutely free. Don't let the Hungarian TLD worry you. It's good software that delivers what it promises. Seth Disclaimer: I have absolutely no ties to this company. I just really like this tool. On Tue, 2003-12-16 at 09:48, paul.hartland at fsmail.net wrote: > To all, > > Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. > > Version of Operating System & Current Service Pack. > Version of MS Office & Service Pack. > > Possibly including processor(s), RAM etc > > Paul Hartland > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From paul.hartland at fsmail.net Wed Dec 17 03:01:16 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 10:01:16 +0100 (CET) Subject: [dba-VB] Mailmerge Using Word & SQL Server (VB6) Message-ID: <19097147.1071651676550.JavaMail.www@wwinf3005> To all, I am starting to write a mailmerge application for our own internal use, I want the user to be able to select the people they want to mail to and store these in a temporary merge table on SQL Server 7.0 (this I have already done). I also give them the option to select an exisiting Word document or create a new one (also done) . I need to know how (when the user opens the Word document), I can tell the document to look at my temporary merge table on SQL Server 7.0. Anyone know how I can do this as I have never tried to connect a Word document to a datasource via code before. Thanks in advance for any help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Wed Dec 17 04:43:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 11:43:38 +0100 (CET) Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <7466440.1071657818093.JavaMail.www@wwinf3005> To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don?t wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Jdemarco at hshhp.org Wed Dec 17 07:08:50 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 17 Dec 2003 08:08:50 -0500 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA35@TTNEXCHSRV1.hshhp.com> Paul, Just set the command button's "Default" property to True. HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, December 17, 2003 5:44 AM To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bkollodge at parkindustries.com Wed Dec 17 07:38:50 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Wed, 17 Dec 2003 07:38:50 -0600 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: In the KeyPress_Event, call button_click. Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: December 17, 2003 4:44 To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 30 03:49:43 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Dec 2003 10:49:43 +0100 (CET) Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <12970890.1072777783067.JavaMail.www@wwinf3001> To all, We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. Has anyone ever done this and can tell me how to go about it Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 30 21:11:16 2003 From: sgsax at ksu.edu (Seth D. Galitzer) Date: Tue, 30 Dec 2003 21:11:16 -0600 Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <3FF76DCD@webmail.ksu.edu> Paul, I don't know about specific caveats for a data grid control (or for converting data on the fly from SQL server for that matter), but does using CBool() (either in a stored proc or setting the checkbox value in the OnCurrent event) not work? Seth >===== Original Message From paul.hartland at fsmail.net, dba-vb at databaseadvisors.com ===== >To all, > >We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. > >Has anyone ever done this and can tell me how to go about it > >Thanks in advance. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com The beatings will continue until morale has improved. From paul.hartland at fsmail.net Wed Dec 31 03:23:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 31 Dec 2003 10:23:58 +0100 (CET) Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <21900444.1072862638247.JavaMail.www@wwinf3004> To all, I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. Anyone any ideas how to do this. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From my.lists at verizon.net Wed Dec 31 11:34:58 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 31 Dec 2003 09:34:58 -0800 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 In-Reply-To: <21900444.1072862638247.JavaMail.www@wwinf3004> References: <21900444.1072862638247.JavaMail.www@wwinf3004> Message-ID: <3FF308C2.20708@verizon.net> paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco From LChristian at MassMutual.com Wed Dec 31 12:15:45 2003 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 31 Dec 2003 13:15:45 -0500 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <5B898D9F0627974EB82D0645E52B1E7D035CB9AD@EXMBPR03.na.mmfg.net> Hi there! Not be near my source code. Would something like this help? Public Sub AutoNumber() Dim cmd As New ADODB.Command cmd.ActiveConnection = myConn2 cmd.CommandType = adCmdStoredProc cmd.CommandText = "NBPHI.NEXT_INTVW_ID_NR" cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Execute iErrorResponse = cmd.Parameters(0).Value If cmd.Parameters(0).Value = 0 Then intKey = cmd.Parameters(1).Value Else MsgBox "An error occured creating this record. Contact your support", vbCritical End If End Sub HTHs Lorraine Happy New Year -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Wednesday, December 31, 2003 12:35 PM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- From paul.hartland at fsmail.net Tue Dec 2 05:00:31 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 2 Dec 2003 12:00:31 +0100 (CET) Subject: [dba-VB] VB6 Crosstab Query Help Message-ID: <20115079.1070362831314.JavaMail.www@wwinf3005> To all, I have a crosstab query in an Access application that I would like to take across into my VB6 application, having never tried this before I would firstly like to know if it is possible & how to go about it and secondly how would I display the data in crosstab format. Any sample code etc greatly appreciated. Thanks in advance to anyone that can help on this matter. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Dec 4 03:02:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 10:02:45 +0100 (CET) Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <28452598.1070528565580.JavaMail.www@wwinf3006> To all, Does anyone know a way how to create a shortcut on a desktop using VB6, I have an application that creates various Excel spreadsheets and puts them into a specified directory. What I then want to do is give the user an option of creating a shortcut to this Excel sheet onto their desktop. Sample code etc will be greatly appreciated. Thanks in advance for all your help on this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From R.Griffiths at bury.gov.uk Thu Dec 4 03:43:58 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 09:43:58 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Hi Paul I can send a zipped file offline if you wish Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 04 December 2003 09:03 > To: dba-vb > Cc: accessd > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > To all, > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > have an application that creates various Excel spreadsheets and puts them > into a specified directory. What I then want to do is give the user an > option of creating a shortcut to this Excel sheet onto their desktop. > > Sample code etc will be greatly appreciated. > > Thanks in advance for all your help on this. > > Paul Hartland > Database Designer/Developer. > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From sgsax at ksu.edu Thu Dec 4 08:09:08 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 08:09:08 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070546948.15511.0.camel@sgsax-th4022.ksu.edu> Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From Jdemarco at hshhp.org Thu Dec 4 08:11:17 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 4 Dec 2003 09:11:17 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -------------- next part -------------- Seth, If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). Jim DeMarco -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:09 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ 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 Thu Dec 4 08:43:53 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 14:43:53 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Seth I am not sure what you mean by post it to a website . I can email direct to you if you wish Richard > -----Original Message----- > From: Seth Galitzer [SMTP:sgsax at ksu.edu] > Sent: 04 December 2003 14:09 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic > 6.0 > > Richard, > > Can you post it to a website and post the URL here? I'd be interested > in this code as well. > > Seth > > On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > > Hi Paul > > > > I can send a zipped file offline if you wish > > > > Richard > > > > > -----Original Message----- > > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > > Sent: 04 December 2003 09:03 > > > To: dba-vb > > > Cc: accessd > > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > > > To all, > > > > > > Does anyone know a way how to create a shortcut on a desktop using > VB6, I > > > have an application that creates various Excel spreadsheets and puts > them > > > into a specified directory. What I then want to do is give the user > an > > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > > > Sample code etc will be greatly appreciated. > > > > > > Thanks in advance for all your help on this. > > > > > > Paul Hartland > > > Database Designer/Developer. > > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > > > > > > www.freeserve.com/anytime > > -- > Seth Galitzer sgsax at ksu.edu > Computing Specialist http://puma.agron.ksu.edu/~sgsax > Dept. of Plant Pathology > Kansas State University > > _______________________________________________ > 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 Thu Dec 4 09:03:20 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:03:20 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: Message-ID: Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:22:38 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:22:38 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Thu Dec 4 09:31:22 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:31:22 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 7:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:39:02 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:39:02 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> Message-ID: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From sgsax at ksu.edu Thu Dec 4 09:44:48 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:44:48 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From jcolby at colbyconsulting.com Thu Dec 4 09:47:50 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 10:47:50 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Message-ID: Windows scripting host is a tool, nothing more. That's like saying you find knives evil because someone got stabbed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 10:39 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 4 09:50:08 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 4 Dec 2003 09:50:08 -0600 Subject: [dba-VB] Picture and Fax Viewer Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1CF@TAPPEEXCH01> Unfortunately, it is a DLL (shimgvw.dll). Out of curiousity I googled for some info on it. I saw several suggestions saying use the command line rundll32.exe shimgvw.dll,ImageView_Fullscreen, but I couldn't get it to work myself. I tried adding a reference to it in a VB6 project, and browsed through its methods. It has a ShowFile method that appears to load the image, and a Show method that should display it. The Show method has requires a single argument and I can't figure out exactly what it wants. I searched codehound and psc as well, with no success. I'm sure the answer is out there. -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From sgsax at ksu.edu Thu Dec 4 10:19:37 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 10:19:37 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070554777.15514.34.camel@sgsax-th4022.ksu.edu> Sorry. I've been using linux a lot more the last several months. I usually keep my EVIL comments to myself. Must've been a lapse in self-control. I need to go meditate now... Seth On Thu, 2003-12-04 at 09:47, John W. Colby wrote: > Windows scripting host is a tool, nothing more. That's like saying you find > knives evil because someone got stabbed. > > John W. Colby > www.ColbyConsulting.com > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Fri Dec 5 16:28:26 2003 From: ebarro at afsweb.com (Eric Barro) Date: Fri, 5 Dec 2003 14:28:26 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, ShellExecute was the solution that worked! Thanks!!! --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 7:45 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Picture and Fax Viewer Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From paul.hartland at fsmail.net Tue Dec 9 08:59:57 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 9 Dec 2003 15:59:57 +0100 (CET) Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: <18075390.1070981997699.JavaMail.www@wwinf3003> To all, I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. Thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From martyconnelly at shaw.ca Wed Dec 10 00:40:01 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 22:40:01 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors References: <18075390.1070981997699.JavaMail.www@wwinf3003> Message-ID: <3FD6BFC1.2000009@shaw.ca> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada From gray at utah.gov Wed Dec 10 08:23:51 2003 From: gray at utah.gov (Gary Ray) Date: Wed, 10 Dec 2003 07:23:51 -0700 Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Wed Dec 10 13:47:33 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 10 Dec 2003 11:47:33 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors In-Reply-To: Message-ID: <000501c3bf56$748a9e00$6601a8c0@rock> Another reason for this error is that you are trying to update a view tbat is not updatable. The multiple steps to which the error refers are a delete and an insert. It tries to delete the row then re-insert it with the new values, and errors out. Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Wednesday, December 10, 2003 6:24 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Multiple Step Operation Generatted Errors In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion /dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation >Generatted Errors, is there any particular reason that this error >occurs. We are linking to an Access XP database, and the recordsource >for the form is a command from the DataEnvironment. Has anyone else >come across this error, if so, why does this happen. Thanks in advance >for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the >first 3 months - Save ?7.50 a month www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 16 09:48:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 16 Dec 2003 16:48:47 +0100 (CET) Subject: [dba-VB] System Settings Etc Message-ID: <26431645.1071589727952.JavaMail.www@wwinf3006> To all, Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. Version of Operating System & Current Service Pack. Version of MS Office & Service Pack. Possibly including processor(s), RAM etc Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 16 10:27:20 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 16 Dec 2003 10:27:20 -0600 Subject: [dba-VB] System Settings Etc In-Reply-To: <26431645.1071589727952.JavaMail.www@wwinf3006> References: <26431645.1071589727952.JavaMail.www@wwinf3006> Message-ID: <1071592040.6764.3.camel@sgsax-th4022.ksu.edu> Paul, We've just started looking at this "little" app: http://www.aida32.hu/aida32.php I learned about it from one of the Woody's Watch newsletters. We're working on using it for enterprise-wide system inventory. It's very customizable, scans a lot of useful info, and is absolutely free. Don't let the Hungarian TLD worry you. It's good software that delivers what it promises. Seth Disclaimer: I have absolutely no ties to this company. I just really like this tool. On Tue, 2003-12-16 at 09:48, paul.hartland at fsmail.net wrote: > To all, > > Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. > > Version of Operating System & Current Service Pack. > Version of MS Office & Service Pack. > > Possibly including processor(s), RAM etc > > Paul Hartland > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From paul.hartland at fsmail.net Wed Dec 17 03:01:16 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 10:01:16 +0100 (CET) Subject: [dba-VB] Mailmerge Using Word & SQL Server (VB6) Message-ID: <19097147.1071651676550.JavaMail.www@wwinf3005> To all, I am starting to write a mailmerge application for our own internal use, I want the user to be able to select the people they want to mail to and store these in a temporary merge table on SQL Server 7.0 (this I have already done). I also give them the option to select an exisiting Word document or create a new one (also done) . I need to know how (when the user opens the Word document), I can tell the document to look at my temporary merge table on SQL Server 7.0. Anyone know how I can do this as I have never tried to connect a Word document to a datasource via code before. Thanks in advance for any help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Wed Dec 17 04:43:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 11:43:38 +0100 (CET) Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <7466440.1071657818093.JavaMail.www@wwinf3005> To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don?t wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Jdemarco at hshhp.org Wed Dec 17 07:08:50 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 17 Dec 2003 08:08:50 -0500 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA35@TTNEXCHSRV1.hshhp.com> Paul, Just set the command button's "Default" property to True. HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, December 17, 2003 5:44 AM To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bkollodge at parkindustries.com Wed Dec 17 07:38:50 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Wed, 17 Dec 2003 07:38:50 -0600 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: In the KeyPress_Event, call button_click. Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: December 17, 2003 4:44 To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 30 03:49:43 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Dec 2003 10:49:43 +0100 (CET) Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <12970890.1072777783067.JavaMail.www@wwinf3001> To all, We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. Has anyone ever done this and can tell me how to go about it Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 30 21:11:16 2003 From: sgsax at ksu.edu (Seth D. Galitzer) Date: Tue, 30 Dec 2003 21:11:16 -0600 Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <3FF76DCD@webmail.ksu.edu> Paul, I don't know about specific caveats for a data grid control (or for converting data on the fly from SQL server for that matter), but does using CBool() (either in a stored proc or setting the checkbox value in the OnCurrent event) not work? Seth >===== Original Message From paul.hartland at fsmail.net, dba-vb at databaseadvisors.com ===== >To all, > >We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. > >Has anyone ever done this and can tell me how to go about it > >Thanks in advance. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com The beatings will continue until morale has improved. From paul.hartland at fsmail.net Wed Dec 31 03:23:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 31 Dec 2003 10:23:58 +0100 (CET) Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <21900444.1072862638247.JavaMail.www@wwinf3004> To all, I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. Anyone any ideas how to do this. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From my.lists at verizon.net Wed Dec 31 11:34:58 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 31 Dec 2003 09:34:58 -0800 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 In-Reply-To: <21900444.1072862638247.JavaMail.www@wwinf3004> References: <21900444.1072862638247.JavaMail.www@wwinf3004> Message-ID: <3FF308C2.20708@verizon.net> paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco From LChristian at MassMutual.com Wed Dec 31 12:15:45 2003 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 31 Dec 2003 13:15:45 -0500 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <5B898D9F0627974EB82D0645E52B1E7D035CB9AD@EXMBPR03.na.mmfg.net> Hi there! Not be near my source code. Would something like this help? Public Sub AutoNumber() Dim cmd As New ADODB.Command cmd.ActiveConnection = myConn2 cmd.CommandType = adCmdStoredProc cmd.CommandText = "NBPHI.NEXT_INTVW_ID_NR" cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Execute iErrorResponse = cmd.Parameters(0).Value If cmd.Parameters(0).Value = 0 Then intKey = cmd.Parameters(1).Value Else MsgBox "An error occured creating this record. Contact your support", vbCritical End If End Sub HTHs Lorraine Happy New Year -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Wednesday, December 31, 2003 12:35 PM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. --------------------------------------------------------- From paul.hartland at fsmail.net Tue Dec 2 05:00:31 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 2 Dec 2003 12:00:31 +0100 (CET) Subject: [dba-VB] VB6 Crosstab Query Help Message-ID: <20115079.1070362831314.JavaMail.www@wwinf3005> To all, I have a crosstab query in an Access application that I would like to take across into my VB6 application, having never tried this before I would firstly like to know if it is possible & how to go about it and secondly how would I display the data in crosstab format. Any sample code etc greatly appreciated. Thanks in advance to anyone that can help on this matter. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Thu Dec 4 03:02:45 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 10:02:45 +0100 (CET) Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <28452598.1070528565580.JavaMail.www@wwinf3006> To all, Does anyone know a way how to create a shortcut on a desktop using VB6, I have an application that creates various Excel spreadsheets and puts them into a specified directory. What I then want to do is give the user an option of creating a shortcut to this Excel sheet onto their desktop. Sample code etc will be greatly appreciated. Thanks in advance for all your help on this. Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From R.Griffiths at bury.gov.uk Thu Dec 4 03:43:58 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 09:43:58 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Hi Paul I can send a zipped file offline if you wish Richard > -----Original Message----- > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > Sent: 04 December 2003 09:03 > To: dba-vb > Cc: accessd > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > To all, > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > have an application that creates various Excel spreadsheets and puts them > into a specified directory. What I then want to do is give the user an > option of creating a shortcut to this Excel sheet onto their desktop. > > Sample code etc will be greatly appreciated. > > Thanks in advance for all your help on this. > > Paul Hartland > Database Designer/Developer. > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > From sgsax at ksu.edu Thu Dec 4 08:09:08 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 08:09:08 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070546948.15511.0.camel@sgsax-th4022.ksu.edu> Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From Jdemarco at hshhp.org Thu Dec 4 08:11:17 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 4 Dec 2003 09:11:17 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** -------------- next part -------------- Seth, If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). Jim DeMarco -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:09 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Richard, Can you post it to a website and post the URL here? I'd be interested in this code as well. Seth On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > Hi Paul > > I can send a zipped file offline if you wish > > Richard > > > -----Original Message----- > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > Sent: 04 December 2003 09:03 > > To: dba-vb > > Cc: accessd > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > To all, > > > > Does anyone know a way how to create a shortcut on a desktop using VB6, I > > have an application that creates various Excel spreadsheets and puts them > > into a specified directory. What I then want to do is give the user an > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > Sample code etc will be greatly appreciated. > > > > Thanks in advance for all your help on this. > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > > > www.freeserve.com/anytime -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ 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 Thu Dec 4 08:43:53 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 4 Dec 2003 14:43:53 -0000 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Message-ID: Seth I am not sure what you mean by post it to a website . I can email direct to you if you wish Richard > -----Original Message----- > From: Seth Galitzer [SMTP:sgsax at ksu.edu] > Sent: 04 December 2003 14:09 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic > 6.0 > > Richard, > > Can you post it to a website and post the URL here? I'd be interested > in this code as well. > > Seth > > On Thu, 2003-12-04 at 03:43, Griffiths, Richard wrote: > > Hi Paul > > > > I can send a zipped file offline if you wish > > > > Richard > > > > > -----Original Message----- > > > From: paul.hartland at fsmail.net [SMTP:paul.hartland at fsmail.net] > > > Sent: 04 December 2003 09:03 > > > To: dba-vb > > > Cc: accessd > > > Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 > > > > > > To all, > > > > > > Does anyone know a way how to create a shortcut on a desktop using > VB6, I > > > have an application that creates various Excel spreadsheets and puts > them > > > into a specified directory. What I then want to do is give the user > an > > > option of creating a shortcut to this Excel sheet onto their desktop. > > > > > > Sample code etc will be greatly appreciated. > > > > > > Thanks in advance for all your help on this. > > > > > > Paul Hartland > > > Database Designer/Developer. > > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > > > > > > www.freeserve.com/anytime > > -- > Seth Galitzer sgsax at ksu.edu > Computing Specialist http://puma.agron.ksu.edu/~sgsax > Dept. of Plant Pathology > Kansas State University > > _______________________________________________ > 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 Thu Dec 4 09:03:20 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:03:20 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: Message-ID: Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:22:38 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:22:38 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Thu Dec 4 09:31:22 2003 From: ebarro at afsweb.com (Eric Barro) Date: Thu, 4 Dec 2003 07:31:22 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070551358.15514.4.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 7:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From sgsax at ksu.edu Thu Dec 4 09:39:02 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:39:02 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173F987@TTNEXCHSRV1.hshhp.com> Message-ID: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From sgsax at ksu.edu Thu Dec 4 09:44:48 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 09:44:48 -0600 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: References: Message-ID: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From jcolby at colbyconsulting.com Thu Dec 4 09:47:50 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 10:47:50 -0500 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <1070552342.15511.22.camel@sgsax-th4022.ksu.edu> Message-ID: Windows scripting host is a tool, nothing more. That's like saying you find knives evil because someone got stabbed. John W. Colby www.ColbyConsulting.com -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer Sent: Thursday, December 04, 2003 10:39 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 Jim, The only problem with that is I view the Windows Scripting Host as EVIL. It ranks right up there with HTML email and Outlook on my list of EVIL things (IMNSHO). I know there are some API calls to create shortcuts, but what I've seen has some limitations. I'm just looking for a A Better Way. Seth On Thu, 2003-12-04 at 08:11, Jim DeMarco wrote: > > Seth, > > If you search the AccessD archives I posted code using the Windows Scripting Host Library that does this (it was a long time ago but I think you should find it). > > Jim DeMarco > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 4 09:50:08 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 4 Dec 2003 09:50:08 -0600 Subject: [dba-VB] Picture and Fax Viewer Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1CF@TAPPEEXCH01> Unfortunately, it is a DLL (shimgvw.dll). Out of curiousity I googled for some info on it. I saw several suggestions saying use the command line rundll32.exe shimgvw.dll,ImageView_Fullscreen, but I couldn't get it to work myself. I tried adding a reference to it in a VB6 project, and browsed through its methods. It has a ShowFile method that appears to load the image, and a Show method that should display it. The Show method has requires a single argument and I can't figure out exactly what it wants. I searched codehound and psc as well, with no success. I'm sure the answer is out there. -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 9:23 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Picture and Fax Viewer Eric, If you know the name of the executable, you could just use ShellExecute(). Seth On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com -------------------------------------------------------------------------------------------------------------------- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the originator of the message. This footer also confirms that this email message has been scanned for the presence of computer viruses. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Tappe Construction Co. Scanning of this message and addition of this footer is performed by SurfControl E-mail Filter software in conjunction with virus detection software. From sgsax at ksu.edu Thu Dec 4 10:19:37 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 04 Dec 2003 10:19:37 -0600 Subject: [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: References: Message-ID: <1070554777.15514.34.camel@sgsax-th4022.ksu.edu> Sorry. I've been using linux a lot more the last several months. I usually keep my EVIL comments to myself. Must've been a lapse in self-control. I need to go meditate now... Seth On Thu, 2003-12-04 at 09:47, John W. Colby wrote: > Windows scripting host is a tool, nothing more. That's like saying you find > knives evil because someone got stabbed. > > John W. Colby > www.ColbyConsulting.com > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From ebarro at afsweb.com Fri Dec 5 16:28:26 2003 From: ebarro at afsweb.com (Eric Barro) Date: Fri, 5 Dec 2003 14:28:26 -0800 Subject: [dba-VB] Picture and Fax Viewer In-Reply-To: <1070552688.15514.26.camel@sgsax-th4022.ksu.edu> Message-ID: Seth, ShellExecute was the solution that worked! Thanks!!! --- Eric Barro Senior Systems Analyst Advanced Field Services (208) 772-7060 http://www.afsweb.com -----Original Message----- From: Seth Galitzer [mailto:sgsax at ksu.edu] Sent: Thursday, December 04, 2003 7:45 AM To: ebarro at afsweb.com; dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Picture and Fax Viewer Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 From paul.hartland at fsmail.net Tue Dec 9 08:59:57 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 9 Dec 2003 15:59:57 +0100 (CET) Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: <18075390.1070981997699.JavaMail.www@wwinf3003> To all, I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. Thanks in advance for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From martyconnelly at shaw.ca Wed Dec 10 00:40:01 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 22:40:01 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors References: <18075390.1070981997699.JavaMail.www@wwinf3003> Message-ID: <3FD6BFC1.2000009@shaw.ca> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada From gray at utah.gov Wed Dec 10 08:23:51 2003 From: gray at utah.gov (Gary Ray) Date: Wed, 10 Dec 2003 07:23:51 -0700 Subject: [dba-VB] Multiple Step Operation Generatted Errors Message-ID: In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion/dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation Generatted Errors, is there any particular reason that this error occurs. We are linking to an Access XP database, and the recordsource for the form is a command from the DataEnvironment. Has anyone else come across this error, if so, why does this happen. >Thanks in advance for all your help. >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From artful at rogers.com Wed Dec 10 13:47:33 2003 From: artful at rogers.com (Arthur Fuller) Date: Wed, 10 Dec 2003 11:47:33 -0800 Subject: [dba-VB] Multiple Step Operation Generatted Errors In-Reply-To: Message-ID: <000501c3bf56$748a9e00$6601a8c0@rock> Another reason for this error is that you are trying to update a view tbat is not updatable. The multiple steps to which the error refers are a delete and an insert. It tries to delete the row then re-insert it with the new values, and errors out. Arthur -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gary Ray Sent: Wednesday, December 10, 2003 6:24 AM To: dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Multiple Step Operation Generatted Errors In my experience this error typically occurs when you are trying to add data to a recordset that is to large for the designated field. I would first check the size of any character fields and see if the data you are sending to it is too large. I am sure there are other reasons for this error, but this is the one I have seen the most. Gary Ray - Application Developer Workforce Information Systems R & D E-Mail gray at utah.gov >>> martyconnelly at shaw.ca 12/09/03 11:40PM >>> You might check what version of Jet you are using; check properties msjet40.dll for version no. then go to http://support.microsoft.com/default.aspx?scid=/servicedesks/fileversion /dllinfo.asp&fp=1 and fill in the blanks. to find out jet release number from dll version number Should be using Jet version 7 or 8 depending on OS Just a guess paul.hartland at fsmail.net wrote: >To all, >I have an application that is giving me Multiple Step Operation >Generatted Errors, is there any particular reason that this error >occurs. We are linking to an Access XP database, and the recordsource >for the form is a command from the DataEnvironment. Has anyone else >come across this error, if so, why does this happen. Thanks in advance >for all your help. Paul Hartland Freeserve AnyTime - HALF PRICE for the >first 3 months - Save ?7.50 a month www.freeserve.com/anytime > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 16 09:48:47 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 16 Dec 2003 16:48:47 +0100 (CET) Subject: [dba-VB] System Settings Etc Message-ID: <26431645.1071589727952.JavaMail.www@wwinf3006> To all, Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. Version of Operating System & Current Service Pack. Version of MS Office & Service Pack. Possibly including processor(s), RAM etc Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 16 10:27:20 2003 From: sgsax at ksu.edu (Seth Galitzer) Date: 16 Dec 2003 10:27:20 -0600 Subject: [dba-VB] System Settings Etc In-Reply-To: <26431645.1071589727952.JavaMail.www@wwinf3006> References: <26431645.1071589727952.JavaMail.www@wwinf3006> Message-ID: <1071592040.6764.3.camel@sgsax-th4022.ksu.edu> Paul, We've just started looking at this "little" app: http://www.aida32.hu/aida32.php I learned about it from one of the Woody's Watch newsletters. We're working on using it for enterprise-wide system inventory. It's very customizable, scans a lot of useful info, and is absolutely free. Don't let the Hungarian TLD worry you. It's good software that delivers what it promises. Seth Disclaimer: I have absolutely no ties to this company. I just really like this tool. On Tue, 2003-12-16 at 09:48, paul.hartland at fsmail.net wrote: > To all, > > Does anyone know of a simple little application that I can run on any PC that will give me a report (along with the option to print out) of System specifications i.e. > > Version of Operating System & Current Service Pack. > Version of MS Office & Service Pack. > > Possibly including processor(s), RAM etc > > Paul Hartland > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University From paul.hartland at fsmail.net Wed Dec 17 03:01:16 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 10:01:16 +0100 (CET) Subject: [dba-VB] Mailmerge Using Word & SQL Server (VB6) Message-ID: <19097147.1071651676550.JavaMail.www@wwinf3005> To all, I am starting to write a mailmerge application for our own internal use, I want the user to be able to select the people they want to mail to and store these in a temporary merge table on SQL Server 7.0 (this I have already done). I also give them the option to select an exisiting Word document or create a new one (also done) . I need to know how (when the user opens the Word document), I can tell the document to look at my temporary merge table on SQL Server 7.0. Anyone know how I can do this as I have never tried to connect a Word document to a datasource via code before. Thanks in advance for any help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From paul.hartland at fsmail.net Wed Dec 17 04:43:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 17 Dec 2003 11:43:38 +0100 (CET) Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <7466440.1071657818093.JavaMail.www@wwinf3005> To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don?t wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Jdemarco at hshhp.org Wed Dec 17 07:08:50 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 17 Dec 2003 08:08:50 -0500 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA35@TTNEXCHSRV1.hshhp.com> Paul, Just set the command button's "Default" property to True. HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, December 17, 2003 5:44 AM To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From bkollodge at parkindustries.com Wed Dec 17 07:38:50 2003 From: bkollodge at parkindustries.com (Bill Kollodge) Date: Wed, 17 Dec 2003 07:38:50 -0600 Subject: [dba-VB] Trigger an OnClick_Event of a button Message-ID: In the KeyPress_Event, call button_click. Bill -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: December 17, 2003 4:44 To: dba-vb Subject: [dba-VB] Trigger an OnClick_Event of a button To all, I have a simple logon screen (username, password, OkButton, CancelButton). Once the user enteres the password they either have to tab off it to go to the OkButton or just click the OkButton. They (including the powers that be) now want to press Enter/Return in the password field and logon. I used the KeyPress_Event to detect for Enter and move the focus to the ok button, now I need to trigger the OkButtons OnClick_Event. Anyone any ideas how I can trigger the event, I know I could just put the same code in the KeyPress_Event of the password field (but really don't wish to do that). Thanks in advance for all your help Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 30 03:49:43 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 30 Dec 2003 10:49:43 +0100 (CET) Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <12970890.1072777783067.JavaMail.www@wwinf3001> To all, We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. Has anyone ever done this and can tell me how to go about it Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From sgsax at ksu.edu Tue Dec 30 21:11:16 2003 From: sgsax at ksu.edu (Seth D. Galitzer) Date: Tue, 30 Dec 2003 21:11:16 -0600 Subject: [dba-VB] Displaying SQL Bit Data Type As Checkbox Message-ID: <3FF76DCD@webmail.ksu.edu> Paul, I don't know about specific caveats for a data grid control (or for converting data on the fly from SQL server for that matter), but does using CBool() (either in a stored proc or setting the checkbox value in the OnCurrent event) not work? Seth >===== Original Message From paul.hartland at fsmail.net, dba-vb at databaseadvisors.com ===== >To all, > >We are in the process of converting an old Access application to a Visual Basic 6 front-end and SQL Server 7.0 back-end. The problem I am getting is how to display a Bit Data Type as a Checkbox in a DataGrid. > >Has anyone ever done this and can tell me how to go about it > >Thanks in advance. > >Paul Hartland >Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month >www.freeserve.com/anytime >_______________________________________________ >dba-VB mailing list >dba-VB at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/dba-vb >http://www.databaseadvisors.com The beatings will continue until morale has improved. From paul.hartland at fsmail.net Wed Dec 31 03:23:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 31 Dec 2003 10:23:58 +0100 (CET) Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <21900444.1072862638247.JavaMail.www@wwinf3004> To all, I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. Anyone any ideas how to do this. Thanks in advance. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From my.lists at verizon.net Wed Dec 31 11:34:58 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 31 Dec 2003 09:34:58 -0800 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 In-Reply-To: <21900444.1072862638247.JavaMail.www@wwinf3004> References: <21900444.1072862638247.JavaMail.www@wwinf3004> Message-ID: <3FF308C2.20708@verizon.net> paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco From LChristian at MassMutual.com Wed Dec 31 12:15:45 2003 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 31 Dec 2003 13:15:45 -0500 Subject: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 Message-ID: <5B898D9F0627974EB82D0645E52B1E7D035CB9AD@EXMBPR03.na.mmfg.net> Hi there! Not be near my source code. Would something like this help? Public Sub AutoNumber() Dim cmd As New ADODB.Command cmd.ActiveConnection = myConn2 cmd.CommandType = adCmdStoredProc cmd.CommandText = "NBPHI.NEXT_INTVW_ID_NR" cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Parameters.Append cmd.CreateParameter(, adInteger, adParamOutput) cmd.Execute iErrorResponse = cmd.Parameters(0).Value If cmd.Parameters(0).Value = 0 Then intKey = cmd.Parameters(1).Value Else MsgBox "An error occured creating this record. Contact your support", vbCritical End If End Sub HTHs Lorraine Happy New Year -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Wednesday, December 31, 2003 12:35 PM To: paul.hartland at fsmail.net; dba-vb at databaseadvisors.com Subject: Re: [dba-VB] Calling SQL Stored Procedure From Visual Basic 6 paul.hartland at fsmail.net wrote: >To all, > >I am currently writing a visual basic application with which the back-end will be on SQL Server 7.0. I currently have a data environment with a command object that links to a stored procedure on the SQL Server. What I want to be able to do is do away with the DataEnvironment and execute the stored procedure from a module and pass the results (i.e. if I had a SELECT SP into a recordset. > >Anyone any ideas how to do this. > >Thanks in advance. > >Paul Hartland > > Use ADO. for help on ADO check your online help, MSDN or http://www.able-consulting.com/tech.htm -- -Francisco _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com --------------------------------------------------------- This e-mail transmission may contain information that is proprietary, privileged and/or confidential and is intended exclusively for the person(s) to whom it is addressed. Any use, copying, retention or disclosure by any person other than the intended recipient or the intended recipient's designees is strictly prohibited. If you are not the intended recipient or their designee, please notify the sender immediately by return e-mail and delete all copies. ---------------------------------------------------------