From my.lists at verizon.net Mon Dec 1 00:10:49 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Sun, 30 Nov 2003 22:10:49 -0800 Subject: [AccessD] Registry tweaks In-Reply-To: References: Message-ID: <3FCADB69.40709@verizon.net> John, This is cool, I never really thought of compiling anything like this.. it's a great project, are you going to store keys based on OS flavor? (ie, 9x/NT/2k/XP). Additionally are you going to use the internal vba calls to the registry or the APIs? :D. thanks. John W. Colby wrote: > Have ya ever... wished you had a place to store all the registry tweaks you > run across? I have run across so many things where they tell you to go to > the registry and set / clear / delete some entry. I can NEVER remember > where I found the tweak, but I always remember I was supposed to do some > unnamed thing to make something happen. > > It all started with securing IIS. An article I ran across gives a handful > of registry tweaks to tighten up security. Of course I can use regedit but > how blas? > > Well I just whipped out a little database to hold the key / value name / > value and a memo about the registry key, as well as a parent "topic" table > that lets me organize the entries by a topic of my choosing, complete with > memo. At the moment you have to type the registry key / value name / value > in, but once you do you can press a button and the entry is created in the > registry. It uses a registry class for anyone interested in how to read / > write the registry (or doesn't want to write their own) courtesy of a VB > Techniques article written by Eric Smith on 3/29/2000. I also use a few > withevent classes for those of you who want to see how I use Withevents to > run the basic forms. > > I may (probably will) eventually write code to back up an existing key > before modification, read registry chunks into the table etc. Not there > yet. > > I think it would be cool to organize a huge "registry tweak" database where > anyone interested gets this database and enters their favorite tweak, then > donates their tweaks to a pool. I can take care of merging everyone's > tweaks into a single database and get the resulting pool up on my web site. > > Anyone interested? Anyone know of a public domain db that I can get tweaks > already in a db? > > John W. Colby > www.ColbyConsulting.com -- -Francisco From stuart at pacific.net.hk Mon Dec 1 06:22:50 2003 From: stuart at pacific.net.hk (Stuart Sanders) Date: Mon, 1 Dec 2003 20:22:50 +0800 Subject: [AccessD] Registry tweaks In-Reply-To: <3FCADB69.40709@verizon.net> Message-ID: I agree it's a good idea. I'd be willing to help. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Francisco H Tapia > Sent: Monday, 01 December, 2003 2:11 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Registry tweaks > > > John, > This is cool, I never really thought of compiling anything like > this.. it's a great project, are you going to store keys based on OS > flavor? (ie, 9x/NT/2k/XP). Additionally are you going to use the > internal vba calls to the registry or the APIs? > > :D. thanks. > > John W. Colby wrote: > > > Have ya ever... wished you had a place to store all the > registry tweaks you > > run across? I have run across so many things where they > tell you to go to > > the registry and set / clear / delete some entry. I can > NEVER remember > > where I found the tweak, but I always remember I was > supposed to do some > > unnamed thing to make something happen. > > > > It all started with securing IIS. An article I ran across > gives a handful > > of registry tweaks to tighten up security. Of course I can > use regedit but > > how blas? > > > > Well I just whipped out a little database to hold the key / > value name / > > value and a memo about the registry key, as well as a > parent "topic" table > > that lets me organize the entries by a topic of my > choosing, complete with > > memo. At the moment you have to type the registry key / > value name / value > > in, but once you do you can press a button and the entry is > created in the > > registry. It uses a registry class for anyone interested > in how to read / > > write the registry (or doesn't want to write their own) > courtesy of a VB > > Techniques article written by Eric Smith on 3/29/2000. I > also use a few > > withevent classes for those of you who want to see how I > use Withevents to > > run the basic forms. > > > > I may (probably will) eventually write code to back up an > existing key > > before modification, read registry chunks into the table > etc. Not there > > yet. > > > > I think it would be cool to organize a huge "registry > tweak" database where > > anyone interested gets this database and enters their > favorite tweak, then > > donates their tweaks to a pool. I can take care of merging > everyone's > > tweaks into a single database and get the resulting pool up > on my web site. > > > > Anyone interested? Anyone know of a public domain db that > I can get tweaks > > already in a db? > > > > John W. Colby > > www.ColbyConsulting.com > > > > -- > -Francisco > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jcolby at colbyconsulting.com Mon Dec 1 06:49:50 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 1 Dec 2003 07:49:50 -0500 Subject: [AccessD] Registry tweaks In-Reply-To: <3FCADB69.40709@verizon.net> Message-ID: Francisco, The class I found and use uses api calls for the registry stuff. I am looking at doing this in parallel in VB.Net. VB.Net has a built-in registry class which would be used. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Monday, December 01, 2003 1:11 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Registry tweaks John, This is cool, I never really thought of compiling anything like this.. it's a great project, are you going to store keys based on OS flavor? (ie, 9x/NT/2k/XP). Additionally are you going to use the internal vba calls to the registry or the APIs? :D. thanks. John W. Colby wrote: > Have ya ever... wished you had a place to store all the registry tweaks you > run across? I have run across so many things where they tell you to go to > the registry and set / clear / delete some entry. I can NEVER remember > where I found the tweak, but I always remember I was supposed to do some > unnamed thing to make something happen. > > It all started with securing IIS. An article I ran across gives a handful > of registry tweaks to tighten up security. Of course I can use regedit but > how blas? > > Well I just whipped out a little database to hold the key / value name / > value and a memo about the registry key, as well as a parent "topic" table > that lets me organize the entries by a topic of my choosing, complete with > memo. At the moment you have to type the registry key / value name / value > in, but once you do you can press a button and the entry is created in the > registry. It uses a registry class for anyone interested in how to read / > write the registry (or doesn't want to write their own) courtesy of a VB > Techniques article written by Eric Smith on 3/29/2000. I also use a few > withevent classes for those of you who want to see how I use Withevents to > run the basic forms. > > I may (probably will) eventually write code to back up an existing key > before modification, read registry chunks into the table etc. Not there > yet. > > I think it would be cool to organize a huge "registry tweak" database where > anyone interested gets this database and enters their favorite tweak, then > donates their tweaks to a pool. I can take care of merging everyone's > tweaks into a single database and get the resulting pool up on my web site. > > Anyone interested? Anyone know of a public domain db that I can get tweaks > already in a db? > > John W. Colby > www.ColbyConsulting.com -- -Francisco _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Dec 1 07:23:38 2003 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 1 Dec 2003 08:23:38 -0500 Subject: [AccessD] Test Message-ID: <000901c3b80e$550af420$8b194244@hargrove.internal> Test Mike and Doris Manning mikedorism at adelphia.net From carbonnb at sympatico.ca Mon Dec 1 08:16:35 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Mon, 01 Dec 2003 09:16:35 -0500 Subject: [AccessD] Test In-Reply-To: <000901c3b80e$550af420$8b194244@hargrove.internal> Message-ID: <3FCB06F3.2002.2A71B3@localhost> On 1 Dec 2003 at 8:23, Mike & Doris Manning wrote: > Test You passed this one Dorris. But based on the time, I think one of the mods passed you the answers :-) -- Bryan Carbonnell - carbonnb at sympatico.ca Eat one live toad the first thing in the morning and nothing worse will happen to you the rest of the day. From JRojas at tnco-inc.com Mon Dec 1 08:32:54 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 1 Dec 2003 09:32:54 -0500 Subject: [AccessD] Slightly OT: Outlook 2K Object Model Message-ID: <806536912C472E4A9D6515DF2E57261E239600@mercury.tnco-inc.com> Hi All, I am asking this question here because I am sure that some of us have undoubtably come across a situation where there was a need to programmatically control Outlook. I am looking for a good reference to the Outlook (2000) object model. Something that will explain all the events and objects that are available. Anyone know of such a reference? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From ssharkins at bellsouth.net Mon Dec 1 08:35:54 2003 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 1 Dec 2003 09:35:54 -0500 Subject: [AccessD] Slightly OT: Outlook 2K Object Model References: <806536912C472E4A9D6515DF2E57261E239600@mercury.tnco-inc.com> Message-ID: <006f01c3b818$6e294470$240110ac@SUSANONE> I know there's one on MSDN. That's what I use. msdn.microsoft.com/library/defalt.asp?url=/library/en-us/modcore/html/deovrm icrosoftoutlook2000.asp. I don't know if the model's changed since 2000 or not -- could be another one there that I've just not found. Susan H. > Hi All, > > I am asking this question here because I am sure that some of us have > undoubtably come across a situation where there was a need to > programmatically control Outlook. > > I am looking for a good reference to the Outlook (2000) object model. > Something that will explain all the events and objects that are available. > > Anyone know of such a reference? > > Thanks! > JR > > > > > This electronic transmission is strictly confidential to TNCO, Inc. and > intended solely for the addressee. It may contain information which is > covered by legal, professional, or other privileges. If you are not the > intended addressee, or someone authorized by the intended addressee to > receive transmissions on behalf of the addressee, you must not retain, > disclose in any form, copy, or take any action in reliance on this > transmission. If you have received this transmission in error, please notify > the sender as soon as possible and destroy this message. While TNCO, Inc. > uses virus protection, the recipient should check this email and any > attachments for the presence of viruses. TNCO, Inc. accepts no liability for > any damage caused by any virus transmitted by this email. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From roz.clarke at donnslaw.co.uk Mon Dec 1 08:37:28 2003 From: roz.clarke at donnslaw.co.uk (Roz Clarke) Date: Mon, 1 Dec 2003 14:37:28 -0000 Subject: [AccessD] Test Message-ID: <61F915314798D311A2F800A0C9C83188047C67C0@dibble.observatory.donnslaw.co.uk> And you pass the test for logic, Bryan, if not the spelling test... ;) -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: 01 December 2003 14:17 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Test On 1 Dec 2003 at 8:23, Mike & Doris Manning wrote: > Test You passed this one Dorris. But based on the time, I think one of the mods passed you the answers :-) -- Bryan Carbonnell - carbonnb at sympatico.ca Eat one live toad the first thing in the morning and nothing worse will happen to you the rest of the day. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Mon Dec 1 08:45:35 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Mon, 01 Dec 2003 09:45:35 -0500 Subject: [AccessD] Test In-Reply-To: <61F915314798D311A2F800A0C9C83188047C67C0@dibble.observatory.donnslaw.co.uk> Message-ID: <3FCB0DBF.20131.44FEDB@localhost> On 1 Dec 2003 at 14:37, Roz Clarke wrote: > And you pass the test for logic, Bryan, if not the spelling test... > > ;) Hey, speeling is not one of my strong points :-) -- Bryan Carbonnell - carbonnb at sympatico.ca Code so clean...you can eat off it. From JRojas at tnco-inc.com Mon Dec 1 09:01:10 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 1 Dec 2003 10:01:10 -0500 Subject: [AccessD] Slightly OT: Outlook 2K Object Model Message-ID: <806536912C472E4A9D6515DF2E57261E239601@mercury.tnco-inc.com> Thanks Susan. I never seem to have any luck finding this stuff on MSDN myself. Thanks for the link. JR -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, December 01, 2003 9:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Slightly OT: Outlook 2K Object Model I know there's one on MSDN. That's what I use. msdn.microsoft.com/library/defalt.asp?url=/library/en-us/modcore/html/deovrm icrosoftoutlook2000.asp. I don't know if the model's changed since 2000 or not -- could be another one there that I've just not found. Susan H. > Hi All, > > I am asking this question here because I am sure that some of us have > undoubtably come across a situation where there was a need to > programmatically control Outlook. > > I am looking for a good reference to the Outlook (2000) object model. > Something that will explain all the events and objects that are available. > > Anyone know of such a reference? > > Thanks! > JR > > > > > This electronic transmission is strictly confidential to TNCO, Inc. and > intended solely for the addressee. It may contain information which is > covered by legal, professional, or other privileges. If you are not the > intended addressee, or someone authorized by the intended addressee to > receive transmissions on behalf of the addressee, you must not retain, > disclose in any form, copy, or take any action in reliance on this > transmission. If you have received this transmission in error, please notify > the sender as soon as possible and destroy this message. While TNCO, Inc. > uses virus protection, the recipient should check this email and any > attachments for the presence of viruses. TNCO, Inc. accepts no liability for > any damage caused by any virus transmitted by this email. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From rgilimited at btconnect.com Mon Dec 1 09:22:01 2003 From: rgilimited at btconnect.com (Robin Lawrence) Date: Mon, 1 Dec 2003 15:22:01 -0000 Subject: [AccessD] Slightly OT: Outlook 2K Object Model In-Reply-To: <806536912C472E4A9D6515DF2E57261E239600@mercury.tnco-inc.com> Message-ID: <000001c3b81e$dec7edc0$5373a8c0@local> Joe, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k 2/html/odc_oldevsol.asp HTH Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: 01 December 2003 14:33 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slightly OT: Outlook 2K Object Model Hi All, I am asking this question here because I am sure that some of us have undoubtably come across a situation where there was a need to programmatically control Outlook. I am looking for a good reference to the Outlook (2000) object model. Something that will explain all the events and objects that are available. Anyone know of such a reference? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From liam at energyexhausts.co.uk Mon Dec 1 09:25:47 2003 From: liam at energyexhausts.co.uk (Liam Meadows) Date: Mon, 1 Dec 2003 15:25:47 -0000 Subject: [AccessD] Excel Function (Proper) Message-ID: <125066531861D043863CE6453EE8509EB7B8@energys1.energy.local> In Excel there is a function called Proper which will tidy up text strings, is there an Access version of this function ? Liam From carbonnb at sympatico.ca Mon Dec 1 09:33:55 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Mon, 01 Dec 2003 10:33:55 -0500 Subject: [AccessD] Registry tweaks In-Reply-To: References: <3FCADB69.40709@verizon.net> Message-ID: <3FCB1913.9304.71421C@localhost> On 1 Dec 2003 at 7:49, John W. Colby wrote: > > Have ya ever... wished you had a place to store all the registry > > tweaks > you > > Anyone interested? Anyone know of a public domain db that I can get > tweaks > > already in a db? I just stumbled across this, right from the horses ... mouth :-) http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scr iptcenter/tools/twkmatic.asp It does claims to do what TweakUI does, but it will generate a script so you can "move" the tweak from PC to PC. There are only 251 tweaks in the A2K mdb. -- Bryan Carbonnell - carbonnb at sympatico.ca I DON'T HAVE AN ATTITUDE PROBLEM, YOU HAVE A PERCEPTION PROBLEM. From BBarabash at TappeConstruction.com Mon Dec 1 09:38:07 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 1 Dec 2003 09:38:07 -0600 Subject: [AccessD] Excel Function (Proper) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1A2@TAPPEEXCH01> StrConv(,vbProperCase) There is a much better proper case conversion routine written by Dave Bell. John Colby has it on his site at: http://www.colbyconsulting.com/UsefulFiles/ProperCase.zip -----Original Message----- From: Liam Meadows [mailto:liam at energyexhausts.co.uk] Sent: Monday, December 01, 2003 9:26 AM To: Access Developers discussion and problem solving Subject: [AccessD] Excel Function (Proper) In Excel there is a function called Proper which will tidy up text strings, is there an Access version of this function ? Liam -------------------------------------------------------------------------------------------------------------------- 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 Lembit.Soobik at t-online.de Mon Dec 1 10:01:06 2003 From: Lembit.Soobik at t-online.de (Lembit Soobik) Date: Mon, 1 Dec 2003 17:01:06 +0100 Subject: [AccessD] Registry tweaks References: Message-ID: <012201c3b824$54717140$0200a8c0@S856> I'm a little late in reading this, sorry. Great idea, John! like to participate Lembit Soobik ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Thursday, November 27, 2003 6:19 PM Subject: [AccessD] Registry tweaks > Have ya ever... wished you had a place to store all the registry tweaks you > run across? I have run across so many things where they tell you to go to > the registry and set / clear / delete some entry. I can NEVER remember > where I found the tweak, but I always remember I was supposed to do some > unnamed thing to make something happen. > > It all started with securing IIS. An article I ran across gives a handful > of registry tweaks to tighten up security. Of course I can use regedit but > how blas? > > Well I just whipped out a little database to hold the key / value name / > value and a memo about the registry key, as well as a parent "topic" table > that lets me organize the entries by a topic of my choosing, complete with > memo. At the moment you have to type the registry key / value name / value > in, but once you do you can press a button and the entry is created in the > registry. It uses a registry class for anyone interested in how to read / > write the registry (or doesn't want to write their own) courtesy of a VB > Techniques article written by Eric Smith on 3/29/2000. I also use a few > withevent classes for those of you who want to see how I use Withevents to > run the basic forms. > > I may (probably will) eventually write code to back up an existing key > before modification, read registry chunks into the table etc. Not there > yet. > > I think it would be cool to organize a huge "registry tweak" database where > anyone interested gets this database and enters their favorite tweak, then > donates their tweaks to a pool. I can take care of merging everyone's > tweaks into a single database and get the resulting pool up on my web site. > > Anyone interested? Anyone know of a public domain db that I can get tweaks > already in a db? > > John W. Colby > www.ColbyConsulting.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Mon Dec 1 10:08:23 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 1 Dec 2003 11:08:23 -0500 Subject: [AccessD] Slightly OT: Outlook 2K Object Model Message-ID: <806536912C472E4A9D6515DF2E57261E239603@mercury.tnco-inc.com> Thanks for the link Robin! When I was viewing the object model on MSDN, it made reference to a file call vbaol10.chm for details on the object model. It turns out the file name is really vbaoutl9.chm, but this file is exactly what I was looking for! Thanks again! JR -----Original Message----- From: Robin Lawrence [mailto:rgilimited at btconnect.com] Sent: Monday, December 01, 2003 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Slightly OT: Outlook 2K Object Model Joe, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k 2/html/odc_oldevsol.asp HTH Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: 01 December 2003 14:33 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slightly OT: Outlook 2K Object Model Hi All, I am asking this question here because I am sure that some of us have undoubtably come across a situation where there was a need to programmatically control Outlook. I am looking for a good reference to the Outlook (2000) object model. Something that will explain all the events and objects that are available. Anyone know of such a reference? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From Oleg_123 at xuppa.com Mon Dec 1 10:10:51 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 1 Dec 2003 11:10:51 -0500 (EST) Subject: [AccessD] Format ? In-Reply-To: <012201c3b824$54717140$0200a8c0@S856> References: <012201c3b824$54717140$0200a8c0@S856> Message-ID: <40866.12.3.132.98.1070295051.squirrel@heck.bay9.com> Hey, I don't understand what is trying to be achieved here ? Iget a null when I just do (Format(Now()-7,"mm-dd")) The format in Auddate column is "mm-dd" WHERE (((audit.AUDDATE)>=Format(Now()-7,"mm-dd") And (audit.AUDDATE)<=Format(Now()-3,"mm-dd")) AND ((Val(Left([employee status],1)))<>5 Or (Val(Left([employee status],1)))=9) AND ((Left([ACTCODE],1))="1")) ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From wdhindman at bellsouth.net Mon Dec 1 10:18:11 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 11:18:11 -0500 Subject: [AccessD] Registry tweaks References: <3FCADB69.40709@verizon.net> <3FCB1913.9304.71421C@localhost> Message-ID: <007701c3b826$b8b232a0$6101a8c0@dejpolsys> ...really great find Bryan!!!!! William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 10:33 AM Subject: RE: [AccessD] Registry tweaks > On 1 Dec 2003 at 7:49, John W. Colby wrote: > > > > Have ya ever... wished you had a place to store all the registry > > > tweaks > > you > > > > Anyone interested? Anyone know of a public domain db that I can get > > tweaks > > > already in a db? > > I just stumbled across this, right from the horses ... mouth :-) > > http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scr > iptcenter/tools/twkmatic.asp > > It does claims to do what TweakUI does, but it will generate a script > so you can "move" the tweak from PC to PC. > > There are only 251 tweaks in the A2K mdb. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > I DON'T HAVE AN ATTITUDE PROBLEM, YOU HAVE A PERCEPTION PROBLEM. > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From conny at qad.se Mon Dec 1 10:25:27 2003 From: conny at qad.se (Conny Johansson) Date: Mon, 1 Dec 2003 17:25:27 +0100 Subject: [AccessD] Slightly OT: Outlook 2K Object Model In-Reply-To: <806536912C472E4A9D6515DF2E57261E239600@mercury.tnco-inc.com> Message-ID: <20031201162627.83A962B107@boxmail1.box.se> Here you can find the extended object model And here you'll find a lot of explanations and samples Regards Conny Johansson -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: den 1 december 2003 15:33 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slightly OT: Outlook 2K Object Model Hi All, I am asking this question here because I am sure that some of us have undoubtably come across a situation where there was a need to programmatically control Outlook. I am looking for a good reference to the Outlook (2000) object model. Something that will explain all the events and objects that are available. Anyone know of such a reference? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _____ avast! Antivirus : Outbound message clean. Virus Database (VPS): 2003-11-28 Tested on: 2003-12-01 17:25:27 avast! is copyright (c) 2000-2003 ALWIL Software. From cfoust at infostatsystems.com Mon Dec 1 10:25:53 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 Dec 2003 08:25:53 -0800 Subject: [AccessD] Table Linking in Access 2000 Message-ID: Did you include a warning that ADO tends to be slower in creating links that DAO? At least that's been my experience. I only use ADO for this in a situation where DAO is not being used at all. Charlotte Foust -----Original Message----- From: Steve Goodhall [mailto:sgoodhall at comcast.net] Sent: Saturday, November 29, 2003 3:31 PM To: Access Developers discussion and problem solving Subject: [AccessD] Table Linking in Access 2000 I know that some of you picked up my Access97 routines that dynamically link to back-end tables because I get an occasional question. I finally got around to rewriting them for Access2000, that is to use ADO rather than DAO to create the links. I have posted a sample database and documentation to my web site, www.goodhall.info/steve. Click on "Useful Software" on the left frame and download the first item. Feel free to use these subject to the specified conditions which mostly consist of retaining the Copyright notices. As usual, there is no warranty expressed or implied. Regards, Steve Goodhall _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 1 10:30:04 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 Dec 2003 08:30:04 -0800 Subject: [AccessD] Cut Paste actionto tabsheet looses events. Message-ID: That happens when you move a control between sections of a report as well, Erwin. JC suggested cutting the code and pasting it back into the module, which *should* reestablish the connection. Charlotte Foust -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, November 28, 2003 6:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cut Paste actionto tabsheet looses events. When you cut and past controls to move controls from a tabsheets control (?! don't know correct name in English) they always looses their events.... The code is still there, but in the properties is no longer eventprocedure (?!) marked. So if you click on the tree dots the event is back. But that would take me to go over each control and verify the code if which events exists for which control. Is there a way that Access will put the events in the properties automaticaly? A cut and past is necesary because moving to a tab does not work... Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Dec 1 10:38:38 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 1 Dec 2003 10:38:38 -0600 Subject: [AccessD] Cut Paste actionto tabsheet looses events. Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1A3@TAPPEEXCH01> Also, even after cutting & pasting the module code, it sometimes has a tendency of being disconnected from the control. Make sure it says [Event Procedure] the desired event in your control's property sheet after pasting the code to your module. -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 01, 2003 10:30 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Cut Paste actionto tabsheet looses events. That happens when you move a control between sections of a report as well, Erwin. JC suggested cutting the code and pasting it back into the module, which *should* reestablish the connection. Charlotte Foust -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, November 28, 2003 6:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cut Paste actionto tabsheet looses events. When you cut and past controls to move controls from a tabsheets control (?! don't know correct name in English) they always looses their events.... The code is still there, but in the properties is no longer eventprocedure (?!) marked. So if you click on the tree dots the event is back. But that would take me to go over each control and verify the code if which events exists for which control. Is there a way that Access will put the events in the properties automaticaly? A cut and past is necesary because moving to a tab does not work... Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Mark.Mitsules at ngc.com Mon Dec 1 11:02:01 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 1 Dec 2003 12:02:01 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Dec 1 11:23:56 2003 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 1 Dec 2003 12:23:56 -0500 Subject: [AccessD] Format ? In-Reply-To: <40866.12.3.132.98.1070295051.squirrel@heck.bay9.com> Message-ID: <005601c3b82f$e6d8fde0$8b194244@hargrove.internal> Now() = Current date/time Now() - 7 = Current time on the date that was seven days ago... Now() - 3 = Current time on the date that was three days ago... Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Monday, December 01, 2003 11:11 AM To: accessd at databaseadvisors.com Subject: [AccessD] Format ? Hey, I don't understand what is trying to be achieved here ? Iget a null when I just do (Format(Now()-7,"mm-dd")) The format in Auddate column is "mm-dd" WHERE (((audit.AUDDATE)>=Format(Now()-7,"mm-dd") And (audit.AUDDATE)<=Format(Now()-3,"mm-dd")) AND ((Val(Left([employee status],1)))<>5 Or (Val(Left([employee status],1)))=9) AND ((Left([ACTCODE],1))="1")) ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rgilimited at btconnect.com Mon Dec 1 11:22:02 2003 From: rgilimited at btconnect.com (Robin Lawrence) Date: Mon, 1 Dec 2003 17:22:02 -0000 Subject: [AccessD] Slightly OT: Outlook 2K Object Model In-Reply-To: <806536912C472E4A9D6515DF2E57261E239603@mercury.tnco-inc.com> Message-ID: <000201c3b82f$a303e120$5373a8c0@local> Joe, Nice to be able to help on this list (even on an OT)- always outgunned by the formidable weight of knowledge and speed of reply here... Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: 01 December 2003 16:08 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Slightly OT: Outlook 2K Object Model Thanks for the link Robin! When I was viewing the object model on MSDN, it made reference to a file call vbaol10.chm for details on the object model. It turns out the file name is really vbaoutl9.chm, but this file is exactly what I was looking for! Thanks again! JR -----Original Message----- From: Robin Lawrence [mailto:rgilimited at btconnect.com] Sent: Monday, December 01, 2003 10:22 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Slightly OT: Outlook 2K Object Model Joe, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k 2/html/odc_oldevsol.asp HTH Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Rojas Sent: 01 December 2003 14:33 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slightly OT: Outlook 2K Object Model Hi All, I am asking this question here because I am sure that some of us have undoubtably come across a situation where there was a need to programmatically control Outlook. I am looking for a good reference to the Outlook (2000) object model. Something that will explain all the events and objects that are available. Anyone know of such a reference? Thanks! JR This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Mon Dec 1 12:04:55 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Mon, 01 Dec 2003 13:04:55 -0500 Subject: [AccessD] Registry tweaks In-Reply-To: <007701c3b826$b8b232a0$6101a8c0@dejpolsys> Message-ID: <3FCB3C77.14819.FB7D7B@localhost> On 1 Dec 2003 at 11:18, William Hindman wrote: > ...really great find Bryan!!!!! > > On 1 Dec 2003 at 7:49, John W. Colby wrote: > > > > Anyone interested? Anyone know of a public domain db that I can > > > > get > > > tweaks > > > > already in a db? > > > > I just stumbled across this, right from the horses ... mouth :-) > > > > http://www.microsoft.com/technet/treeview/default.asp?url=/technet/s > > cr iptcenter/tools/twkmatic.asp I wish I could take credit for it. I came across it in this week's Langa List. I forgot to mention, read the page. It makes for some good reading. Almost as good as mods are like Santa :-)) -- Bryan Carbonnell - carbonnb at sympatico.ca Tell me what you need, and I'll tell you how to get along without it. From Jdemarco at hshhp.org Mon Dec 1 12:19:05 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Mon, 1 Dec 2003 13:19:05 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99022B0A93@TTNEXCHSRV1.hshhp.com> Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 MPorter at acsalaska.com Mon Dec 1 12:22:08 2003 From: MPorter at acsalaska.com (Porter, Mark) Date: Mon, 1 Dec 2003 09:22:08 -0900 Subject: [AccessD] Word templates from Access Message-ID: Does anyone have any code snippets that shows how to send an Access querydef to a Word mail merge template? I have a client with quite a few form letters they would like to send data too. Mark *********************************************************************************** 1/12/2003 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From lists at theopg.com Mon Dec 1 13:05:02 2003 From: lists at theopg.com (MarkH) Date: Mon, 1 Dec 2003 19:05:02 -0000 Subject: [AccessD] XP deveoper, Office 97 and a changing OS In-Reply-To: <002d01c3b39a$ebc86460$6001a8c0@dejpolsys> Message-ID: <000001c3b83e$176b58a0$300d6bd5@netboxxp> Hello... Our network is currently running Windows 2000 and Office 97. The IT guys (bless 'em) are planning to upgrade to Windows XP and Office XP (standard with no Access) sometime next Spring. Our department is, sort of, one step ahead. We are currently developing a couple of applications using Office XP (on a separate laptop) and have just purchased XP Developer with a view to upgrading some older apps as well as develping the new ones. I have 3 question then: 1) Has anyone had problems installing XP developer over 97 professional? Particularly in relation to generating XP runtime installs. 2) Any problems running XP runtime over 97 prof on Win 2000? 3) The tricky one... When the IT guys do upgrade these machines will there be activation problems when we re-install XP developer? The hardware will not change at all, just the OS. Thanks in advance mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 From jim.hale at fleetpride.com Mon Dec 1 13:03:09 2003 From: jim.hale at fleetpride.com (Hale, Jim) Date: Mon, 1 Dec 2003 13:03:09 -0600 Subject: [AccessD] [dba-VB] TransferSpreadsheet, TransferText Message-ID: <869379ABF177D4118D3100508B5EF873063952E8@corp-es00> Here are some code fragments to read a simple Excel flat file into an Access table. If you need to read "random" cells from a spreadsheet I can post code for that too if it would help. Jim Hale 'This loads the source data 'opens the ARdata table DoCmd.RunSQL "DELETE tblARdata.* FROM tblARdata;" Set rstBase(3) = db.OpenRecordset("tblARdata", dbOpenTable) .Worksheets("ARData").Select .Range("A2").Select 'select first cell of first record to read Do While Not IsEmpty(ActiveCell) rstBase(3).AddNew 'create records in output table rstBase(3).Fields("descr") = .ActiveCell.Offset(0, 0) rstBase(3).Fields("AR_co1") = .ActiveCell.Offset(0, 1) rstBase(3).Fields("AR_co2") = .ActiveCell.Offset(0, 2) If Not IsNull(rstBase(3).Fields("descr")) = True Then rstBase(3).Update .ActiveCell.Offset(1, 0).Select 'find first cell of next record Loop -----Original Message----- From: StaRKeY [mailto:starkey at wanadoo.nl] Sent: Friday, November 28, 2003 10:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] [dba-VB] TransferSpreadsheet, TransferText Hi Paul, sorry no code but in VB you should use the Objectmodel of Excel. Create a new instance and set the worksheet to the file. Then using the objectmodel you're able to read out the specific values and append them to a table using a recordset/SQL. I assume the sheet will always look the same or is used only once. Regards, Eric STarkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: vrijdag 28 november 2003 13:07 To: dba-vb Cc: accessd Subject: [AccessD] [dba-VB] TransferSpreadsheet, TransferText To all, I'm writing a VB application which I need to import an Excel spreadsheet and/or a text file into a database.....Is there a VB command similar to this or does someone have some sample code that I could see to get me started... Thanks in advance Paul Hartland _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 28-11-2003 Tested on: 28-11-2003 17:48:26 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Dec 1 13:21:04 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 14:21:04 -0500 Subject: [AccessD] Word templates from Access References: Message-ID: <000f01c3b840$43c1fbf0$6101a8c0@dejpolsys> Mark ...this works for my needs ...HTH :) Function ShowBadges() Dim objWord As Word.Document Set objWord = GetObject("F:\Document Masters\Exhibitor Documents\ExhibitorBadges.doc", "Word.Document") ' Make Word visible. objWord.Application.Visible = True ' Set the mail merge data source as the EMSReports database. objWord.MailMerge.OpenDataSource _ Name:="C:\Program Files\EMSReports\emsreports.mdb", _ LinkToSource:=True, _ Connection:="QUERY qryEMSBadgeFlag", _ SQLStatement:="Select * from [qryEMSBadgeFlag]" ' Execute the mail merge. objWord.MailMerge.Execute End Function William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Porter, Mark" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 01, 2003 1:22 PM Subject: RE: [AccessD] Word templates from Access > > Does anyone have any code snippets that shows how to send an Access querydef > to a Word mail merge template? > > I have a client with quite a few form letters they would like to send data > too. > > Mark > > > > > > **************************************************************************** ******* > 1/12/2003 > This transmittal may contain confidential information intended solely for > the addressee. If you are not the intended recipient, you are hereby > notified that you have received this transmittal in error; any review, > dissemination, distribution or copying of this transmittal is strictly > prohibited. If you have received this communication in error, please notify > us immediately by reply or by telephone (collect at 907-564-1000) and ask to > speak with the message sender. In addition, please immediately delete this > message and all attachments. Thank you. ACS > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Mon Dec 1 13:22:56 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 14:22:56 -0500 Subject: [AccessD] XP deveoper, Office 97 and a changing OS References: <000001c3b83e$176b58a0$300d6bd5@netboxxp> Message-ID: <001501c3b840$865f5c00$6101a8c0@dejpolsys> ...no, no, no :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 01, 2003 2:05 PM Subject: [AccessD] XP deveoper, Office 97 and a changing OS > Hello... > > Our network is currently running Windows 2000 and Office 97. > The IT guys (bless 'em) are planning to upgrade to Windows XP and Office > XP (standard with no Access) sometime next Spring. > > Our department is, sort of, one step ahead. We are currently developing > a couple of applications using Office XP (on a separate laptop) and have > just purchased XP Developer with a view to upgrading some older apps as > well as develping the new ones. I have 3 question then: > > 1) Has anyone had problems installing XP developer over 97 professional? > Particularly in relation to generating XP runtime installs. > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > 3) The tricky one... When the IT guys do upgrade these machines will > there be activation problems when we re-install XP developer? The > hardware will not change at all, just the OS. > > Thanks in advance > > mark > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BBarabash at TappeConstruction.com Mon Dec 1 13:26:28 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 1 Dec 2003 13:26:28 -0600 Subject: [AccessD] Word templates from Access Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1A4@TAPPEEXCH01> Mark, First and foremost, use a text file as your mail merge data source. Having gone down this painful path, I can tell you that trying to link to Access data from is no fun! I normally use non-standard delimiters for my fields and records. By default, Word uses Tabs to delimit fields and Carriage Returns for delimiting records. By using something else (in my case tildes and carats), I can merge in lists, paragraph blocks, or whatever else I want (as long as it doesn't contain ~ or ^). That being said, here is some code that I posted a while back, that will generate a mail merge text file based off of any Table or QueryDef: Public Sub CreateMergeDataSource(ByVal strTblQry As String, ByVal strFilePath As String) Const cFieldDelim = "~" Const cRecordDelim = "^" Dim db As DAO.Database Dim rs As DAO.Recordset Dim fld As DAO.Field Dim lngFileNo As Long Dim strBuffer As String Set db = CurrentDb() Set rs = db.OpenRecordset(strTblQry, dbOpenSnapshot) 'Initialize field name list (first line of data source) For Each fld In rs.Fields Select Case fld.Type Case dbGUID, dbLongBinary, dbMemo 'Do not include these types of fields Case Else strBuffer = strBuffer & Chr$(34) & fld.Name & Chr$(34) & cFieldDelim End Select Next fld strBuffer = strBuffer & cRecordDelim 'Loop through all records in source table/query Do Until rs.EOF For Each fld In rs.Fields Select Case fld.Type Case dbGUID, dbLongBinary, dbMemo 'Do not include these types of fields Case Else strBuffer = strBuffer & Chr$(34) & fld.Value & Chr$(34) & cFieldDelim End Select Next fld strBuffer = strBuffer & cRecordDelim rs.MoveNext Loop rs.Close 'Generate data source text file lngFileNo = FreeFile Open strFilePath For Output As #lngFileNo Print #lngFileNo, strBuffer Close #lngFileNo Set rs = Nothing Set db = Nothing End Sub I don't have the actual automation code handy, but it should be something like this (I haven't tested the code below, possibly someone else can share their secret recipe): Dim wdApp As Word.Application Dim wdDoc As Word.Document Set wdApp = New Word.Application Set wdDoc = wdApp.Open "c:\mydir\mytemplate.doc" With wdDoc.MailMerge .MainDocumentType = wdFormLetters .OpenDataSource Name:=c:\mydir\mysource.txt, Format:=wdOpenFormatText .Destination = wdSendToNewDocument .Execute End With wdApp.UserControl = True wdApp.Visible = True Set wdApp = Nothing Set wdDoc = Nothing -----Original Message----- From: Porter, Mark [mailto:MPorter at acsalaska.com] Sent: Monday, December 01, 2003 12:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Word templates from Access Does anyone have any code snippets that shows how to send an Access querydef to a Word mail merge template? I have a client with quite a few form letters they would like to send data too. Mark -------------------------------------------------------------------------------------------------------------------- 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 Mark.Mitsules at ngc.com Mon Dec 1 13:28:03 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 1 Dec 2003 14:28:03 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Mon Dec 1 13:29:00 2003 From: mastercafe at ctv.es (MastercafeCTV) Date: Mon, 1 Dec 2003 20:29:00 +0100 Subject: [AccessD] XP deveoper, Office 97 and a changing OS In-Reply-To: <000001c3b83e$176b58a0$300d6bd5@netboxxp> Message-ID: <004301c3b841$5f92b120$69fa2250@servercafe> 1.-To install Office 10 (XP) over 97Prof no problem... But we always uninstall '97Prof by the updates, some problems on the registry (not always) 2.- XP Runtime over 97Prof you could be some problems to assign the main program. I don't recommend install, you will have many many problems... Better install only runtime (actualice it or you could be have memory problems) 3.- Xp Develope run correctly on W2k if yoy use all patches from Microsoft. Our best installation is W2k and Runtime XP or Office XP.. Over Windows XP we recommend don't use. Is the best OS over security config... But is the worst OS over maintenance and support we prefer W2k was more checked. Good luck on your change.... We thin so the best solution will be install all software by new Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: lunes, 01 de diciembre de 2003 20:05 To: 'Access Developers discussion and problem solving' Subject: [AccessD] XP deveoper, Office 97 and a changing OS Hello... Our network is currently running Windows 2000 and Office 97. The IT guys (bless 'em) are planning to upgrade to Windows XP and Office XP (standard with no Access) sometime next Spring. Our department is, sort of, one step ahead. We are currently developing a couple of applications using Office XP (on a separate laptop) and have just purchased XP Developer with a view to upgrading some older apps as well as develping the new ones. I have 3 question then: 1) Has anyone had problems installing XP developer over 97 professional? Particularly in relation to generating XP runtime installs. 2) Any problems running XP runtime over 97 prof on Win 2000? 3) The tricky one... When the IT guys do upgrade these machines will there be activation problems when we re-install XP developer? The hardware will not change at all, just the OS. Thanks in advance mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Mon Dec 1 13:40:00 2003 From: lists at theopg.com (MarkH) Date: Mon, 1 Dec 2003 19:40:00 -0000 Subject: [AccessD] XP deveoper, Office 97 and a changing OS In-Reply-To: <004301c3b841$5f92b120$69fa2250@servercafe> Message-ID: <000201c3b842$fc6dc330$300d6bd5@netboxxp> Thanks Juan mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MastercafeCTV Sent: 01 December 2003 19:29 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS 1.-To install Office 10 (XP) over 97Prof no problem... But we always uninstall '97Prof by the updates, some problems on the registry (not always) 2.- XP Runtime over 97Prof you could be some problems to assign the main program. I don't recommend install, you will have many many problems... Better install only runtime (actualice it or you could be have memory problems) 3.- Xp Develope run correctly on W2k if yoy use all patches from Microsoft. Our best installation is W2k and Runtime XP or Office XP.. Over Windows XP we recommend don't use. Is the best OS over security config... But is the worst OS over maintenance and support we prefer W2k was more checked. Good luck on your change.... We thin so the best solution will be install all software by new Juan Menendez =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MarkH Sent: lunes, 01 de diciembre de 2003 20:05 To: 'Access Developers discussion and problem solving' Subject: [AccessD] XP deveoper, Office 97 and a changing OS Hello... Our network is currently running Windows 2000 and Office 97. The IT guys (bless 'em) are planning to upgrade to Windows XP and Office XP (standard with no Access) sometime next Spring. Our department is, sort of, one step ahead. We are currently developing a couple of applications using Office XP (on a separate laptop) and have just purchased XP Developer with a view to upgrading some older apps as well as develping the new ones. I have 3 question then: 1) Has anyone had problems installing XP developer over 97 professional? Particularly in relation to generating XP runtime installs. 2) Any problems running XP runtime over 97 prof on Win 2000? 3) The tricky one... When the IT guys do upgrade these machines will there be activation problems when we re-install XP developer? The hardware will not change at all, just the OS. Thanks in advance mark --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 From DWUTKA at marlow.com Mon Dec 1 13:41:24 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 1 Dec 2003 13:41:24 -0600 Subject: [AccessD] OT - Getting started with Web development Message-ID: <2F8793082E00D4119A1700B0D0216BF802227610@main2.marlow.com> It depends. You can use API Calls in VBScript, but then you have to 'submit' the information in order for ASP to get it. You can sort of do this strictly with ASP. You can get the name of the user that hits a site, but it depends on the security you have setup. If you are allowing anonymous authentication, then you will get the anonymous user name. If you use Plain Text or Integrated Windows Security, then you'll get the name of the user used to log into the site. You can also get the host name and IP Address of the client. However, those may not help. If the users are going through a proxy, you'll get the proxy info, not the user info. Even if they are not using a proxy, the host name may not be there, so you'd have to use the IP Address to reverse lookup the computer name. Drew -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 11:02 AM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lists at theopg.com Mon Dec 1 13:41:26 2003 From: lists at theopg.com (MarkH) Date: Mon, 1 Dec 2003 19:41:26 -0000 Subject: [AccessD] XP deveoper, Office 97 and a changing OS In-Reply-To: <001501c3b840$865f5c00$6101a8c0@dejpolsys> Message-ID: <000301c3b843$317310d0$300d6bd5@netboxxp> Thanks William What about running the XP run time next to Office 97 Prof (I should have worded my original email better) Thanks again mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 01 December 2003 19:23 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS ...no, no, no :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 01, 2003 2:05 PM Subject: [AccessD] XP deveoper, Office 97 and a changing OS > Hello... > > Our network is currently running Windows 2000 and Office 97. The IT > guys (bless 'em) are planning to upgrade to Windows XP and Office XP > (standard with no Access) sometime next Spring. > > Our department is, sort of, one step ahead. We are currently > developing a couple of applications using Office XP (on a separate > laptop) and have just purchased XP Developer with a view to upgrading > some older apps as well as develping the new ones. I have 3 question > then: > > 1) Has anyone had problems installing XP developer over 97 > professional? Particularly in relation to generating XP runtime > installs. > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > 3) The tricky one... When the IT guys do upgrade these machines will > there be activation problems when we re-install XP developer? The > hardware will not change at all, just the OS. > > Thanks in advance > > mark > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 From Jdemarco at hshhp.org Mon Dec 1 13:51:25 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Mon, 1 Dec 2003 14:51:25 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F95C@TTNEXCHSRV1.hshhp.com> VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 wdhindman at bellsouth.net Mon Dec 1 14:00:07 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 15:00:07 -0500 Subject: [AccessD] XP deveoper, Office 97 and a changing OS References: <000301c3b843$317310d0$300d6bd5@netboxxp> Message-ID: <001a01c3b845$b80363f0$6101a8c0@dejpolsys> ...I did it for more than three months while transitioning a client ...put a shortcut on the desktop for each db that calls the specific executable path required and you shouldn't have any problems. ...of course, the XP runtime has to be installed after the A97 install else you'll have a mess. ...I've upgraded all my clients to WXP/OXP now, all using Access runtimes ...once you get past the initial learning curve with XP, I much prefer it over 2K. ...no prob with the ODE ...its essentially just a reinstall. William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 01, 2003 2:41 PM Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > Thanks William > > What about running the XP run time next to Office 97 Prof (I should have > worded my original email better) > > Thanks again > > mark > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 19:23 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...no, no, no :) > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:05 PM > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Hello... > > > > Our network is currently running Windows 2000 and Office 97. The IT > > guys (bless 'em) are planning to upgrade to Windows XP and Office XP > > (standard with no Access) sometime next Spring. > > > > Our department is, sort of, one step ahead. We are currently > > developing a couple of applications using Office XP (on a separate > > laptop) and have just purchased XP Developer with a view to upgrading > > some older apps as well as develping the new ones. I have 3 question > > then: > > > > 1) Has anyone had problems installing XP developer over 97 > > professional? Particularly in relation to generating XP runtime > > installs. > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > 3) The tricky one... When the IT guys do upgrade these machines will > > there be activation problems when we re-install XP developer? The > > hardware will not change at all, just the OS. > > > > Thanks in advance > > > > mark > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Mon Dec 1 14:10:18 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 1 Dec 2003 14:10:18 -0600 Subject: [AccessD] OT - Getting started with Web development Message-ID: <2F8793082E00D4119A1700B0D0216BF802227611@main2.marlow.com> Just out of curiousity, how would that work with ASP? The ActiveX .dll's would be used on the server, not the client, so you can get the info about the server, not the web client..... Drew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 1 14:33:18 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Dec 2003 12:33:18 -0800 Subject: [AccessD] Registry tweaks References: <3FCB3C77.14819.FB7D7B@localhost> Message-ID: <3FCBA58E.3000705@shaw.ca> Not exactly a registry tweak but I came across one to read the registry and fill a combobox with a list of 252 countries. If anyone is interested. Bryan Carbonnell wrote: >On 1 Dec 2003 at 11:18, William Hindman wrote: > > > >>...really great find Bryan!!!!! >> >> > > > >>>On 1 Dec 2003 at 7:49, John W. Colby wrote: >>> >>> > > > >>>>>Anyone interested? Anyone know of a public domain db that I can >>>>>get >>>>> >>>>> >>>>tweaks >>>> >>>> >>>>>already in a db? >>>>> >>>>> >>>I just stumbled across this, right from the horses ... mouth :-) >>> >>>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/s >>>cr iptcenter/tools/twkmatic.asp >>> >>> > >I wish I could take credit for it. I came across it in this week's >Langa List. > >I forgot to mention, read the page. It makes for some good reading. > >Almost as good as mods are like Santa :-)) > >-- >Bryan Carbonnell - carbonnb at sympatico.ca >Tell me what you need, and I'll tell you how to get along without it. > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From Mark.Mitsules at ngc.com Mon Dec 1 14:35:40 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 1 Dec 2003 15:35:40 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: I think what he was suggesting was client-side scripting. Would that approach work? Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Monday, December 01, 2003 3:10 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Just out of curiousity, how would that work with ASP? The ActiveX .dll's would be used on the server, not the client, so you can get the info about the server, not the web client..... Drew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Mon Dec 1 17:01:13 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Tue, 2 Dec 2003 09:31:13 +1030 Subject: [AccessD] OT - Getting started with Web development Message-ID: I don't think that will work. IIS performs your authentication so won't have the client details available. You'll have to run a custom login form to get the user details or ask your host to set up basic authentication (not overly secure). If you're working in an intranet you can use integrated authentication. (If you're using .Net you can use impersonation which is another step further and allows you a little more control). Cheers, Andrew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, 2 December 2003 6:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From wdhindman at bellsouth.net Mon Dec 1 17:06:51 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 18:06:51 -0500 Subject: [AccessD] Registry tweaks References: <3FCB3C77.14819.FB7D7B@localhost> <3FCBA58E.3000705@shaw.ca> Message-ID: <001601c3b85f$ce0761a0$6101a8c0@dejpolsys> ...list of 252 countries? ...without a db table? William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 3:33 PM Subject: Re: [AccessD] Registry tweaks > Not exactly a registry tweak but I came across one to read the registry > and fill a combobox with a list of 252 countries. > If anyone is interested. > > Bryan Carbonnell wrote: > > >On 1 Dec 2003 at 11:18, William Hindman wrote: > > > > > > > >>...really great find Bryan!!!!! > >> > >> > > > > > > > >>>On 1 Dec 2003 at 7:49, John W. Colby wrote: > >>> > >>> > > > > > > > >>>>>Anyone interested? Anyone know of a public domain db that I can > >>>>>get > >>>>> > >>>>> > >>>>tweaks > >>>> > >>>> > >>>>>already in a db? > >>>>> > >>>>> > >>>I just stumbled across this, right from the horses ... mouth :-) > >>> > >>>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/s > >>>cr iptcenter/tools/twkmatic.asp > >>> > >>> > > > >I wish I could take credit for it. I came across it in this week's > >Langa List. > > > >I forgot to mention, read the page. It makes for some good reading. > > > >Almost as good as mods are like Santa :-)) > > > >-- > >Bryan Carbonnell - carbonnb at sympatico.ca > >Tell me what you need, and I'll tell you how to get along without it. > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 1 17:16:29 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Dec 2003 15:16:29 -0800 Subject: [AccessD] Registry tweaks References: <3FCB3C77.14819.FB7D7B@localhost> <3FCBA58E.3000705@shaw.ca> <001601c3b85f$ce0761a0$6101a8c0@dejpolsys> Message-ID: <3FCBCBCD.3020208@shaw.ca> You have to move into a db table to put in a combobox, it is above the 2048 limit for a value list, William Hindman wrote: >...list of 252 countries? ...without a db table? > >William Hindman >Government is not reason, government is not persuasion, >government is force. It is a dangerous servant." G. Washington > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Monday, December 01, 2003 3:33 PM >Subject: Re: [AccessD] Registry tweaks > > > > >>Not exactly a registry tweak but I came across one to read the registry >>and fill a combobox with a list of 252 countries. >>If anyone is interested. >> >>Bryan Carbonnell wrote: >> >> >> >>>On 1 Dec 2003 at 11:18, William Hindman wrote: >>> >>> >>> >>> >>> >>>>...really great find Bryan!!!!! >>>> >>>> >>>> >>>> >>> >>> >>> >>>>>On 1 Dec 2003 at 7:49, John W. Colby wrote: >>>>> >>>>> >>>>> >>>>> >>> >>> >>> >>>>>>>Anyone interested? Anyone know of a public domain db that I can >>>>>>>get >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>tweaks >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>already in a db? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>I just stumbled across this, right from the horses ... mouth :-) >>>>> >>>>>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/s >>>>>cr iptcenter/tools/twkmatic.asp >>>>> >>>>> >>>>> >>>>> >>>I wish I could take credit for it. I came across it in this week's >>>Langa List. >>> >>>I forgot to mention, read the page. It makes for some good reading. >>> >>>Almost as good as mods are like Santa :-)) >>> >>>-- >>>Bryan Carbonnell - carbonnb at sympatico.ca >>>Tell me what you need, and I'll tell you how to get along without it. >>> >>> >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From lists at theopg.com Mon Dec 1 17:19:47 2003 From: lists at theopg.com (MarkH) Date: Mon, 1 Dec 2003 23:19:47 -0000 Subject: [AccessD] XP deveoper, Office 97 and a changing OS In-Reply-To: <001a01c3b845$b80363f0$6101a8c0@dejpolsys> Message-ID: <000701c3b861$9cf70a00$300d6bd5@netboxxp> Thanks William... That?s exactly what I wanted to hear Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 01 December 2003 20:00 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS ...I did it for more than three months while transitioning a client ...put a shortcut on the desktop for each db that calls the specific executable path required and you shouldn't have any problems. ...of course, the XP runtime has to be installed after the A97 install else you'll have a mess. ...I've upgraded all my clients to WXP/OXP now, all using Access runtimes ...once you get past the initial learning curve with XP, I much prefer it over 2K. ...no prob with the ODE ...its essentially just a reinstall. William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 01, 2003 2:41 PM Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > Thanks William > > What about running the XP run time next to Office 97 Prof (I should > have worded my original email better) > > Thanks again > > mark > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 19:23 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...no, no, no :) > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:05 PM > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Hello... > > > > Our network is currently running Windows 2000 and Office 97. The IT > > guys (bless 'em) are planning to upgrade to Windows XP and Office XP > > (standard with no Access) sometime next Spring. > > > > Our department is, sort of, one step ahead. We are currently > > developing a couple of applications using Office XP (on a separate > > laptop) and have just purchased XP Developer with a view to > > upgrading some older apps as well as develping the new ones. I have > > 3 question > > then: > > > > 1) Has anyone had problems installing XP developer over 97 > > professional? Particularly in relation to generating XP runtime > > installs. > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > 3) The tricky one... When the IT guys do upgrade these machines will > > there be activation problems when we re-install XP developer? The > > hardware will not change at all, just the OS. > > > > Thanks in advance > > > > mark > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 From Mark.Mitsules at ngc.com Mon Dec 1 17:16:11 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 1 Dec 2003 18:16:11 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: Andrew, > If you're working in an intranet you can use integrated authentication. I am developing for an intranet, but unfortunately, I stand little chance of changing any IIS settings. > If you're using .Net you can use impersonation I'm a little familiar with WMI scripting and impersonation, but that requires that you have administrator privs on the remote machine. Is this similar to what you mention in .Net? Mark -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 6:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I don't think that will work. IIS performs your authentication so won't have the client details available. You'll have to run a custom login form to get the user details or ask your host to set up basic authentication (not overly secure). If you're working in an intranet you can use integrated authentication. (If you're using .Net you can use impersonation which is another step further and allows you a little more control). Cheers, Andrew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, 2 December 2003 6:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Dec 1 18:14:15 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 19:14:15 -0500 Subject: [AccessD] Registry tweaks References: <3FCB3C77.14819.FB7D7B@localhost> <3FCBA58E.3000705@shaw.ca> <001601c3b85f$ce0761a0$6101a8c0@dejpolsys> <3FCBCBCD.3020208@shaw.ca> Message-ID: <000401c3b869$387192f0$6101a8c0@dejpolsys> ...interested :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 6:16 PM Subject: Re: [AccessD] Registry tweaks > You have to move into a db table to put in a combobox, it is above the > 2048 limit for a value list, > > William Hindman wrote: > > >...list of 252 countries? ...without a db table? > > > >William Hindman > >Government is not reason, government is not persuasion, > >government is force. It is a dangerous servant." G. Washington > > > >----- Original Message ----- > >From: "MartyConnelly" > >To: "Access Developers discussion and problem solving" > > > >Sent: Monday, December 01, 2003 3:33 PM > >Subject: Re: [AccessD] Registry tweaks > > > > > > > > > >>Not exactly a registry tweak but I came across one to read the registry > >>and fill a combobox with a list of 252 countries. > >>If anyone is interested. > >> > >>Bryan Carbonnell wrote: > >> > >> > >> > >>>On 1 Dec 2003 at 11:18, William Hindman wrote: > >>> > >>> > >>> > >>> > >>> > >>>>...really great find Bryan!!!!! > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>>>On 1 Dec 2003 at 7:49, John W. Colby wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>> > >>> > >>> > >>>>>>>Anyone interested? Anyone know of a public domain db that I can > >>>>>>>get > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>tweaks > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>already in a db? > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>I just stumbled across this, right from the horses ... mouth :-) > >>>>> > >>>>>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/s > >>>>>cr iptcenter/tools/twkmatic.asp > >>>>> > >>>>> > >>>>> > >>>>> > >>>I wish I could take credit for it. I came across it in this week's > >>>Langa List. > >>> > >>>I forgot to mention, read the page. It makes for some good reading. > >>> > >>>Almost as good as mods are like Santa :-)) > >>> > >>>-- > >>>Bryan Carbonnell - carbonnb at sympatico.ca > >>>Tell me what you need, and I'll tell you how to get along without it. > >>> > >>> > >>>_______________________________________________ > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >>> > >>> > >>> > >>> > >>-- > >>Marty Connelly > >>Victoria, B.C. > >>Canada > >> > >> > >> > >>_______________________________________________ > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 1 18:25:23 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 1 Dec 2003 16:25:23 -0800 Subject: [AccessD] Registry tweaks Message-ID: Why not use a callback instead, if you aren't reading the list from a table? The list limit doesn't apply with callbacks. Charlotte Foust -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Monday, December 01, 2003 3:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Registry tweaks You have to move into a db table to put in a combobox, it is above the 2048 limit for a value list, William Hindman wrote: >...list of 252 countries? ...without a db table? > >William Hindman >Government is not reason, government is not persuasion, government is >force. It is a dangerous servant." G. Washington > >----- Original Message ----- >From: "MartyConnelly" >To: "Access Developers discussion and problem solving" > >Sent: Monday, December 01, 2003 3:33 PM >Subject: Re: [AccessD] Registry tweaks > > > > >>Not exactly a registry tweak but I came across one to read the >>registry and fill a combobox with a list of 252 countries. If anyone >>is interested. >> >>Bryan Carbonnell wrote: >> >> >> >>>On 1 Dec 2003 at 11:18, William Hindman wrote: >>> >>> >>> >>> >>> >>>>...really great find Bryan!!!!! >>>> >>>> >>>> >>>> >>> >>> >>> >>>>>On 1 Dec 2003 at 7:49, John W. Colby wrote: >>>>> >>>>> >>>>> >>>>> >>> >>> >>> >>>>>>>Anyone interested? Anyone know of a public domain db that I can >>>>>>>get >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>tweaks >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>already in a db? >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>I just stumbled across this, right from the horses ... mouth :-) >>>>> >>>>>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/ >>>>>s >>>>>cr iptcenter/tools/twkmatic.asp >>>>> >>>>> >>>>> >>>>> >>>I wish I could take credit for it. I came across it in this week's >>>Langa List. >>> >>>I forgot to mention, read the page. It makes for some good reading. >>> >>>Almost as good as mods are like Santa :-)) >>> >>>-- >>>Bryan Carbonnell - carbonnb at sympatico.ca >>>Tell me what you need, and I'll tell you how to get along without it. >>> >>> >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >>> >>> >>> >>> >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Dec 1 18:35:49 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 19:35:49 -0500 Subject: [AccessD] Registry tweaks References: Message-ID: <003901c3b86c$3bc375b0$6101a8c0@dejpolsys> ...I do a lot of apps w/country tables ...its a pita to keep correct and updated and away from users ...if WXP has a magic list built in that I could get at with a call back ...or even a temp table ...I'd think seriously about using it :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 7:25 PM Subject: RE: [AccessD] Registry tweaks > Why not use a callback instead, if you aren't reading the list from a > table? The list limit doesn't apply with callbacks. > > Charlotte Foust > > -----Original Message----- > From: MartyConnelly [mailto:martyconnelly at shaw.ca] > Sent: Monday, December 01, 2003 3:16 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Registry tweaks > > > You have to move into a db table to put in a combobox, it is above the > 2048 limit for a value list, > > William Hindman wrote: > > >...list of 252 countries? ...without a db table? > > > >William Hindman > >Government is not reason, government is not persuasion, government is > >force. It is a dangerous servant." G. Washington > > > >----- Original Message ----- > >From: "MartyConnelly" > >To: "Access Developers discussion and problem solving" > > > >Sent: Monday, December 01, 2003 3:33 PM > >Subject: Re: [AccessD] Registry tweaks > > > > > > > > > >>Not exactly a registry tweak but I came across one to read the > >>registry and fill a combobox with a list of 252 countries. If anyone > >>is interested. > >> > >>Bryan Carbonnell wrote: > >> > >> > >> > >>>On 1 Dec 2003 at 11:18, William Hindman wrote: > >>> > >>> > >>> > >>> > >>> > >>>>...really great find Bryan!!!!! > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>>>On 1 Dec 2003 at 7:49, John W. Colby wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>> > >>> > >>> > >>>>>>>Anyone interested? Anyone know of a public domain db that I can > >>>>>>>get > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>tweaks > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>already in a db? > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>I just stumbled across this, right from the horses ... mouth :-) > >>>>> > >>>>>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/ > >>>>>s > >>>>>cr iptcenter/tools/twkmatic.asp > >>>>> > >>>>> > >>>>> > >>>>> > >>>I wish I could take credit for it. I came across it in this week's > >>>Langa List. > >>> > >>>I forgot to mention, read the page. It makes for some good reading. > >>> > >>>Almost as good as mods are like Santa :-)) > >>> > >>>-- > >>>Bryan Carbonnell - carbonnb at sympatico.ca > >>>Tell me what you need, and I'll tell you how to get along without it. > >>> > >>> > >>>_______________________________________________ > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>Website: http://www.databaseadvisors.com > >>> > >>> > >>> > >>> > >>> > >>-- > >>Marty Connelly > >>Victoria, B.C. > >>Canada > >> > >> > >> > >>_______________________________________________ > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jcolby at colbyconsulting.com Mon Dec 1 18:52:11 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 1 Dec 2003 19:52:11 -0500 Subject: [AccessD] XP developer, Office 97 and a changing OS In-Reply-To: <000701c3b861$9cf70a00$300d6bd5@netboxxp> Message-ID: William, Can you seamlessly work with A2K databases and importantly, libraries? I would like to move to XP for all development if I can do my A2K development, compile, compact and send to my A2K clients without any problems. I have my framework lib to consider as well. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 01 December 2003 20:00 To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS ...I did it for more than three months while transitioning a client ...put a shortcut on the desktop for each db that calls the specific executable path required and you shouldn't have any problems. ...of course, the XP runtime has to be installed after the A97 install else you'll have a mess. ...I've upgraded all my clients to WXP/OXP now, all using Access runtimes ...once you get past the initial learning curve with XP, I much prefer it over 2K. ...no prob with the ODE ...its essentially just a reinstall. William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Monday, December 01, 2003 2:41 PM Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > Thanks William > > What about running the XP run time next to Office 97 Prof (I should > have worded my original email better) > > Thanks again > > mark > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 19:23 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...no, no, no :) > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:05 PM > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Hello... > > > > Our network is currently running Windows 2000 and Office 97. The IT > > guys (bless 'em) are planning to upgrade to Windows XP and Office XP > > (standard with no Access) sometime next Spring. > > > > Our department is, sort of, one step ahead. We are currently > > developing a couple of applications using Office XP (on a separate > > laptop) and have just purchased XP Developer with a view to > > upgrading some older apps as well as develping the new ones. I have > > 3 question > > then: > > > > 1) Has anyone had problems installing XP developer over 97 > > professional? Particularly in relation to generating XP runtime > > installs. > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > 3) The tricky one... When the IT guys do upgrade these machines will > > there be activation problems when we re-install XP developer? The > > hardware will not change at all, just the OS. > > > > Thanks in advance > > > > mark > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Dec 1 19:09:14 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 1 Dec 2003 19:09:14 -0600 Subject: [AccessD] OT - Getting started with Web development Message-ID: <2F8793082E00D4119A1700B0D0216BF802227612@main2.marlow.com> I guess, all depends on how rigid you can set the clients environment (browser, OS, etc.) Drew -----Original Message----- From: Mitsules, Mark S. (Newport News) To: 'Access Developers discussion and problem solving' Sent: 12/1/03 2:35 PM Subject: RE: [AccessD] OT - Getting started with Web development I think what he was suggesting was client-side scripting. Would that approach work? Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Monday, December 01, 2003 3:10 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Just out of curiousity, how would that work with ASP? The ActiveX .dll's would be used on the server, not the client, so you can get the info about the server, not the web client..... Drew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". ************************************************************************ **** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". ************************************************************************ **** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Dec 1 19:24:17 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 1 Dec 2003 20:24:17 -0500 Subject: [AccessD] XP developer, Office 97 and a changing OS References: Message-ID: <005b01c3b873$01562b00$6101a8c0@dejpolsys> ...seamlessly? ...do you know of any piece of MS software that does anything "seamlessly"? ...just asking ...know the answer :) ...but short of that, yeah ...you can work with an A2K mdb in XP and it will maintain its compatibility ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 7:52 PM Subject: RE: [AccessD] XP developer, Office 97 and a changing OS > William, > > Can you seamlessly work with A2K databases and importantly, libraries? I > would like to move to XP for all development if I can do my A2K development, > compile, compact and send to my A2K clients without any problems. I have my > framework lib to consider as well. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 20:00 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...I did it for more than three months while transitioning a client > ...put a shortcut on the desktop for each db that calls the specific > executable path required and you shouldn't have any problems. > > ...of course, the XP runtime has to be installed after the A97 install > else you'll have a mess. > > ...I've upgraded all my clients to WXP/OXP now, all using Access > runtimes ...once you get past the initial learning curve with XP, I much > prefer it over 2K. > > ...no prob with the ODE ...its essentially just a reinstall. > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:41 PM > Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Thanks William > > > > What about running the XP run time next to Office 97 Prof (I should > > have worded my original email better) > > > > Thanks again > > > > mark > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > > Hindman > > Sent: 01 December 2003 19:23 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > ...no, no, no :) > > > > William Hindman > > Government is not reason, government is not persuasion, government is > > force. It is a dangerous servant." G. Washington > > > > ----- Original Message ----- > > From: "MarkH" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Monday, December 01, 2003 2:05 PM > > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > > Hello... > > > > > > Our network is currently running Windows 2000 and Office 97. The IT > > > guys (bless 'em) are planning to upgrade to Windows XP and Office XP > > > > (standard with no Access) sometime next Spring. > > > > > > Our department is, sort of, one step ahead. We are currently > > > developing a couple of applications using Office XP (on a separate > > > laptop) and have just purchased XP Developer with a view to > > > upgrading some older apps as well as develping the new ones. I have > > > 3 question > > > then: > > > > > > 1) Has anyone had problems installing XP developer over 97 > > > professional? Particularly in relation to generating XP runtime > > > installs. > > > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > > > 3) The tricky one... When the IT guys do upgrade these machines will > > > > there be activation problems when we re-install XP developer? The > > > hardware will not change at all, just the OS. > > > > > > Thanks in advance > > > > > > mark > > > > > > --- > > > Outgoing mail is certified Virus Free. > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > --- > > Incoming mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Dec 1 19:39:08 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 1 Dec 2003 20:39:08 -0500 Subject: Using AXP to develop A2K databases - was RE: [AccessD] XP developer, Office 97 and a changing OS In-Reply-To: <005b01c3b873$01562b00$6101a8c0@dejpolsys> Message-ID: But have you tried it? I seem to remember issues where if you compile in XP, trying to run in A2K would cause page faults, requiring a compile in A2K, then no page faults. Something about the VB6.DLL entry points differ between XP and 2K John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Monday, December 01, 2003 8:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP developer, Office 97 and a changing OS ...seamlessly? ...do you know of any piece of MS software that does anything "seamlessly"? ...just asking ...know the answer :) ...but short of that, yeah ...you can work with an A2K mdb in XP and it will maintain its compatibility ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 7:52 PM Subject: RE: [AccessD] XP developer, Office 97 and a changing OS > William, > > Can you seamlessly work with A2K databases and importantly, libraries? I > would like to move to XP for all development if I can do my A2K development, > compile, compact and send to my A2K clients without any problems. I have my > framework lib to consider as well. > > John W. Colby > www.ColbyConsulting.com From andrew.haslett at ilc.gov.au Mon Dec 1 20:09:14 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Tue, 2 Dec 2003 12:39:14 +1030 Subject: [AccessD] OT - Getting started with Web development Message-ID: If you host your app in a virtual directory, then any changes you make will only affect your web application. They don't need to change any 'global iis' settings, so that should keep your network admins happy. I really think it's the easiest way to go rather than using dll's or client side script. All you have to do is check one box and you're laughing! Another point to remember: The IE6 option, under advanced->tools, called "Enable Windows Integrated Authentication" can affect whether the server variables (LOGON_USER) returns anything. Might pay to change that and see if it fixes your initial problem. Cheers, Andrew -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, 2 December 2003 9:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Andrew, > If you're working in an intranet you can use integrated authentication. I am developing for an intranet, but unfortunately, I stand little chance of changing any IIS settings. > If you're using .Net you can use impersonation I'm a little familiar with WMI scripting and impersonation, but that requires that you have administrator privs on the remote machine. Is this similar to what you mention in .Net? Mark -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 6:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I don't think that will work. IIS performs your authentication so won't have the client details available. You'll have to run a custom login form to get the user details or ask your host to set up basic authentication (not overly secure). If you're working in an intranet you can use integrated authentication. (If you're using .Net you can use impersonation which is another step further and allows you a little more control). Cheers, Andrew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, 2 December 2003 6:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From martyconnelly at shaw.ca Mon Dec 1 20:38:47 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Dec 2003 18:38:47 -0800 Subject: [AccessD] Registry tweaks References: <003901c3b86c$3bc375b0$6101a8c0@dejpolsys> Message-ID: <3FCBFB37.8070506@shaw.ca> Just use sortcountrylist function as intial call. You don't have to QuikSort just put in a query after moving to a table I was going to put into an array at one point. Should give you 230 countries. I find it a pain to use callbacks. I keep having to refresh my memory as to how to use them. Public Const HKEY_CLASSES_ROOT As Long = &H80000000 Public Const HKEY_CURRENT_USER = &H80000001 Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 Public Const HKEY_USERS As Long = &H80000003 Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 Public Const HKEY_DYN_DATA As Long = &H80000006 Const ValueName As String = "Name" Const MasterKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List\" Public Function getregcountries() As String 'Enumerate the keys inside the Registry key: ' parts of this from http://www.vb-helper.com/howto_list_countries.html ' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ ' CurrentVersion\Telephony\Country List\ Dim KeyCol As Collection Dim CountryCol As Collection Dim strCountry As String strCountry = "" If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, MasterKey) Dim TheKey As Variant Set CountryCol = New Collection For Each TheKey In KeyCol If TheKey <> "800" And GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, "InternationalRule", "") <> "00EFG#" Then 'CboCountry.AddItem GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") Debug.Print GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") strCountry = strCountry & GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") & ";" End If Next End If getregcountries = strCountry End Function Function SortCountriesString() As String Dim arrtemp As Variant Dim arrCountries(300) As String Dim strCountries As String Dim strOutCountries As String Dim i As Long ' Get Countries from Registry strCountries = getregcountries ' Move countries string to array unsorted arrtemp = Split(strCountries, ";") 'put variant array into string array For i = LBound(arrtemp) To UBound(arrtemp) arrCountries(i) = arrtemp(i) Next i ' now sort array by country name Quicksort arrCountries, LBound(arrtemp), UBound(arrtemp) 'put array into string for combobox maybe too long > 2048 bytes For i = LBound(arrtemp) To UBound(arrtemp) strOutCountries = strOutCountries & arrCountries(i) & ";" Next i SortCountriesString = strOutCountries 'Debug.Print Len(SortCountriesString) ' put sorted array into table MoveIntoTable arrCountries(), UBound(arrtemp) End Function Function MoveIntoTable(arrCountries() As String, imax As Long) Dim rs As Recordset Dim iRow As Integer, iCol As Integer Dim db As Database Set db = CurrentDb 'pre create table with 1 text field "Country Name" Set rs = db.OpenRecordset("CountryName") If rs.RecordCount > 1 Then MsgBox "table exists already" Exit Function End If With rs For iRow = 0 To imax .AddNew ' 0'th field is autonumber .Fields(1) = arrCountries(iRow) .Update Next .Close End With Set rs = Nothing End Function Public Sub Quicksort(list() As String, ByVal min As Long, _ ByVal max As Long) Dim med_value As String Dim hi As Long Dim lo As Long Dim i As Long ' If min >= max, the list contains 0 or 1 items so it ' is sorted. If min >= max Then Exit Sub ' Pick the dividing value. i = Int((max - min + 1) * Rnd + min) med_value = list(i) ' Swap it to the front. list(i) = list(min) lo = min hi = max Do ' Look down from hi for a value < med_value. Do While list(hi) >= med_value hi = hi - 1 If hi <= lo Then Exit Do Loop If hi <= lo Then list(lo) = med_value Exit Do End If ' Swap the lo and hi values. list(lo) = list(hi) ' Look up from lo for a value >= med_value. lo = lo + 1 Do While list(lo) < med_value lo = lo + 1 If lo >= hi Then Exit Do Loop If lo >= hi Then lo = hi list(hi) = med_value Exit Do End If ' Swap the lo and hi values. list(hi) = list(lo) Loop ' Sort the two sublists. Quicksort list(), min, lo - 1 Quicksort list(), lo + 1, max End Sub 'registry utilities in seperate module Option Compare Database Option Explicit Public Const HKEY_CLASSES_ROOT As Long = &H80000000 Public Const HKEY_CURRENT_USER = &H80000001 Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 Public Const HKEY_USERS As Long = &H80000003 Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 Public Const HKEY_DYN_DATA As Long = &H80000006 Const REG_SZ = 1 Const REG_EXPAND_SZ = 2 Const REG_BINARY = 3 Const REG_DWORD = 4 Const REG_MULTI_SZ = 7 Const ERROR_MORE_DATA = 234 Const KEY_READ = &H20019 ' ((READ_CONTROL Or KEY_QUERY_VALUE Or ' KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not ' SYNCHRONIZE)) Const REG_OPENED_EXISTING_KEY = &H2 Const KEY_WRITE = &H20006 '((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or ' KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE)) Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias _ "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, _ ByVal cbData As Long) As Long Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias _ "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As _ Any, source As Any, ByVal numBytes As Long) Private Declare Function RegEnumKey Lib "advapi32.dll" Alias "RegEnumKeyA" _ (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, _ ByVal cbName As Long) As Long Private Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" _ (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, _ lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, _ lpData As Any, lpcbData As Long) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" _ (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As _ Long Private Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias _ "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _ ByVal Reserved As Long, ByVal lpClass As Long, ByVal dwOptions As Long, _ ByVal samDesired As Long, ByVal lpSecurityAttributes As Long, _ phkResult As Long, lpdwDisposition As Long) As Long Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _ "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ ByVal lpReserved As Long, lpType As Long, lpData As Any, _ lpcbData As Long) As Long Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" _ (ByVal hKey As Long, ByVal lpSubKey As String) As Long Sub DeleteRegistryKey(ByVal hKey As Long, ByVal KeyName As String) RegDeleteKey hKey, KeyName End Sub Function DeleteRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ ByVal ValueName As String) As Boolean Dim handle As Long ' Open the key, exit if not found If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit Function ' Delete the value (returns 0 if success) DeleteRegistryValue = (RegDeleteValue(handle, ValueName) = 0) ' Close the handle RegCloseKey handle End Function Function CheckRegistryKey(ByVal hKey As Long, ByVal KeyName As String) As _ Boolean Dim handle As Long ' Try to open the key If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then ' The key exists CheckRegistryKey = True ' Close it before exiting RegCloseKey handle End If End Function Function CreateRegistryKey(ByVal hKey As Long, ByVal KeyName As String) As _ Boolean Dim handle As Long, disposition As Long If RegCreateKeyEx(hKey, KeyName, 0, 0, 0, 0, 0, handle, disposition) Then Err.Raise 1001, , "Unable to create the registry key" Else ' Return True if the key already existed. CreateRegistryKey = (disposition = REG_OPENED_EXISTING_KEY) ' Close the key. RegCloseKey handle End If End Function Function EnumRegistryKeys(ByVal hKey As Long, ByVal KeyName As String) As _ Collection Dim handle As Long Dim length As Long Dim index As Long Dim subkeyName As String ' initialize the result collection Set EnumRegistryKeys = New Collection ' Open the key, exit if not found If Len(KeyName) Then If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function ' in all case the subsequent functions use hKey hKey = handle End If Do ' this is the max length for a key name length = 260 subkeyName = Space$(length) ' get the N-th key, exit the loop if not found If RegEnumKey(hKey, index, subkeyName, length) Then Exit Do ' add to the result collection subkeyName = Left$(subkeyName, InStr(subkeyName, vbNullChar) - 1) EnumRegistryKeys.Add subkeyName, subkeyName ' prepare to query for next key index = index + 1 Loop ' Close the key, if it was actually opened If handle Then RegCloseKey handle End Function Function EnumRegistryValues(ByVal hKey As Long, ByVal KeyName As String) As _ Collection Dim handle As Long Dim index As Long Dim valueType As Long Dim name As String Dim nameLen As Long Dim resLong As Long Dim resString As String Dim dataLen As Long Dim valueInfo(0 To 1) As Variant Dim retVal As Long ' initialize the result Set EnumRegistryValues = New Collection ' Open the key, exit if not found. If Len(KeyName) Then If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function ' in all cases, subsequent functions use hKey hKey = handle End If Do ' this is the max length for a key name nameLen = 260 name = Space$(nameLen) ' prepare the receiving buffer for the value dataLen = 4096 ReDim resBinary(0 To dataLen - 1) As Byte ' read the value's name and data ' exit the loop if not found retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, valueType, _ resBinary(0), dataLen) ' enlarge the buffer if you need more space If retVal = ERROR_MORE_DATA Then ReDim resBinary(0 To dataLen - 1) As Byte retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, _ valueType, resBinary(0), dataLen) End If ' exit the loop if any other error (typically, no more values) If retVal Then Exit Do ' retrieve the value's name valueInfo(0) = Left$(name, nameLen) ' return a value corresponding to the value type Select Case valueType Case REG_DWORD CopyMemory resLong, resBinary(0), 4 valueInfo(1) = resLong Case REG_SZ, REG_EXPAND_SZ ' copy everything but the trailing null char resString = Space$(dataLen - 1) CopyMemory ByVal resString, resBinary(0), dataLen - 1 valueInfo(1) = resString Case REG_BINARY ' shrink the buffer if necessary If dataLen < UBound(resBinary) + 1 Then ReDim Preserve resBinary(0 To dataLen - 1) As Byte End If valueInfo(1) = resBinary() Case REG_MULTI_SZ ' copy everything but the 2 trailing null chars resString = Space$(dataLen - 2) CopyMemory ByVal resString, resBinary(0), dataLen - 2 valueInfo(1) = resString Case Else ' Unsupported value type - do nothing End Select ' add the array to the result collection ' the element's key is the value's name EnumRegistryValues.Add valueInfo, valueInfo(0) index = index + 1 Loop ' Close the key, if it was actually opened If handle Then RegCloseKey handle End Function Function EnumRegistryValuesEx(ByVal hKey As Long, ByVal KeyName As String) As _ Collection Dim handle As Long Dim index As Long Dim valueType As Long Dim name As String Dim nameLen As Long Dim resLong As Long Dim resString As String Dim dataLen As Long Dim valueInfo(0 To 2) As Variant Dim retVal As Long ' initialize the result Set EnumRegistryValuesEx = New Collection ' Open the key, exit if not found. If Len(KeyName) Then If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function ' in all cases, subsequent functions use hKey hKey = handle End If Do ' this is the max length for a key name nameLen = 260 name = Space$(nameLen) ' prepare the receiving buffer for the value dataLen = 4096 ReDim resBinary(0 To dataLen - 1) As Byte ' read the value's name and data ' exit the loop if not found retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, valueType, _ resBinary(0), dataLen) ' enlarge the buffer if you need more space If retVal = ERROR_MORE_DATA Then ReDim resBinary(0 To dataLen - 1) As Byte retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, _ valueType, resBinary(0), dataLen) End If ' exit the loop if any other error (typically, no more values) If retVal Then Exit Do ' retrieve the value's name valueInfo(0) = Left$(name, nameLen) ' return a value corresponding to the value type Select Case valueType Case REG_DWORD CopyMemory resLong, resBinary(0), 4 valueInfo(1) = resLong valueInfo(2) = vbLong Case REG_SZ, REG_EXPAND_SZ ' copy everything but the trailing null char resString = Space$(dataLen - 1) CopyMemory ByVal resString, resBinary(0), dataLen - 1 valueInfo(1) = resString valueInfo(2) = vbString Case REG_BINARY ' shrink the buffer if necessary If dataLen < UBound(resBinary) + 1 Then ReDim Preserve resBinary(0 To dataLen - 1) As Byte End If valueInfo(1) = resBinary() valueInfo(2) = vbArray + vbByte Case REG_MULTI_SZ ' copy everything but the 2 trailing null chars resString = Space$(dataLen - 2) CopyMemory ByVal resString, resBinary(0), dataLen - 2 valueInfo(1) = resString valueInfo(2) = vbString Case Else ' Unsupported value type - do nothing End Select ' add the array to the result collection ' the element's key is the value's name EnumRegistryValuesEx.Add valueInfo, valueInfo(0) index = index + 1 Loop ' Close the key, if it was actually opened If handle Then RegCloseKey handle End Function Function GetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ ByVal ValueName As String, Optional DefaultValue As Variant) As Variant Dim handle As Long Dim resLong As Long Dim resString As String Dim resBinary() As Byte Dim length As Long Dim retVal As Long Dim valueType As Long ' Prepare the default result GetRegistryValue = IIf(IsMissing(DefaultValue), Empty, DefaultValue) ' Open the key, exit if not found. If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function End If ' prepare a 1K receiving resBinary length = 1024 ReDim resBinary(0 To length - 1) As Byte ' read the registry key retVal = RegQueryValueEx(handle, ValueName, 0, valueType, resBinary(0), _ length) ' if resBinary was too small, try again If retVal = ERROR_MORE_DATA Then ' enlarge the resBinary, and read the value again ReDim resBinary(0 To length - 1) As Byte retVal = RegQueryValueEx(handle, ValueName, 0, valueType, resBinary(0), _ length) End If ' return a value corresponding to the value type Select Case valueType Case REG_DWORD CopyMemory resLong, resBinary(0), 4 GetRegistryValue = resLong Case REG_SZ, REG_EXPAND_SZ ' copy everything but the trailing null char resString = Space$(length - 1) CopyMemory ByVal resString, resBinary(0), length - 1 GetRegistryValue = resString Case REG_BINARY ' resize the result resBinary If length <> UBound(resBinary) + 1 Then ReDim Preserve resBinary(0 To length - 1) As Byte End If GetRegistryValue = resBinary() Case REG_MULTI_SZ ' copy everything but the 2 trailing null chars resString = Space$(length - 2) CopyMemory ByVal resString, resBinary(0), length - 2 GetRegistryValue = resString Case Else RegCloseKey handle Err.Raise 1001, , "Unsupported value type" End Select ' close the registry key RegCloseKey handle End Function Function SetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ ByVal ValueName As String, value As Variant) As Boolean Dim handle As Long Dim lngValue As Long Dim strValue As String Dim binValue() As Byte Dim length As Long Dim retVal As Long ' Open the key, exit if not found If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit Function End If ' three cases, according to the data type in Value Select Case VarType(value) Case vbInteger, vbLong lngValue = value retVal = RegSetValueEx(handle, ValueName, 0, REG_DWORD, lngValue, 4) Case vbString strValue = value retVal = RegSetValueEx(handle, ValueName, 0, REG_SZ, ByVal strValue, _ Len(strValue)) Case vbArray + vbByte binValue = value length = UBound(binValue) - LBound(binValue) + 1 retVal = RegSetValueEx(handle, ValueName, 0, REG_BINARY, _ binValue(LBound(binValue)), length) Case Else RegCloseKey handle Err.Raise 1001, , "Unsupported value type" End Select ' Close the key and signal success RegCloseKey handle ' signal success if the value was written correctly SetRegistryValue = (retVal = 0) End Function -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Mon Dec 1 21:06:34 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 01 Dec 2003 19:06:34 -0800 Subject: [AccessD] Registry tweaks References: <003901c3b86c$3bc375b0$6101a8c0@dejpolsys> <3FCBFB37.8070506@shaw.ca> Message-ID: <3FCC01BA.3040602@shaw.ca> The Visual Basic starter code is here http://www.vb-helper.com/howto_list_countries.html Note the registry keys are not sorted by country -- Marty Connelly Victoria, B.C. Canada From connie.kamrowski at agric.nsw.gov.au Mon Dec 1 21:22:09 2003 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Tue, 2 Dec 2003 14:22:09 +1100 Subject: [AccessD] Sagekey software - opinions please Message-ID: Hi all, We are looking at Sagekey software at the moment for use in our corporation which operates on a WAN with both win 98 and winXP machines. I am using the sagekey for access97 software. Just wondering if anyone has used sagekey to deploy access97 apps over win98 and winXP machines. Any thoughts and issues you encountered would be appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From john at winhaven.net Mon Dec 1 22:44:43 2003 From: john at winhaven.net (John Bartow) Date: Mon, 1 Dec 2003 22:44:43 -0600 Subject: [AccessD] Sagekey software - opinions please In-Reply-To: Message-ID: I've had no problems with any A97/Sagekey/Wise distribution and I do believe I've hit all versions of Windows now (including 95a). John R Bartow WinHaven Computer Services PO Box 130 Winneconne, WI 54986-0130 Office: 920-582-7574 john at winhaven.net Outgoing mail is certified Virus Free. Checked by Symantec's Norton anti-virus system. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > connie.kamrowski at agric.nsw.gov.au > Sent: Monday, December 01, 2003 9:22 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Sagekey software - opinions please > > > Hi all, > > We are looking at Sagekey software at the moment for use in our > corporation which operates on a WAN with both win 98 and winXP > machines. I > am using the sagekey for access97 software. Just wondering if anyone has > used sagekey to deploy access97 apps over win98 and winXP machines. Any > thoughts and issues you encountered would be appreciated. > > Connie Kamrowski > > Analyst/Programmer > Information Technology > NSW Agriculture > Orange > > Ph: 02 6391 3250 > Fax:02 6391 3290 > > > This message is intended for the addressee named and may contain > confidential information. If you are not the intended recipient or > received it in error, please delete the message and notify sender. Views > expressed are those of the individual sender and are not necessarily the > views of their organisation. > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davide at dalyn.co.nz Mon Dec 1 22:34:55 2003 From: davide at dalyn.co.nz (David Emerson) Date: Tue, 02 Dec 2003 17:34:55 +1300 Subject: [AccessD] Subform not saved Message-ID: <5.2.0.9.0.20031202172131.00b3f5f8@mail.dalyn.co.nz> Group, AXP FE / SQL2000 BE I have a subform on a form. I want to check if the record on the subform has been saved when the main form is closed. I am having problems with the syntax. If I use the following in the on unload event of the main form - MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Dirty or MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.NewRecord I get " Object doesn't support this property or method (Error 438)" However MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter!txtPresMeterReadDate returns the correct value so I know I am referring to the subform correctly. The reason for checking is that when the main form is being closed by the x in the top right hand corner, the after update event is not firing on the subform (yet the record is being saved!). Another symptom is that I need to click on the record selector twice for the pencil to turn into a triangle. I am sure it is something to do with refreshing the record from the SQL BE but not sure how to fix it. Any pointers? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 From Erwin.Craps at ithelps.be Tue Dec 2 01:54:51 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Tue, 2 Dec 2003 08:54:51 +0100 Subject: [AccessD] Cut Paste actionto tabsheet looses events. Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF6E@stekelbes.ithelps.local> Thx... -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Charlotte Foust Verzonden: maandag 1 december 2003 17:30 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Cut Paste actionto tabsheet looses events. That happens when you move a control between sections of a report as well, Erwin. JC suggested cutting the code and pasting it back into the module, which *should* reestablish the connection. Charlotte Foust -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, November 28, 2003 6:50 AM To: accessd at databaseadvisors.com Subject: [AccessD] Cut Paste actionto tabsheet looses events. When you cut and past controls to move controls from a tabsheets control (?! don't know correct name in English) they always looses their events.... The code is still there, but in the properties is no longer eventprocedure (?!) marked. So if you click on the tree dots the event is back. But that would take me to go over each control and verify the code if which events exists for which control. Is there a way that Access will put the events in the properties automaticaly? A cut and past is necesary because moving to a tab does not work... Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Dec 2 02:08:02 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Dec 2003 09:08:02 +0100 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Message-ID: <1142192873.20031202090802@cactus.dk> Hi all Here MS tries to list pros and cons for these two environments: http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6andVSTO.asp /gustav From gustav at cactus.dk Tue Dec 2 02:26:07 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Dec 2003 09:26:07 +0100 Subject: [AccessD] Subform not saved In-Reply-To: <5.2.0.9.0.20031202172131.00b3f5f8@mail.dalyn.co.nz> References: <5.2.0.9.0.20031202172131.00b3f5f8@mail.dalyn.co.nz> Message-ID: <1623277753.20031202092607@cactus.dk> Hi David Try MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Form.Dirty MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Form.NewRecord /gustav > AXP FE / SQL2000 BE > I have a subform on a form. I want to check if the record on the subform > has been saved when the main form is closed. I am having problems with the > syntax. If I use the following in the on unload event of the main form - > MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Dirty > or MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.NewRecord > I get " > Object doesn't support this property or method (Error 438)" > However > MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter!txtPresMeterReadDate > returns the correct value so I know I am referring to the subform correctly. > The reason for checking is that when the main form is being closed by the x > in the top right hand corner, the after update event is not firing on the > subform (yet the record is being saved!). Another symptom is that I need > to click on the record selector twice for the pencil to turn into a triangle. > I am sure it is something to do with refreshing the record from the SQL BE > but not sure how to fix it. From andy at minstersystems.co.uk Tue Dec 2 02:43:58 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 2 Dec 2003 08:43:58 -0000 Subject: [AccessD] Subform not saved In-Reply-To: <5.2.0.9.0.20031202172131.00b3f5f8@mail.dalyn.co.nz> Message-ID: <034301c3b8b0$6dc22220$b274d0d5@minster33c3r25> David How about MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Form.Dirty Or even MsgBox Forms!frmCustInvoice.Form!sfrCustInvoiceMeter.Form.Dirty Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > David Emerson > Sent: 02 December 2003 04:35 > To: accessd at databaseadvisors.com > Subject: [AccessD] Subform not saved > > > Group, > > AXP FE / SQL2000 BE > > I have a subform on a form. I want to check if the record on > the subform > has been saved when the main form is closed. I am having > problems with the > syntax. If I use the following in the on unload event of the > main form - > > MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Dirty > or MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.NewRecord > > I get " > > Object doesn't support this property or method (Error 438)" > > However > > MsgBox > Forms!frmCustInvoice!sfrCustInvoiceMeter!txtPresMeterReadDate > > returns the correct value so I know I am referring to the > subform correctly. > > The reason for checking is that when the main form is being > closed by the x > in the top right hand corner, the after update event is not > firing on the > subform (yet the record is being saved!). Another symptom is > that I need > to click on the record selector twice for the pencil to turn > into a triangle. > > I am sure it is something to do with refreshing the record > from the SQL BE > but not sure how to fix it. > > Any pointers? > > Regards > > David Emerson > Dalyn Software Ltd > 25 Cunliffe St, Churton Park > Wellington, New Zealand > Ph/Fax (877) 456-1205 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > 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: [AccessD] 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 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: [AccessD] [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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From mikedorism at adelphia.net Tue Dec 2 06:43:00 2003 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Tue, 2 Dec 2003 07:43:00 -0500 Subject: [AccessD] [dba-VB] VB6 Crosstab Query Help In-Reply-To: <20115079.1070362831314.JavaMail.www@wwinf3005> Message-ID: <000201c3b8d1$d248fc20$8b194244@hargrove.internal> You should be able to take it over just like you do any other query. As for display, I would use a Datagrid or a Flexgrid. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 02, 2003 6:01 AM To: dba-vb Cc: accessd Subject: [AccessD] [dba-VB] VB6 Crosstab Query Help 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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Dec 2 07:16:33 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 2 Dec 2003 08:16:33 -0500 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Message-ID: Coolness factor? ...someone at M$ has a sense of humor. Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, December 02, 2003 3:08 AM To: Access Developers discussion and problem solving Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Hi all Here MS tries to list pros and cons for these two environments: http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6andVS TO.asp /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Tue Dec 2 08:08:55 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 2 Dec 2003 09:08:55 -0500 Subject: [AccessD] A2K modded in XP causes errors - was [XP developer, Office 97 and a changing OS] Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F963@TTNEXCHSRV1.hshhp.com> Here's a potential issue with using AXP to work on client's A2K systems. We are modding a freeware system that was professionally written in A2K. We do not have A2K here but do have AXP (we're still primarily an A97 shop but moving to XP shortly). So we've had to use AXP to work on this system. The app uses the runtime to access an MDE file. When we compile our app to MDE and try to run via the runtime we get an "unrecognized database format" error. My developer is sure he's compiling to A2K format. Is there anyway to tell or ensure it is? Win2K OS. Has anyone had any experience with this? TIA, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Monday, December 01, 2003 8:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP developer, Office 97 and a changing OS ...seamlessly? ...do you know of any piece of MS software that does anything "seamlessly"? ...just asking ...know the answer :) ...but short of that, yeah ...you can work with an A2K mdb in XP and it will maintain its compatibility ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 7:52 PM Subject: RE: [AccessD] XP developer, Office 97 and a changing OS > William, > > Can you seamlessly work with A2K databases and importantly, libraries? I > would like to move to XP for all development if I can do my A2K development, > compile, compact and send to my A2K clients without any problems. I have my > framework lib to consider as well. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 20:00 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...I did it for more than three months while transitioning a client > ...put a shortcut on the desktop for each db that calls the specific > executable path required and you shouldn't have any problems. > > ...of course, the XP runtime has to be installed after the A97 install > else you'll have a mess. > > ...I've upgraded all my clients to WXP/OXP now, all using Access > runtimes ...once you get past the initial learning curve with XP, I much > prefer it over 2K. > > ...no prob with the ODE ...its essentially just a reinstall. > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:41 PM > Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Thanks William > > > > What about running the XP run time next to Office 97 Prof (I should > > have worded my original email better) > > > > Thanks again > > > > mark > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > > Hindman > > Sent: 01 December 2003 19:23 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > ...no, no, no :) > > > > William Hindman > > Government is not reason, government is not persuasion, government is > > force. It is a dangerous servant." G. Washington > > > > ----- Original Message ----- > > From: "MarkH" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Monday, December 01, 2003 2:05 PM > > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > > Hello... > > > > > > Our network is currently running Windows 2000 and Office 97. The IT > > > guys (bless 'em) are planning to upgrade to Windows XP and Office XP > > > > (standard with no Access) sometime next Spring. > > > > > > Our department is, sort of, one step ahead. We are currently > > > developing a couple of applications using Office XP (on a separate > > > laptop) and have just purchased XP Developer with a view to > > > upgrading some older apps as well as develping the new ones. I have > > > 3 question > > > then: > > > > > > 1) Has anyone had problems installing XP developer over 97 > > > professional? Particularly in relation to generating XP runtime > > > installs. > > > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > > > 3) The tricky one... When the IT guys do upgrade these machines will > > > > there be activation problems when we re-install XP developer? The > > > hardware will not change at all, just the OS. > > > > > > Thanks in advance > > > > > > mark > > > > > > --- > > > Outgoing mail is certified Virus Free. > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > --- > > Incoming mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Jdemarco at hshhp.org Tue Dec 2 08:14:47 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 2 Dec 2003 09:14:47 -0500 Subject: [AccessD] OT - Getting started with Web development Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F964@TTNEXCHSRV1.hshhp.com> Each folder does have its own authentication settings but it still won't give access to the machine name. If the DLL is used it may need to be installed on user's PC's and accessed via client side scripting. Unless scripting alone can access the API's then it's not even necessary. Jim DeMarco -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 9:09 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development If you host your app in a virtual directory, then any changes you make will only affect your web application. They don't need to change any 'global iis' settings, so that should keep your network admins happy. I really think it's the easiest way to go rather than using dll's or client side script. All you have to do is check one box and you're laughing! Another point to remember: The IE6 option, under advanced->tools, called "Enable Windows Integrated Authentication" can affect whether the server variables (LOGON_USER) returns anything. Might pay to change that and see if it fixes your initial problem. Cheers, Andrew -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, 2 December 2003 9:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Andrew, > If you're working in an intranet you can use integrated authentication. I am developing for an intranet, but unfortunately, I stand little chance of changing any IIS settings. > If you're using .Net you can use impersonation I'm a little familiar with WMI scripting and impersonation, but that requires that you have administrator privs on the remote machine. Is this similar to what you mention in .Net? Mark -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 6:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I don't think that will work. IIS performs your authentication so won't have the client details available. You'll have to run a custom login form to get the user details or ask your host to set up basic authentication (not overly secure). If you're working in an intranet you can use integrated authentication. (If you're using .Net you can use impersonation which is another step further and allows you a little more control). Cheers, Andrew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, 2 December 2003 6:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 actebs at actebs.com.au Tue Dec 2 08:20:13 2003 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 3 Dec 2003 01:20:13 +1100 Subject: [AccessD] A2K modded in XP causes errors - was [XP developer, Office 97 and a changing OS] In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173F963@TTNEXCHSRV1.hshhp.com> Message-ID: <000001c3b8df$69621800$0c05a8c0@carlton.local> Jim, You can develop in AXP and create an A2K mdb, but you can not create and A2K mde using AXP... Hmmm, I hope that makes sense... Regards Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, 3 December 2003 1:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K modded in XP causes errors - was [XP developer, Office 97 and a changing OS] Here's a potential issue with using AXP to work on client's A2K systems. We are modding a freeware system that was professionally written in A2K. We do not have A2K here but do have AXP (we're still primarily an A97 shop but moving to XP shortly). So we've had to use AXP to work on this system. The app uses the runtime to access an MDE file. When we compile our app to MDE and try to run via the runtime we get an "unrecognized database format" error. My developer is sure he's compiling to A2K format. Is there anyway to tell or ensure it is? Win2K OS. Has anyone had any experience with this? TIA, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Monday, December 01, 2003 8:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP developer, Office 97 and a changing OS ...seamlessly? ...do you know of any piece of MS software that does anything "seamlessly"? ...just asking ...know the answer :) ...but short of that, yeah ...you can work with an A2K mdb in XP and it will maintain its compatibility ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 7:52 PM Subject: RE: [AccessD] XP developer, Office 97 and a changing OS > William, > > Can you seamlessly work with A2K databases and importantly, libraries? > I would like to move to XP for all development if I can do my A2K development, > compile, compact and send to my A2K clients without any problems. I > have my > framework lib to consider as well. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 20:00 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...I did it for more than three months while transitioning a client > ...put a shortcut on the desktop for each db that calls the specific > executable path required and you shouldn't have any problems. > > ...of course, the XP runtime has to be installed after the A97 install > else you'll have a mess. > > ...I've upgraded all my clients to WXP/OXP now, all using Access > runtimes ...once you get past the initial learning curve with XP, I > much prefer it over 2K. > > ...no prob with the ODE ...its essentially just a reinstall. > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:41 PM > Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Thanks William > > > > What about running the XP run time next to Office 97 Prof (I should > > have worded my original email better) > > > > Thanks again > > > > mark > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > > Hindman > > Sent: 01 December 2003 19:23 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > ...no, no, no :) > > > > William Hindman > > Government is not reason, government is not persuasion, government > > is force. It is a dangerous servant." G. Washington > > > > ----- Original Message ----- > > From: "MarkH" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Monday, December 01, 2003 2:05 PM > > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > > Hello... > > > > > > Our network is currently running Windows 2000 and Office 97. The > > > IT guys (bless 'em) are planning to upgrade to Windows XP and > > > Office XP > > > > (standard with no Access) sometime next Spring. > > > > > > Our department is, sort of, one step ahead. We are currently > > > developing a couple of applications using Office XP (on a separate > > > laptop) and have just purchased XP Developer with a view to > > > upgrading some older apps as well as develping the new ones. I > > > have 3 question > > > then: > > > > > > 1) Has anyone had problems installing XP developer over 97 > > > professional? Particularly in relation to generating XP runtime > > > installs. > > > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > > > 3) The tricky one... When the IT guys do upgrade these machines > > > will > > > > there be activation problems when we re-install XP developer? The > > > hardware will not change at all, just the OS. > > > > > > Thanks in advance > > > > > > mark > > > > > > --- > > > Outgoing mail is certified Virus Free. > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > --- > > Incoming mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Tue Dec 2 08:41:23 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 2 Dec 2003 09:41:23 -0500 Subject: [AccessD] A2K modded in XP causes errors - was [XP developer,Office 97 and a changing OS] Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F966@TTNEXCHSRV1.hshhp.com> Thanks. That's what I was thinking. Jim D -----Original Message----- From: ACTEBS [mailto:actebs at actebs.com.au] Sent: Tuesday, December 02, 2003 9:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K modded in XP causes errors - was [XP developer,Office 97 and a changing OS] Jim, You can develop in AXP and create an A2K mdb, but you can not create and A2K mde using AXP... Hmmm, I hope that makes sense... Regards Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Wednesday, 3 December 2003 1:09 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K modded in XP causes errors - was [XP developer, Office 97 and a changing OS] Here's a potential issue with using AXP to work on client's A2K systems. We are modding a freeware system that was professionally written in A2K. We do not have A2K here but do have AXP (we're still primarily an A97 shop but moving to XP shortly). So we've had to use AXP to work on this system. The app uses the runtime to access an MDE file. When we compile our app to MDE and try to run via the runtime we get an "unrecognized database format" error. My developer is sure he's compiling to A2K format. Is there anyway to tell or ensure it is? Win2K OS. Has anyone had any experience with this? TIA, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Monday, December 01, 2003 8:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] XP developer, Office 97 and a changing OS ...seamlessly? ...do you know of any piece of MS software that does anything "seamlessly"? ...just asking ...know the answer :) ...but short of that, yeah ...you can work with an A2K mdb in XP and it will maintain its compatibility ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, December 01, 2003 7:52 PM Subject: RE: [AccessD] XP developer, Office 97 and a changing OS > William, > > Can you seamlessly work with A2K databases and importantly, libraries? > I would like to move to XP for all development if I can do my A2K development, > compile, compact and send to my A2K clients without any problems. I > have my > framework lib to consider as well. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: 01 December 2003 20:00 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > ...I did it for more than three months while transitioning a client > ...put a shortcut on the desktop for each db that calls the specific > executable path required and you shouldn't have any problems. > > ...of course, the XP runtime has to be installed after the A97 install > else you'll have a mess. > > ...I've upgraded all my clients to WXP/OXP now, all using Access > runtimes ...once you get past the initial learning curve with XP, I > much prefer it over 2K. > > ...no prob with the ODE ...its essentially just a reinstall. > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "MarkH" > To: "'Access Developers discussion and problem solving'" > > Sent: Monday, December 01, 2003 2:41 PM > Subject: RE: [AccessD] XP deveoper, Office 97 and a changing OS > > > > Thanks William > > > > What about running the XP run time next to Office 97 Prof (I should > > have worded my original email better) > > > > Thanks again > > > > mark > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > > Hindman > > Sent: 01 December 2003 19:23 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > ...no, no, no :) > > > > William Hindman > > Government is not reason, government is not persuasion, government > > is force. It is a dangerous servant." G. Washington > > > > ----- Original Message ----- > > From: "MarkH" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Monday, December 01, 2003 2:05 PM > > Subject: [AccessD] XP deveoper, Office 97 and a changing OS > > > > > > > Hello... > > > > > > Our network is currently running Windows 2000 and Office 97. The > > > IT guys (bless 'em) are planning to upgrade to Windows XP and > > > Office XP > > > > (standard with no Access) sometime next Spring. > > > > > > Our department is, sort of, one step ahead. We are currently > > > developing a couple of applications using Office XP (on a separate > > > laptop) and have just purchased XP Developer with a view to > > > upgrading some older apps as well as develping the new ones. I > > > have 3 question > > > then: > > > > > > 1) Has anyone had problems installing XP developer over 97 > > > professional? Particularly in relation to generating XP runtime > > > installs. > > > > > > 2) Any problems running XP runtime over 97 prof on Win 2000? > > > > > > 3) The tricky one... When the IT guys do upgrade these machines > > > will > > > > there be activation problems when we re-install XP developer? The > > > hardware will not change at all, just the OS. > > > > > > Thanks in advance > > > > > > mark > > > > > > --- > > > Outgoing mail is certified Virus Free. > > > Checked by AVG anti-virus system (http://www.grisoft.com). > > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > --- > > Incoming mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 rl_stewart at highstream.net Tue Dec 2 09:09:27 2003 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 02 Dec 2003 09:09:27 -0600 Subject: [AccessD] Re: XP developer, Office 97 and a changing OS In-Reply-To: <200312020124.hB21Odc19039@databaseadvisors.com> Message-ID: <5.1.0.14.2.20031202090852.02a77558@pop3.highstream.net> Except for the fact that you cannot create an MDE of the 2k file. At 07:24 PM 12/1/2003 -0600, you wrote: >Date: Mon, 1 Dec 2003 20:24:17 -0500 >From: "William Hindman" >Subject: Re: [AccessD] XP developer, Office 97 and a changing OS >To: "Access Developers discussion and problem solving" > >Message-ID: <005b01c3b873$01562b00$6101a8c0 at dejpolsys> >Content-Type: text/plain; charset="Windows-1252" > >...seamlessly? ...do you know of any piece of MS software that does anything >"seamlessly"? ...just asking ...know the answer :) > >...but short of that, yeah ...you can work with an A2K mdb in XP and it will >maintain its compatibility ...HTH :) > >William Hindman >Government is not reason, government is not persuasion, >government is force. It is a dangerous servant." G. Washington > >----- Original Message ----- >From: "John W. Colby" >To: "Access Developers discussion and problem solving" > >Sent: Monday, December 01, 2003 7:52 PM >Subject: RE: [AccessD] XP developer, Office 97 and a changing OS > > > > William, > > > > Can you seamlessly work with A2K databases and importantly, libraries? I > > would like to move to XP for all development if I can do my A2K >development, > > compile, compact and send to my A2K clients without any problems. I have >my > > framework lib to consider as well. > > > > John W. Colby > > www.ColbyConsulting.com > > From paul.hartland at fsmail.net Tue Dec 2 09:53:48 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 2 Dec 2003 16:53:48 +0100 (CET) Subject: [AccessD] Does Query Exist In Access Queries Message-ID: <860476.1070380428961.JavaMail.www@wwinf3001> To all, I'm sure I have done this before but can't find the code anywhere and can't figure out how to do it, basically I want to know if a query called qryProgrammeAvailability exists before I delete it via VB/VBA Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From cfoust at infostatsystems.com Tue Dec 2 10:19:31 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 08:19:31 -0800 Subject: [AccessD] Does Query Exist In Access Queries Message-ID: The easiest way to test it is to try to set an object variable to point to it and trap the error. If there is no error, it exists. Alternatively, try to delete it and trap the error. If it didn't exist, an error will occur and you'll know what happened. Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Tuesday, December 02, 2003 7:54 AM To: accessd Subject: [AccessD] Does Query Exist In Access Queries To all, I'm sure I have done this before but can't find the code anywhere and can't figure out how to do it, basically I want to know if a query called qryProgrammeAvailability exists before I delete it via VB/VBA Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JRojas at tnco-inc.com Tue Dec 2 10:26:28 2003 From: JRojas at tnco-inc.com (Joe Rojas) Date: Tue, 2 Dec 2003 11:26:28 -0500 Subject: [AccessD] SS7 - 80040e09 permission denied (strange) Message-ID: <806536912C472E4A9D6515DF2E57261E23960A@mercury.tnco-inc.com> (I also posted this in the SQLServer group but I thought I might have some luck here too) Hi All, I am using SS7 with a couple of web based front ends (ASP). I have one database that I used to store information that all the other databases will use, e.g. login information. I only have one user in each database which is the IIS Webserver anonymous user. This user only has exec permissions on stored procedures, i.e. no direct access to tables. In the 'Global' DB this user has no permissions to anything and as of right now, this DB only has one table, tblLogins. DB1 has a stored procedure that accesses this 'Gobal' database to check if the user has given valid login credentials (see below) and everything works perfectly. DB2 has a stored procedure that does that same as above and the coding of the SP is identical to that of DB1. When run from DB2 I get an error message from the web page that reads: SELECT permission denied on object 'tblLogins', database 'TNCOGlobal', owner 'dbo'. I checked both databases, both web apps, and all folder permissions to find any differences and have come up with bunk! Any ideas as to why this works with one DB and not the other? Thanks, JR CREATE PROCEDURE dbo.sp_checklogin @user varchar(30), @pass varchar(20), @FL tinyint OUTPUT AS DECLARE @pass2 varchar(20) SET NOCOUNT ON SELECT @pass2 = Password, @FL = FirstLogin FROM TNCOGlobal.dbo.tblLogins WHERE UserName = @user SET NOCOUNT OFF IF (@pass2 Is NULL) BEGIN SET @FL = 3 RETURN END IF (@pass <> @pass2) BEGIN SET @FL = 2 END RETURN This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From cfoust at infostatsystems.com Tue Dec 2 10:28:59 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 08:28:59 -0800 Subject: [AccessD] Sagekey software - opinions please Message-ID: We use it over a wide variety of platforms, including WinXP both for 97 apps and for XP apps. It's a wonderful product and their support is excellent. However, someone in your organization will have to become familiar with the SageKey scripts because you will undoubtedly need to tweak them occasionally. Charlotte Foust -----Original Message----- From: connie.kamrowski at agric.nsw.gov.au [mailto:connie.kamrowski at agric.nsw.gov.au] Sent: Monday, December 01, 2003 7:22 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sagekey software - opinions please Hi all, We are looking at Sagekey software at the moment for use in our corporation which operates on a WAN with both win 98 and winXP machines. I am using the sagekey for access97 software. Just wondering if anyone has used sagekey to deploy access97 apps over win98 and winXP machines. Any thoughts and issues you encountered would be appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 2 10:35:05 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 08:35:05 -0800 Subject: [AccessD] Registry tweaks Message-ID: The one caution I would suggest here is that the country names are coming from a telephony key. The problem is that there are separate "countries" which happen to be islands and which share an area code, so some of those country names may not be entirely reliable. I always have to refresh my memory on callbacks as well, but it's perfectly possible to create a recordset entirely in memory using ADO and then persist it to either an ADTG or XML format instead of creating a table. Charlotte Foust -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Monday, December 01, 2003 6:39 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Registry tweaks Just use sortcountrylist function as intial call. You don't have to QuikSort just put in a query after moving to a table I was going to put into an array at one point. Should give you 230 countries. I find it a pain to use callbacks. I keep having to refresh my memory as to how to use them. Public Const HKEY_CLASSES_ROOT As Long = &H80000000 Public Const HKEY_CURRENT_USER = &H80000001 Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 Public Const HKEY_USERS As Long = &H80000003 Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 Public Const HKEY_DYN_DATA As Long = &H80000006 Const ValueName As String = "Name" Const MasterKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List\" Public Function getregcountries() As String 'Enumerate the keys inside the Registry key: ' parts of this from http://www.vb-helper.com/howto_list_countries.html ' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ ' CurrentVersion\Telephony\Country List\ Dim KeyCol As Collection Dim CountryCol As Collection Dim strCountry As String strCountry = "" If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, MasterKey) Dim TheKey As Variant Set CountryCol = New Collection For Each TheKey In KeyCol If TheKey <> "800" And GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, "InternationalRule", "") <> "00EFG#" Then 'CboCountry.AddItem GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") Debug.Print GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") strCountry = strCountry & GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") & ";" End If Next End If getregcountries = strCountry End Function Function SortCountriesString() As String Dim arrtemp As Variant Dim arrCountries(300) As String Dim strCountries As String Dim strOutCountries As String Dim i As Long ' Get Countries from Registry strCountries = getregcountries ' Move countries string to array unsorted arrtemp = Split(strCountries, ";") 'put variant array into string array For i = LBound(arrtemp) To UBound(arrtemp) arrCountries(i) = arrtemp(i) Next i ' now sort array by country name Quicksort arrCountries, LBound(arrtemp), UBound(arrtemp) 'put array into string for combobox maybe too long > 2048 bytes For i = LBound(arrtemp) To UBound(arrtemp) strOutCountries = strOutCountries & arrCountries(i) & ";" Next i SortCountriesString = strOutCountries 'Debug.Print Len(SortCountriesString) ' put sorted array into table MoveIntoTable arrCountries(), UBound(arrtemp) End Function Function MoveIntoTable(arrCountries() As String, imax As Long) Dim rs As Recordset Dim iRow As Integer, iCol As Integer Dim db As Database Set db = CurrentDb 'pre create table with 1 text field "Country Name" Set rs = db.OpenRecordset("CountryName") If rs.RecordCount > 1 Then MsgBox "table exists already" Exit Function End If With rs For iRow = 0 To imax .AddNew ' 0'th field is autonumber .Fields(1) = arrCountries(iRow) .Update Next .Close End With Set rs = Nothing End Function Public Sub Quicksort(list() As String, ByVal min As Long, _ ByVal max As Long) Dim med_value As String Dim hi As Long Dim lo As Long Dim i As Long ' If min >= max, the list contains 0 or 1 items so it ' is sorted. If min >= max Then Exit Sub ' Pick the dividing value. i = Int((max - min + 1) * Rnd + min) med_value = list(i) ' Swap it to the front. list(i) = list(min) lo = min hi = max Do ' Look down from hi for a value < med_value. Do While list(hi) >= med_value hi = hi - 1 If hi <= lo Then Exit Do Loop If hi <= lo Then list(lo) = med_value Exit Do End If ' Swap the lo and hi values. list(lo) = list(hi) ' Look up from lo for a value >= med_value. lo = lo + 1 Do While list(lo) < med_value lo = lo + 1 If lo >= hi Then Exit Do Loop If lo >= hi Then lo = hi list(hi) = med_value Exit Do End If ' Swap the lo and hi values. list(hi) = list(lo) Loop ' Sort the two sublists. Quicksort list(), min, lo - 1 Quicksort list(), lo + 1, max End Sub 'registry utilities in seperate module Option Compare Database Option Explicit Public Const HKEY_CLASSES_ROOT As Long = &H80000000 Public Const HKEY_CURRENT_USER = &H80000001 Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 Public Const HKEY_USERS As Long = &H80000003 Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 Public Const HKEY_DYN_DATA As Long = &H80000006 Const REG_SZ = 1 Const REG_EXPAND_SZ = 2 Const REG_BINARY = 3 Const REG_DWORD = 4 Const REG_MULTI_SZ = 7 Const ERROR_MORE_DATA = 234 Const KEY_READ = &H20019 ' ((READ_CONTROL Or KEY_QUERY_VALUE Or ' KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And (Not ' SYNCHRONIZE)) Const REG_OPENED_EXISTING_KEY = &H2 Const KEY_WRITE = &H20006 '((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or ' KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE)) Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias _ "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, _ ByVal cbData As Long) As Long Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias _ "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As _ Any, source As Any, ByVal numBytes As Long) Private Declare Function RegEnumKey Lib "advapi32.dll" Alias "RegEnumKeyA" _ (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, _ ByVal cbName As Long) As Long Private Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" _ (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, _ lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, _ lpData As Any, lpcbData As Long) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" _ (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As Long) As _ Long Private Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias _ "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _ ByVal Reserved As Long, ByVal lpClass As Long, ByVal dwOptions As Long, _ ByVal samDesired As Long, ByVal lpSecurityAttributes As Long, _ phkResult As Long, lpdwDisposition As Long) As Long Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _ "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ ByVal lpReserved As Long, lpType As Long, lpData As Any, _ lpcbData As Long) As Long Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" _ (ByVal hKey As Long, ByVal lpSubKey As String) As Long Sub DeleteRegistryKey(ByVal hKey As Long, ByVal KeyName As String) RegDeleteKey hKey, KeyName End Sub Function DeleteRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ ByVal ValueName As String) As Boolean Dim handle As Long ' Open the key, exit if not found If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit Function ' Delete the value (returns 0 if success) DeleteRegistryValue = (RegDeleteValue(handle, ValueName) = 0) ' Close the handle RegCloseKey handle End Function Function CheckRegistryKey(ByVal hKey As Long, ByVal KeyName As String) As _ Boolean Dim handle As Long ' Try to open the key If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then ' The key exists CheckRegistryKey = True ' Close it before exiting RegCloseKey handle End If End Function Function CreateRegistryKey(ByVal hKey As Long, ByVal KeyName As String) As _ Boolean Dim handle As Long, disposition As Long If RegCreateKeyEx(hKey, KeyName, 0, 0, 0, 0, 0, handle, disposition) Then Err.Raise 1001, , "Unable to create the registry key" Else ' Return True if the key already existed. CreateRegistryKey = (disposition = REG_OPENED_EXISTING_KEY) ' Close the key. RegCloseKey handle End If End Function Function EnumRegistryKeys(ByVal hKey As Long, ByVal KeyName As String) As _ Collection Dim handle As Long Dim length As Long Dim index As Long Dim subkeyName As String ' initialize the result collection Set EnumRegistryKeys = New Collection ' Open the key, exit if not found If Len(KeyName) Then If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function ' in all case the subsequent functions use hKey hKey = handle End If Do ' this is the max length for a key name length = 260 subkeyName = Space$(length) ' get the N-th key, exit the loop if not found If RegEnumKey(hKey, index, subkeyName, length) Then Exit Do ' add to the result collection subkeyName = Left$(subkeyName, InStr(subkeyName, vbNullChar) - 1) EnumRegistryKeys.Add subkeyName, subkeyName ' prepare to query for next key index = index + 1 Loop ' Close the key, if it was actually opened If handle Then RegCloseKey handle End Function Function EnumRegistryValues(ByVal hKey As Long, ByVal KeyName As String) As _ Collection Dim handle As Long Dim index As Long Dim valueType As Long Dim name As String Dim nameLen As Long Dim resLong As Long Dim resString As String Dim dataLen As Long Dim valueInfo(0 To 1) As Variant Dim retVal As Long ' initialize the result Set EnumRegistryValues = New Collection ' Open the key, exit if not found. If Len(KeyName) Then If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function ' in all cases, subsequent functions use hKey hKey = handle End If Do ' this is the max length for a key name nameLen = 260 name = Space$(nameLen) ' prepare the receiving buffer for the value dataLen = 4096 ReDim resBinary(0 To dataLen - 1) As Byte ' read the value's name and data ' exit the loop if not found retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, valueType, _ resBinary(0), dataLen) ' enlarge the buffer if you need more space If retVal = ERROR_MORE_DATA Then ReDim resBinary(0 To dataLen - 1) As Byte retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, _ valueType, resBinary(0), dataLen) End If ' exit the loop if any other error (typically, no more values) If retVal Then Exit Do ' retrieve the value's name valueInfo(0) = Left$(name, nameLen) ' return a value corresponding to the value type Select Case valueType Case REG_DWORD CopyMemory resLong, resBinary(0), 4 valueInfo(1) = resLong Case REG_SZ, REG_EXPAND_SZ ' copy everything but the trailing null char resString = Space$(dataLen - 1) CopyMemory ByVal resString, resBinary(0), dataLen - 1 valueInfo(1) = resString Case REG_BINARY ' shrink the buffer if necessary If dataLen < UBound(resBinary) + 1 Then ReDim Preserve resBinary(0 To dataLen - 1) As Byte End If valueInfo(1) = resBinary() Case REG_MULTI_SZ ' copy everything but the 2 trailing null chars resString = Space$(dataLen - 2) CopyMemory ByVal resString, resBinary(0), dataLen - 2 valueInfo(1) = resString Case Else ' Unsupported value type - do nothing End Select ' add the array to the result collection ' the element's key is the value's name EnumRegistryValues.Add valueInfo, valueInfo(0) index = index + 1 Loop ' Close the key, if it was actually opened If handle Then RegCloseKey handle End Function Function EnumRegistryValuesEx(ByVal hKey As Long, ByVal KeyName As String) As _ Collection Dim handle As Long Dim index As Long Dim valueType As Long Dim name As String Dim nameLen As Long Dim resLong As Long Dim resString As String Dim dataLen As Long Dim valueInfo(0 To 2) As Variant Dim retVal As Long ' initialize the result Set EnumRegistryValuesEx = New Collection ' Open the key, exit if not found. If Len(KeyName) Then If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function ' in all cases, subsequent functions use hKey hKey = handle End If Do ' this is the max length for a key name nameLen = 260 name = Space$(nameLen) ' prepare the receiving buffer for the value dataLen = 4096 ReDim resBinary(0 To dataLen - 1) As Byte ' read the value's name and data ' exit the loop if not found retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, valueType, _ resBinary(0), dataLen) ' enlarge the buffer if you need more space If retVal = ERROR_MORE_DATA Then ReDim resBinary(0 To dataLen - 1) As Byte retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, _ valueType, resBinary(0), dataLen) End If ' exit the loop if any other error (typically, no more values) If retVal Then Exit Do ' retrieve the value's name valueInfo(0) = Left$(name, nameLen) ' return a value corresponding to the value type Select Case valueType Case REG_DWORD CopyMemory resLong, resBinary(0), 4 valueInfo(1) = resLong valueInfo(2) = vbLong Case REG_SZ, REG_EXPAND_SZ ' copy everything but the trailing null char resString = Space$(dataLen - 1) CopyMemory ByVal resString, resBinary(0), dataLen - 1 valueInfo(1) = resString valueInfo(2) = vbString Case REG_BINARY ' shrink the buffer if necessary If dataLen < UBound(resBinary) + 1 Then ReDim Preserve resBinary(0 To dataLen - 1) As Byte End If valueInfo(1) = resBinary() valueInfo(2) = vbArray + vbByte Case REG_MULTI_SZ ' copy everything but the 2 trailing null chars resString = Space$(dataLen - 2) CopyMemory ByVal resString, resBinary(0), dataLen - 2 valueInfo(1) = resString valueInfo(2) = vbString Case Else ' Unsupported value type - do nothing End Select ' add the array to the result collection ' the element's key is the value's name EnumRegistryValuesEx.Add valueInfo, valueInfo(0) index = index + 1 Loop ' Close the key, if it was actually opened If handle Then RegCloseKey handle End Function Function GetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ ByVal ValueName As String, Optional DefaultValue As Variant) As Variant Dim handle As Long Dim resLong As Long Dim resString As String Dim resBinary() As Byte Dim length As Long Dim retVal As Long Dim valueType As Long ' Prepare the default result GetRegistryValue = IIf(IsMissing(DefaultValue), Empty, DefaultValue) ' Open the key, exit if not found. If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit Function End If ' prepare a 1K receiving resBinary length = 1024 ReDim resBinary(0 To length - 1) As Byte ' read the registry key retVal = RegQueryValueEx(handle, ValueName, 0, valueType, resBinary(0), _ length) ' if resBinary was too small, try again If retVal = ERROR_MORE_DATA Then ' enlarge the resBinary, and read the value again ReDim resBinary(0 To length - 1) As Byte retVal = RegQueryValueEx(handle, ValueName, 0, valueType, resBinary(0), _ length) End If ' return a value corresponding to the value type Select Case valueType Case REG_DWORD CopyMemory resLong, resBinary(0), 4 GetRegistryValue = resLong Case REG_SZ, REG_EXPAND_SZ ' copy everything but the trailing null char resString = Space$(length - 1) CopyMemory ByVal resString, resBinary(0), length - 1 GetRegistryValue = resString Case REG_BINARY ' resize the result resBinary If length <> UBound(resBinary) + 1 Then ReDim Preserve resBinary(0 To length - 1) As Byte End If GetRegistryValue = resBinary() Case REG_MULTI_SZ ' copy everything but the 2 trailing null chars resString = Space$(length - 2) CopyMemory ByVal resString, resBinary(0), length - 2 GetRegistryValue = resString Case Else RegCloseKey handle Err.Raise 1001, , "Unsupported value type" End Select ' close the registry key RegCloseKey handle End Function Function SetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ ByVal ValueName As String, value As Variant) As Boolean Dim handle As Long Dim lngValue As Long Dim strValue As String Dim binValue() As Byte Dim length As Long Dim retVal As Long ' Open the key, exit if not found If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit Function End If ' three cases, according to the data type in Value Select Case VarType(value) Case vbInteger, vbLong lngValue = value retVal = RegSetValueEx(handle, ValueName, 0, REG_DWORD, lngValue, 4) Case vbString strValue = value retVal = RegSetValueEx(handle, ValueName, 0, REG_SZ, ByVal strValue, _ Len(strValue)) Case vbArray + vbByte binValue = value length = UBound(binValue) - LBound(binValue) + 1 retVal = RegSetValueEx(handle, ValueName, 0, REG_BINARY, _ binValue(LBound(binValue)), length) Case Else RegCloseKey handle Err.Raise 1001, , "Unsupported value type" End Select ' Close the key and signal success RegCloseKey handle ' signal success if the value was written correctly SetRegistryValue = (retVal = 0) End Function -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 2 10:35:08 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 2 Dec 2003 17:35:08 +0100 (CET) Subject: [AccessD] Does Query Exist In Access Queries Message-ID: <30897823.1070382908182.JavaMail.www@wwinf3001> Charlotte, Thanks for your help, never even considered On Error etc......Think the powers that be are working me too hard..... Paul Message date : Dec 02 2003, 04:24 PM >From : Charlotte Foust To : Access Developers discussion and problem solving Copy to : Subject : RE: [AccessD] Does Query Exist In Access Queries The easiest way to test it is to try to set an object variable to point to it and trap the error. If there is no error, it exists. Alternatively, try to delete it and trap the error. If it didn't exist, an error will occur and you'll know what happened. Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Tuesday, December 02, 2003 7:54 AM To: accessd Subject: [AccessD] Does Query Exist In Access Queries To all, I'm sure I have done this before but can't find the code anywhere and can't figure out how to do it, basically I want to know if a query called qryProgrammeAvailability exists before I delete it via VB/VBA Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Oleg_123 at xuppa.com Tue Dec 2 10:52:08 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 2 Dec 2003 11:52:08 -0500 (EST) Subject: [AccessD] no Focus In-Reply-To: <005601c3b82f$e6d8fde0$8b194244@hargrove.internal> References: <40866.12.3.132.98.1070295051.squirrel@heck.bay9.com> <005601c3b82f$e6d8fde0$8b194244@hargrove.internal> Message-ID: <31338.12.3.132.98.1070383928.squirrel@heck.bay9.com> This would have forked in VB6, but in Access I am getting "no focus error" what should i do ? Private Sub sndBrian_Click() Dim From As String Dim Through As String Dim dtEdate dtEdate = Format(Now() - 3, "mm-dd") If txtFrom.Text = Null Or txtThrough.Text = Null Then txtFrom.Visible = True txtThrough.Visible = True MsgBox "Please enter FROM and THROUGH dates in mm-dd format", , "dates" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From andy at minstersystems.co.uk Tue Dec 2 10:59:12 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 2 Dec 2003 16:59:12 -0000 Subject: [AccessD] Does Query Exist In Access Queries In-Reply-To: <30897823.1070382908182.JavaMail.www@wwinf3001> Message-ID: <000f01c3b8f5$9c509190$b274d0d5@minster33c3r25> I'd suggest caution with "try to delete it". Surely if it did exist it won't any more after that. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 02 December 2003 16:35 > To: Access Developers discussion and problem solving > Subject: Re: RE: [AccessD] Does Query Exist In Access Queries > > > Charlotte, > Thanks for your help, never even considered On Error > etc......Think the powers that be are working me too hard..... Paul > > > > > > Message date : Dec 02 2003, 04:24 PM > >From : Charlotte Foust > To : Access Developers discussion and problem solving > Copy to : > Subject : RE: [AccessD] Does Query Exist In Access Queries > The easiest way to test it is to try to set an object > variable to point to it and trap the error. If there is no > error, it exists. Alternatively, try to delete it and trap > the error. If it didn't exist, an error will occur and you'll > know what happened. > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Tuesday, December 02, 2003 7:54 AM > To: accessd > Subject: [AccessD] Does Query Exist In Access Queries > > > To all, > I'm sure I have done this before but can't find the code > anywhere and can't figure out how to do it, basically I want > to know if a query called qryProgrammeAvailability exists > before I delete it via VB/VBA Thanks in advance for you help. > Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 > months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > Freeserve > AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > From cfoust at infostatsystems.com Tue Dec 2 11:08:51 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 09:08:51 -0800 Subject: [AccessD] Does Query Exist In Access Queries Message-ID: Sure, but the intent was to delete it in the first place, so there's nothing wrong with simply trying to delete it. Obviously, if you wanted to just check to see if it existed, you wouldn't do *that* by trying to delete it. Charlotte Foust -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Tuesday, December 02, 2003 8:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: RE: [AccessD] Does Query Exist In Access Queries I'd suggest caution with "try to delete it". Surely if it did exist it won't any more after that. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 02 December 2003 16:35 > To: Access Developers discussion and problem solving > Subject: Re: RE: [AccessD] Does Query Exist In Access Queries > > > Charlotte, > Thanks for your help, never even considered On Error > etc......Think the powers that be are working me too hard..... Paul > > > > > > Message date : Dec 02 2003, 04:24 PM > >From : Charlotte Foust > To : Access Developers discussion and problem solving > Copy to : > Subject : RE: [AccessD] Does Query Exist In Access Queries > The easiest way to test it is to try to set an object > variable to point to it and trap the error. If there is no > error, it exists. Alternatively, try to delete it and trap > the error. If it didn't exist, an error will occur and you'll > know what happened. > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Tuesday, December 02, 2003 7:54 AM > To: accessd > Subject: [AccessD] Does Query Exist In Access Queries > > > To all, > I'm sure I have done this before but can't find the code > anywhere and can't figure out how to do it, basically I want > to know if a query called qryProgrammeAvailability exists > before I delete it via VB/VBA Thanks in advance for you help. > Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 > months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > Freeserve > AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 2 11:10:00 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 09:10:00 -0800 Subject: [AccessD] no Focus Message-ID: In Access you can only refer to the Text property of a control when that control has the focus. Just take the Text property out of your code and it will work in Access. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Tuesday, December 02, 2003 8:52 AM To: accessd at databaseadvisors.com Subject: [AccessD] no Focus This would have forked in VB6, but in Access I am getting "no focus error" what should i do ? Private Sub sndBrian_Click() Dim From As String Dim Through As String Dim dtEdate dtEdate = Format(Now() - 3, "mm-dd") If txtFrom.Text = Null Or txtThrough.Text = Null Then txtFrom.Visible = True txtThrough.Visible = True MsgBox "Please enter FROM and THROUGH dates in mm-dd format", , "dates" Exit Sub End If ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Dec 2 11:20:17 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 2 Dec 2003 11:20:17 -0600 Subject: [AccessD] OT - Getting started with Web development Message-ID: <2F8793082E00D4119A1700B0D0216BF802227614@main2.marlow.com> You can get the IP address of the client though. If you aren't getting clients that are behind a proxy, then you just have to reverse DNS to get their machine name. Drew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, December 02, 2003 8:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Each folder does have its own authentication settings but it still won't give access to the machine name. If the DLL is used it may need to be installed on user's PC's and accessed via client side scripting. Unless scripting alone can access the API's then it's not even necessary. Jim DeMarco -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 9:09 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development If you host your app in a virtual directory, then any changes you make will only affect your web application. They don't need to change any 'global iis' settings, so that should keep your network admins happy. I really think it's the easiest way to go rather than using dll's or client side script. All you have to do is check one box and you're laughing! Another point to remember: The IE6 option, under advanced->tools, called "Enable Windows Integrated Authentication" can affect whether the server variables (LOGON_USER) returns anything. Might pay to change that and see if it fixes your initial problem. Cheers, Andrew -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, 2 December 2003 9:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Andrew, > If you're working in an intranet you can use integrated authentication. I am developing for an intranet, but unfortunately, I stand little chance of changing any IIS settings. > If you're using .Net you can use impersonation I'm a little familiar with WMI scripting and impersonation, but that requires that you have administrator privs on the remote machine. Is this similar to what you mention in .Net? Mark -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 6:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I don't think that will work. IIS performs your authentication so won't have the client details available. You'll have to run a custom login form to get the user details or ask your host to set up basic authentication (not overly secure). If you're working in an intranet you can use integrated authentication. (If you're using .Net you can use impersonation which is another step further and allows you a little more control). Cheers, Andrew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, 2 December 2003 6:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Dec 2 11:34:08 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Tue, 2 Dec 2003 18:34:08 +0100 Subject: [AccessD] Form Top Left corner icon. Message-ID: <46B976F2B698FF46A4FE7636509B22DF6DDB@stekelbes.ithelps.local> Hi I was wundering if it is posible to change the icon /figure that is shown on the top left corner of a form or report? Or even from the Access main form. Yes I mean the the windows icon with the maximize, minimize restore menu if you click on it. In a for it shows the regular form icon. Erwin Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Mark.Mitsules at ngc.com Tue Dec 2 11:56:34 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 2 Dec 2003 12:56:34 -0500 Subject: [AccessD] Form Top Left corner icon. Message-ID: Erwin, Access 2002: Setting the Tools/Startup/Application Icon will take care of the application window and the database window. Checking the "Use as Form and Report Icon" box will take care of the rest. Mark -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 02, 2003 12:34 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form Top Left corner icon. Hi I was wundering if it is posible to change the icon /figure that is shown on the top left corner of a form or report? Or even from the Access main form. Yes I mean the the windows icon with the maximize, minimize restore menu if you click on it. In a for it shows the regular form icon. Erwin Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Dec 2 12:15:52 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Dec 2003 19:15:52 +0100 Subject: [AccessD] no Focus In-Reply-To: References: Message-ID: <6338663084.20031202191552@cactus.dk> Hi Charlotte and Oleg Or: If IsNull(Me!txtFrom.Value) Or IsNull(Me!txtThrough.Value) Then /gustav > In Access you can only refer to the Text property of a control when that > control has the focus. Just take the Text property out of your code and > it will work in Access. > Charlotte Foust > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Tuesday, December 02, 2003 8:52 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] no Focus > This would have forked in VB6, but in Access I am getting "no focus > error" what should i do ? > Private Sub sndBrian_Click() > Dim From As String > Dim Through As String > Dim dtEdate > dtEdate = Format(Now() - 3, "mm-dd") > If txtFrom.Text = Null Or txtThrough.Text = Null Then > txtFrom.Visible = True > txtThrough.Visible = True > MsgBox "Please enter FROM and THROUGH dates in mm-dd format", , > "dates" Exit Sub End If From clh at christopherhawkins.com Tue Dec 2 12:28:02 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 2 Dec 2003 11:28:02 -0700 Subject: [AccessD] Sorting textual fields like number fields? Message-ID: <226950-2200312221828278@christopherhawkins.com> All, I feel like I should already know how to do this, but for whatever reason - I don't. Must be the pneumonia clouding my thinking. Here's the problem: I need to sort an address field by street number. The Address (street number and street name) is contained in a Text field, so my attempts to sort it end up with the numbers being sorted like text. For example, given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., 113 East St. and 115 West St. the sort would look like this: 1118 Main St. 113 East St. 1144 Maple St. 1146 Oak St. 115 West St. I need the sort to go exactly by street number, like this: 113 East St. 115 West St. 1118 Main St. 1144 Maple St. 1146 Oak St. And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... -Christopher- From andy at minstersystems.co.uk Tue Dec 2 12:38:19 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 2 Dec 2003 18:38:19 -0000 Subject: [AccessD] Does Query Exist In Access Queries In-Reply-To: Message-ID: <002601c3b903$75568230$b274d0d5@minster33c3r25> Oops, sorry Charlotte. I totally missed the fact that the intention was to delete it. In that case you're absolutely right. Just delete it and handle the error if it doesn't exist. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: 02 December 2003 17:09 > To: Access Developers discussion and problem solving > Subject: RE: RE: [AccessD] Does Query Exist In Access Queries > > > Sure, but the intent was to delete it in the first place, so > there's nothing wrong with simply trying to delete it. > Obviously, if you wanted to just check to see if it existed, > you wouldn't do *that* by trying to delete it. > > Charlotte Foust > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: Tuesday, December 02, 2003 8:59 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: RE: [AccessD] Does Query Exist In Access Queries > > > I'd suggest caution with "try to delete it". Surely if it did > exist it won't any more after that. > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > paul.hartland at fsmail.net > > Sent: 02 December 2003 16:35 > > To: Access Developers discussion and problem solving > > Subject: Re: RE: [AccessD] Does Query Exist In Access Queries > > > > > > Charlotte, > > Thanks for your help, never even considered On Error etc......Think > > the powers that be are working me too hard..... Paul > > > > > > > > > > > > Message date : Dec 02 2003, 04:24 PM > > >From : Charlotte Foust > > To : Access Developers discussion and problem solving > > Copy to : > > Subject : RE: [AccessD] Does Query Exist In Access Queries > > The easiest way to test it is to try to set an object > > variable to point to it and trap the error. If there is no > > error, it exists. Alternatively, try to delete it and trap > > the error. If it didn't exist, an error will occur and you'll > > know what happened. > > > > Charlotte Foust > > > > -----Original Message----- > > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > > Sent: Tuesday, December 02, 2003 7:54 AM > > To: accessd > > Subject: [AccessD] Does Query Exist In Access Queries > > > > > > To all, > > I'm sure I have done this before but can't find the code > anywhere and > > can't figure out how to do it, basically I want to know if a query > > called qryProgrammeAvailability exists before I delete it > via VB/VBA > > Thanks in advance for you help. Paul Hartland Freeserve > AnyTime - HALF > > PRICE for the first 3 months - Save ?7.50 a month > > www.freeserve.com/anytime > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > Freeserve > > AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > > www.freeserve.com/anytime > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Tue Dec 2 12:42:10 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 2 Dec 2003 18:42:10 -0000 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: <226950-2200312221828278@christopherhawkins.com> Message-ID: <002701c3b903$feb12ad0$b274d0d5@minster33c3r25> First question Christopher, is do you have addresses without a number, like: Maple Cottage, Oak St The Sheraton Hotel, Main St If so, is there anything to separate the street from the rest (like a comma as above)? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Christopher Hawkins > Sent: 02 December 2003 18:28 > To: accessd at databaseadvisors.com > Subject: [AccessD] Sorting textual fields like number fields? > > > All, > > I feel like I should already know how to do this, but for > whatever reason - I don't. Must be the pneumonia clouding my > thinking. > Here's the problem: > > I need to sort an address field by street number. The > Address (street number and street name) is contained in a > Text field, so my attempts to sort it end up with the numbers > being sorted like text. For example, given addresses 1118 > Main St., 1144 Maple St., 1146 Oak St., 113 East St. and 115 > West St. the sort would look like this: > > 1118 Main St. > 113 East St. > 1144 Maple St. > 1146 Oak St. > 115 West St. > > I need the sort to go exactly by street number, like this: > > 113 East St. > 115 West St. > 1118 Main St. > 1144 Maple St. > 1146 Oak St. > > And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > > -Christopher- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From gustav at cactus.dk Tue Dec 2 12:49:06 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 2 Dec 2003 19:49:06 +0100 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: <226950-2200312221828278@christopherhawkins.com> References: <226950-2200312221828278@christopherhawkins.com> Message-ID: <16040657272.20031202194906@cactus.dk> Hi Christopher You can use Val(). .. Order By Val([Address]), [Address] .. /gustav > All, > I feel like I should already know how to do this, but for whatever > reason - I don't. Must be the pneumonia clouding my thinking. > Here's the problem: > I need to sort an address field by street number. The Address > (street number and street name) is contained in a Text field, so my > attempts to sort it end up with the numbers being sorted like text. > For example, given addresses 1118 Main St., 1144 Maple St., 1146 Oak > St., 113 East St. and 115 West St. the sort would look like this: > 1118 Main St. > 113 East St. > 1144 Maple St. > 1146 Oak St. > 115 West St. > I need the sort to go exactly by street number, like this: > 113 East St. > 115 West St. > 1118 Main St. > 1144 Maple St. > 1146 Oak St. > And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > -Christopher- From liz at symphonyinfo.com Tue Dec 2 12:53:34 2003 From: liz at symphonyinfo.com (Liz Doering) Date: Tue, 2 Dec 2003 12:53:34 -0600 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: <226950-2200312221828278@christopherhawkins.com> Message-ID: Christopher, SELECT Val([Address]) AS SortOrder, [Address].[Address] FROM Address ORDER BY Val([Address]); If it's pneumonia, you'll feel better after some extensive sleep. Liz -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, December 02, 2003 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Sorting textual fields like number fields? All, I feel like I should already know how to do this, but for whatever reason - I don't. Must be the pneumonia clouding my thinking. Here's the problem: I need to sort an address field by street number. The Address (street number and street name) is contained in a Text field, so my attempts to sort it end up with the numbers being sorted like text. For example, given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., 113 East St. and 115 West St. the sort would look like this: 1118 Main St. 113 East St. 1144 Maple St. 1146 Oak St. 115 West St. I need the sort to go exactly by street number, like this: 113 East St. 115 West St. 1118 Main St. 1144 Maple St. 1146 Oak St. And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Dec 2 13:01:12 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 2 Dec 2003 12:01:12 -0700 Subject: [AccessD] Sorting textual fields like number fields? Message-ID: <57080-2200312221911241@christopherhawkins.com> Never mind; I figured it out. I found some code that almost did what I needed and changed it to look like this: ***START*** Function FilterTextOutOfAddress(strProblemAddress As String) As Double Dim strResults As String Dim iCounter As Integer Dim iStartHere As Integer On Error GoTo Err_FilterTextOutOfAddress ' Set the starting position. iStartHere = 1 ' Loop through the length of the address For iCounter = 1 To Len(strProblemAddress) ' If the current character is a number, add it to the result string. ' If not, don't. If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then _ strResults = strResults & Mid(strProblemAddress, iStartHere, 1) ' Advance one character. iStartHere = iStartHere + 1 Next ' Return the result string in numeric format. FilterTextOutOfAddress = CDbl(Trim(strResults)) Exit_FilterTextOutOfAddress: Exit Function Err_FilterTextOutOfAddress: MsgBox Err.Description Resume Exit_FilterTextOutOfAddress End Function ***END*** Then I added a field to my query that looks like this: StreetNum: FilterTextOutOfAddress([Address]) And sorted it ascending, followed by the actual Address field, also sorted Ascending so that the sort will go number first, then street name. -Christopher- ---- Original Message ---- From: clh at christopherhawkins.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Sorting textual fields like number fields? Date: Tue, 2 Dec 2003 11:28:02 -0700 >All, > >I feel like I should already know how to do this, but for whatever >reason - I don't. Must be the pneumonia clouding my thinking. >Here's the problem: > >I need to sort an address field by street number. The Address >(street number and street name) is contained in a Text field, so my >attempts to sort it end up with the numbers being sorted like text. >For example, given addresses 1118 Main St., 1144 Maple St., 1146 Oak >St., 113 East St. and 115 West St. the sort would look like this: > >1118 Main St. >113 East St. >1144 Maple St. >1146 Oak St. >115 West St. > >I need the sort to go exactly by street number, like this: > >113 East St. >115 West St. >1118 Main St. >1144 Maple St. >1146 Oak St. > >And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Tue Dec 2 13:01:22 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 2 Dec 2003 19:01:22 -0000 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: Message-ID: <003401c3b906$ada3c780$b274d0d5@minster33c3r25> Depends if you want all houses in same street together. The Val on its own won't give you that, you'll need to strip out the number and the street somehow and then sort on the Street followed by the Val. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Liz Doering > Sent: 02 December 2003 18:54 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > Christopher, > > SELECT Val([Address]) AS SortOrder, [Address].[Address] > FROM Address > ORDER BY Val([Address]); > > If it's pneumonia, you'll feel better after some extensive sleep. > > Liz > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Christopher Hawkins > Sent: Tuesday, December 02, 2003 12:28 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Sorting textual fields like number fields? > > All, > > I feel like I should already know how to do this, but for > whatever reason - I don't. Must be the pneumonia clouding my > thinking. > Here's the problem: > > I need to sort an address field by street number. The > Address (street number and street name) is contained in a > Text field, so my attempts to sort it end up with the numbers > being sorted like text. For example, given addresses 1118 > Main St., 1144 Maple St., 1146 Oak St., 113 East St. and 115 > West St. the sort would look like this: > > 1118 Main St. > 113 East St. > 1144 Maple St. > 1146 Oak St. > 115 West St. > > I need the sort to go exactly by street number, like this: > > 113 East St. > 115 West St. > 1118 Main St. > 1144 Maple St. > 1146 Oak St. > > And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > > -Christopher- > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From clh at christopherhawkins.com Tue Dec 2 13:06:59 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 2 Dec 2003 12:06:59 -0700 Subject: [AccessD] Sorting textual fields like number fields? Message-ID: <41170-2200312221965945@christopherhawkins.com> Good lord. I wrote an entire function to do something, and there was already one available? Unheard of in programming. ;) -C- ---- Original Message ---- From: gustav at cactus.dk To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Sorting textual fields like number fields? Date: Tue, 2 Dec 2003 19:49:06 +0100 >Hi Christopher > >You can use Val(). > >.. Order By Val([Address]), [Address] .. > >/gustav > > >> All, > >> I feel like I should already know how to do this, but for whatever >> reason - I don't. Must be the pneumonia clouding my thinking. >> Here's the problem: > >> I need to sort an address field by street number. The Address >> (street number and street name) is contained in a Text field, so my >> attempts to sort it end up with the numbers being sorted like text. >> For example, given addresses 1118 Main St., 1144 Maple St., 1146 >Oak >> St., 113 East St. and 115 West St. the sort would look like this: > >> 1118 Main St. >> 113 East St. >> 1144 Maple St. >> 1146 Oak St. >> 115 West St. > >> I need the sort to go exactly by street number, like this: > >> 113 East St. >> 115 West St. >> 1118 Main St. >> 1144 Maple St. >> 1146 Oak St. > >> And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > >> -Christopher- > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From JHewson at karta.com Tue Dec 2 13:02:46 2003 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Dec 2003 13:02:46 -0600 Subject: [AccessD] Sorting textual fields like number fields? Message-ID: <4AE733BBEEE72647A9F950F7275F262E1125E5@nt04.karta.com> This does the same thing ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) Jim -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Tuesday, December 02, 2003 1:01 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Sorting textual fields like number fields? Never mind; I figured it out. I found some code that almost did what I needed and changed it to look like this: ***START*** Function FilterTextOutOfAddress(strProblemAddress As String) As Double Dim strResults As String Dim iCounter As Integer Dim iStartHere As Integer On Error GoTo Err_FilterTextOutOfAddress ' Set the starting position. iStartHere = 1 ' Loop through the length of the address For iCounter = 1 To Len(strProblemAddress) ' If the current character is a number, add it to the result string. ' If not, don't. If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then _ strResults = strResults & Mid(strProblemAddress, iStartHere, 1) ' Advance one character. iStartHere = iStartHere + 1 Next ' Return the result string in numeric format. FilterTextOutOfAddress = CDbl(Trim(strResults)) Exit_FilterTextOutOfAddress: Exit Function Err_FilterTextOutOfAddress: MsgBox Err.Description Resume Exit_FilterTextOutOfAddress End Function ***END*** Then I added a field to my query that looks like this: StreetNum: FilterTextOutOfAddress([Address]) And sorted it ascending, followed by the actual Address field, also sorted Ascending so that the sort will go number first, then street name. -Christopher- ---- Original Message ---- From: clh at christopherhawkins.com To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Sorting textual fields like number fields? Date: Tue, 2 Dec 2003 11:28:02 -0700 >All, > >I feel like I should already know how to do this, but for whatever >reason - I don't. Must be the pneumonia clouding my thinking. >Here's the problem: > >I need to sort an address field by street number. The Address >(street number and street name) is contained in a Text field, so my >attempts to sort it end up with the numbers being sorted like text. >For example, given addresses 1118 Main St., 1144 Maple St., 1146 Oak >St., 113 East St. and 115 West St. the sort would look like this: > >1118 Main St. >113 East St. >1144 Maple St. >1146 Oak St. >115 West St. > >I need the sort to go exactly by street number, like this: > >113 East St. >115 West St. >1118 Main St. >1144 Maple St. >1146 Oak St. > >And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 2 13:13:02 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 2 Dec 2003 19:13:02 -0000 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: <4AE733BBEEE72647A9F950F7275F262E1125E5@nt04.karta.com> Message-ID: <003501c3b908$4eb2bf40$b274d0d5@minster33c3r25> Not the other way round? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > Sent: 02 December 2003 19:03 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > > This does the same thing > ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) > > Jim > > -----Original Message----- > From: Christopher Hawkins [mailto:clh at christopherhawkins.com] > Sent: Tuesday, December 02, 2003 1:01 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > Never mind; I figured it out. > > I found some code that almost did what I needed and changed > it to look like this: > > ***START*** > Function FilterTextOutOfAddress(strProblemAddress As String) As Double > > Dim strResults As String > Dim iCounter As Integer > Dim iStartHere As Integer > > On Error GoTo Err_FilterTextOutOfAddress > > ' Set the starting position. > iStartHere = 1 > > ' Loop through the length of the address > For iCounter = 1 To Len(strProblemAddress) > ' If the current character is a number, add it to the > result string. > ' If not, don't. > If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then _ > strResults = strResults & Mid(strProblemAddress, > iStartHere, 1) > > ' Advance one character. > iStartHere = iStartHere + 1 > Next > > ' Return the result string in numeric format. > FilterTextOutOfAddress = CDbl(Trim(strResults)) > > Exit_FilterTextOutOfAddress: > Exit Function > > Err_FilterTextOutOfAddress: > MsgBox Err.Description > Resume Exit_FilterTextOutOfAddress > End Function > > ***END*** > > Then I added a field to my query that looks like this: > > StreetNum: FilterTextOutOfAddress([Address]) > > And sorted it ascending, followed by the actual Address > field, also sorted Ascending so that the sort will go number > first, then street name. > > -Christopher- > ---- Original Message ---- > From: clh at christopherhawkins.com > To: accessd at databaseadvisors.com, > Subject: RE: [AccessD] Sorting textual fields like number fields? > Date: Tue, 2 Dec 2003 11:28:02 -0700 > > >All, > > > >I feel like I should already know how to do this, but for whatever > >reason - I don't. Must be the pneumonia clouding my > thinking. Here's > >the problem: > > > >I need to sort an address field by street number. The > Address (street > >number and street name) is contained in a Text field, so my > attempts to > >sort it end up with the numbers being sorted like text. For example, > >given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., > 113 East > >St. and 115 West St. the sort would look like this: > > > >1118 Main St. > >113 East St. > >1144 Maple St. > >1146 Oak St. > >115 West St. > > > >I need the sort to go exactly by street number, like this: > > > >113 East St. > >115 West St. > >1118 Main St. > >1144 Maple St. > >1146 Oak St. > > > >And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > > > >-Christopher- > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From rbgajewski at adelphia.net Tue Dec 2 13:18:47 2003 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 2 Dec 2003 14:18:47 -0500 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: <226950-2200312221828278@christopherhawkins.com> Message-ID: Christopher Use the InStr function to extract just the numeric portion of the address (to a new, temp field), and then sort on the VALUE of that field. Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, December 02, 2003 13:28 To: accessd at databaseadvisors.com Subject: [AccessD] Sorting textual fields like number fields? All, I feel like I should already know how to do this, but for whatever reason - I don't. Must be the pneumonia clouding my thinking. Here's the problem: I need to sort an address field by street number. The Address (street number and street name) is contained in a Text field, so my attempts to sort it end up with the numbers being sorted like text. For example, given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., 113 East St. and 115 West St. the sort would look like this: 1118 Main St. 113 East St. 1144 Maple St. 1146 Oak St. 115 West St. I need the sort to go exactly by street number, like this: 113 East St. 115 West St. 1118 Main St. 1144 Maple St. 1146 Oak St. And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 2 13:14:43 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Dec 2003 11:14:43 -0800 Subject: [AccessD] Registry tweaks References: Message-ID: <3FCCE4A3.7090802@shaw.ca> Yes, I see what you mean. I didn't realize Guantanamo Bay was a seperate country. Recognized by the soverign state of Microsoft, no doubt ;) Charlotte Foust wrote: >The one caution I would suggest here is that the country names are >coming from a telephony key. The problem is that there are separate >"countries" which happen to be islands and which share an area code, so >some of those country names may not be entirely reliable. > >I always have to refresh my memory on callbacks as well, but it's >perfectly possible to create a recordset entirely in memory using ADO >and then persist it to either an ADTG or XML format instead of creating >a table. > >Charlotte Foust > >-----Original Message----- >From: MartyConnelly [mailto:martyconnelly at shaw.ca] >Sent: Monday, December 01, 2003 6:39 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Registry tweaks > > > >Just use sortcountrylist function as intial call. You don't have to >QuikSort just put in a query after moving to a table >I was going to put into an array at one point. Should give you 230 >countries. > >I find it a pain to use callbacks. I keep having to refresh my memory as > >to how to use them. > > >Public Const HKEY_CLASSES_ROOT As Long = &H80000000 >Public Const HKEY_CURRENT_USER = &H80000001 >Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 >Public Const HKEY_USERS As Long = &H80000003 >Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 >Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 >Public Const HKEY_DYN_DATA As Long = &H80000006 > >Const ValueName As String = "Name" >Const MasterKey As String = >"SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List\" >Public Function getregcountries() As String 'Enumerate the keys inside >the Registry key: ' parts of this from >http://www.vb-helper.com/howto_list_countries.html >' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ >' CurrentVersion\Telephony\Country List\ > > Dim KeyCol As Collection > Dim CountryCol As Collection > Dim strCountry As String > strCountry = "" > If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then > > Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, MasterKey) > Dim TheKey As Variant > Set CountryCol = New Collection > > For Each TheKey In KeyCol > If TheKey <> "800" And GetRegistryValue(HKEY_LOCAL_MACHINE, > >MasterKey & TheKey, "InternationalRule", "") <> "00EFG#" Then > 'CboCountry.AddItem GetRegistryValue(HKEY_LOCAL_MACHINE, > >MasterKey & TheKey, ValueName, "") > Debug.Print GetRegistryValue(HKEY_LOCAL_MACHINE, >MasterKey & TheKey, ValueName, "") > strCountry = strCountry & >GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") >& ";" > End If > Next > End If > getregcountries = strCountry >End Function > > >Function SortCountriesString() As String >Dim arrtemp As Variant >Dim arrCountries(300) As String >Dim strCountries As String >Dim strOutCountries As String >Dim i As Long > ' Get Countries from Registry > strCountries = getregcountries > ' Move countries string to array unsorted > arrtemp = Split(strCountries, ";") > 'put variant array into string array > For i = LBound(arrtemp) To UBound(arrtemp) > arrCountries(i) = arrtemp(i) > Next i > ' now sort array by country name > Quicksort arrCountries, LBound(arrtemp), UBound(arrtemp) > 'put array into string for combobox maybe too long > 2048 bytes > For i = LBound(arrtemp) To UBound(arrtemp) > strOutCountries = strOutCountries & arrCountries(i) & ";" > Next i > > SortCountriesString = strOutCountries > 'Debug.Print Len(SortCountriesString) > ' put sorted array into table > > MoveIntoTable arrCountries(), UBound(arrtemp) >End Function > >Function MoveIntoTable(arrCountries() As String, imax As Long) Dim rs As >Recordset Dim iRow As Integer, iCol As Integer Dim db As Database Set db >= CurrentDb 'pre create table with 1 text field "Country Name" Set rs = >db.OpenRecordset("CountryName") If rs.RecordCount > 1 Then > MsgBox "table exists already" > Exit Function >End If >With rs > For iRow = 0 To imax > .AddNew > ' 0'th field is autonumber > .Fields(1) = arrCountries(iRow) > .Update > Next > .Close >End With >Set rs = Nothing > >End Function > >Public Sub Quicksort(list() As String, ByVal min As Long, _ > ByVal max As Long) >Dim med_value As String >Dim hi As Long >Dim lo As Long >Dim i As Long > > ' If min >= max, the list contains 0 or 1 items so it > ' is sorted. > If min >= max Then Exit Sub > > ' Pick the dividing value. > i = Int((max - min + 1) * Rnd + min) > med_value = list(i) > > ' Swap it to the front. > list(i) = list(min) > > lo = min > hi = max > Do > ' Look down from hi for a value < med_value. > Do While list(hi) >= med_value > hi = hi - 1 > If hi <= lo Then Exit Do > Loop > If hi <= lo Then > list(lo) = med_value > Exit Do > End If > > ' Swap the lo and hi values. > list(lo) = list(hi) > > ' Look up from lo for a value >= med_value. > lo = lo + 1 > Do While list(lo) < med_value > lo = lo + 1 > If lo >= hi Then Exit Do > Loop > If lo >= hi Then > lo = hi > list(hi) = med_value > Exit Do > End If > > ' Swap the lo and hi values. > list(hi) = list(lo) > Loop > > ' Sort the two sublists. > Quicksort list(), min, lo - 1 > Quicksort list(), lo + 1, max >End Sub > >'registry utilities in seperate module > > Option Compare Database >Option Explicit > >Public Const HKEY_CLASSES_ROOT As Long = &H80000000 >Public Const HKEY_CURRENT_USER = &H80000001 >Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 >Public Const HKEY_USERS As Long = &H80000003 >Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 >Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 >Public Const HKEY_DYN_DATA As Long = &H80000006 > > > > >Const REG_SZ = 1 >Const REG_EXPAND_SZ = 2 >Const REG_BINARY = 3 >Const REG_DWORD = 4 >Const REG_MULTI_SZ = 7 >Const ERROR_MORE_DATA = 234 >Const KEY_READ = &H20019 ' ((READ_CONTROL Or KEY_QUERY_VALUE Or > ' KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And >(Not > ' SYNCHRONIZE)) >Const REG_OPENED_EXISTING_KEY = &H2 > >Const KEY_WRITE = &H20006 '((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or > ' KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE)) > > >Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias _ > "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ > ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, _ > ByVal cbData As Long) As Long > > >Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias _ > "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) >As Long > > > >Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" >(dest As _ > Any, source As Any, ByVal numBytes As Long) > > >Private Declare Function RegEnumKey Lib "advapi32.dll" Alias >"RegEnumKeyA" _ > (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, >_ > ByVal cbName As Long) As Long > >Private Declare Function RegEnumValue Lib "advapi32.dll" Alias >"RegEnumValueA" _ > (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As >String, _ > lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, _ > lpData As Any, lpcbData As Long) As Long > >Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias >"RegOpenKeyExA" _ > (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As >Long, _ > ByVal samDesired As Long, phkResult As Long) As Long > >Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As >Long) As _ > Long > > >Private Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias _ > "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _ > ByVal Reserved As Long, ByVal lpClass As Long, ByVal dwOptions As >Long, _ > ByVal samDesired As Long, ByVal lpSecurityAttributes As Long, _ > phkResult As Long, lpdwDisposition As Long) As Long > > >Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _ > "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, >_ > ByVal lpReserved As Long, lpType As Long, lpData As Any, _ > lpcbData As Long) As Long > >Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias >"RegDeleteKeyA" _ > (ByVal hKey As Long, ByVal lpSubKey As String) As Long > > > >Sub DeleteRegistryKey(ByVal hKey As Long, ByVal KeyName As String) > RegDeleteKey hKey, KeyName >End Sub > > > > >Function DeleteRegistryValue(ByVal hKey As Long, ByVal KeyName As >String, _ > ByVal ValueName As String) As Boolean > Dim handle As Long > > ' Open the key, exit if not found > If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit >Function > > ' Delete the value (returns 0 if success) > DeleteRegistryValue = (RegDeleteValue(handle, ValueName) = 0) > ' Close the handle > RegCloseKey handle >End Function > >Function CheckRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >As _ > Boolean > Dim handle As Long > ' Try to open the key > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then > ' The key exists > CheckRegistryKey = True > ' Close it before exiting > RegCloseKey handle > End If >End Function > > >Function CreateRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >As _ > Boolean > Dim handle As Long, disposition As Long > > If RegCreateKeyEx(hKey, KeyName, 0, 0, 0, 0, 0, handle, disposition) > >Then > Err.Raise 1001, , "Unable to create the registry key" > Else > ' Return True if the key already existed. > CreateRegistryKey = (disposition = REG_OPENED_EXISTING_KEY) > ' Close the key. > RegCloseKey handle > End If >End Function > > >Function EnumRegistryKeys(ByVal hKey As Long, ByVal KeyName As String) >As _ > Collection > Dim handle As Long > Dim length As Long > Dim index As Long > Dim subkeyName As String > > ' initialize the result collection > Set EnumRegistryKeys = New Collection > > ' Open the key, exit if not found > If Len(KeyName) Then > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >Function > ' in all case the subsequent functions use hKey > hKey = handle > End If > > Do > ' this is the max length for a key name > length = 260 > subkeyName = Space$(length) > ' get the N-th key, exit the loop if not found > If RegEnumKey(hKey, index, subkeyName, length) Then Exit Do > > ' add to the result collection > subkeyName = Left$(subkeyName, InStr(subkeyName, vbNullChar) - >1) > EnumRegistryKeys.Add subkeyName, subkeyName > ' prepare to query for next key > index = index + 1 > Loop > > ' Close the key, if it was actually opened > If handle Then RegCloseKey handle > >End Function > > >Function EnumRegistryValues(ByVal hKey As Long, ByVal KeyName As String) > >As _ > Collection > Dim handle As Long > Dim index As Long > Dim valueType As Long > Dim name As String > Dim nameLen As Long > Dim resLong As Long > Dim resString As String > Dim dataLen As Long > Dim valueInfo(0 To 1) As Variant > Dim retVal As Long > > ' initialize the result > Set EnumRegistryValues = New Collection > > ' Open the key, exit if not found. > If Len(KeyName) Then > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >Function > ' in all cases, subsequent functions use hKey > hKey = handle > End If > > Do > ' this is the max length for a key name > nameLen = 260 > name = Space$(nameLen) > ' prepare the receiving buffer for the value > dataLen = 4096 > ReDim resBinary(0 To dataLen - 1) As Byte > > ' read the value's name and data > ' exit the loop if not found > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >valueType, _ > resBinary(0), dataLen) > > ' enlarge the buffer if you need more space > If retVal = ERROR_MORE_DATA Then > ReDim resBinary(0 To dataLen - 1) As Byte > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >_ > valueType, resBinary(0), dataLen) > End If > ' exit the loop if any other error (typically, no more values) > If retVal Then Exit Do > > ' retrieve the value's name > valueInfo(0) = Left$(name, nameLen) > > ' return a value corresponding to the value type > Select Case valueType > Case REG_DWORD > CopyMemory resLong, resBinary(0), 4 > valueInfo(1) = resLong > Case REG_SZ, REG_EXPAND_SZ > ' copy everything but the trailing null char > resString = Space$(dataLen - 1) > CopyMemory ByVal resString, resBinary(0), dataLen - 1 > valueInfo(1) = resString > Case REG_BINARY > ' shrink the buffer if necessary > If dataLen < UBound(resBinary) + 1 Then > ReDim Preserve resBinary(0 To dataLen - 1) As Byte > End If > valueInfo(1) = resBinary() > Case REG_MULTI_SZ > ' copy everything but the 2 trailing null chars > resString = Space$(dataLen - 2) > CopyMemory ByVal resString, resBinary(0), dataLen - 2 > valueInfo(1) = resString > Case Else > ' Unsupported value type - do nothing > End Select > > ' add the array to the result collection > ' the element's key is the value's name > EnumRegistryValues.Add valueInfo, valueInfo(0) > > index = index + 1 > Loop > > ' Close the key, if it was actually opened > If handle Then RegCloseKey handle > >End Function >Function EnumRegistryValuesEx(ByVal hKey As Long, ByVal KeyName As >String) As _ > Collection > Dim handle As Long > Dim index As Long > Dim valueType As Long > Dim name As String > Dim nameLen As Long > Dim resLong As Long > Dim resString As String > Dim dataLen As Long > Dim valueInfo(0 To 2) As Variant > Dim retVal As Long > > ' initialize the result > Set EnumRegistryValuesEx = New Collection > > ' Open the key, exit if not found. > If Len(KeyName) Then > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >Function > ' in all cases, subsequent functions use hKey > hKey = handle > End If > > Do > ' this is the max length for a key name > nameLen = 260 > name = Space$(nameLen) > ' prepare the receiving buffer for the value > dataLen = 4096 > ReDim resBinary(0 To dataLen - 1) As Byte > > ' read the value's name and data > ' exit the loop if not found > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >valueType, _ > resBinary(0), dataLen) > > ' enlarge the buffer if you need more space > If retVal = ERROR_MORE_DATA Then > ReDim resBinary(0 To dataLen - 1) As Byte > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >_ > valueType, resBinary(0), dataLen) > End If > ' exit the loop if any other error (typically, no more values) > If retVal Then Exit Do > > ' retrieve the value's name > valueInfo(0) = Left$(name, nameLen) > > ' return a value corresponding to the value type > Select Case valueType > Case REG_DWORD > CopyMemory resLong, resBinary(0), 4 > valueInfo(1) = resLong > valueInfo(2) = vbLong > Case REG_SZ, REG_EXPAND_SZ > ' copy everything but the trailing null char > resString = Space$(dataLen - 1) > CopyMemory ByVal resString, resBinary(0), dataLen - 1 > valueInfo(1) = resString > valueInfo(2) = vbString > Case REG_BINARY > ' shrink the buffer if necessary > If dataLen < UBound(resBinary) + 1 Then > ReDim Preserve resBinary(0 To dataLen - 1) As Byte > End If > valueInfo(1) = resBinary() > valueInfo(2) = vbArray + vbByte > Case REG_MULTI_SZ > ' copy everything but the 2 trailing null chars > resString = Space$(dataLen - 2) > CopyMemory ByVal resString, resBinary(0), dataLen - 2 > valueInfo(1) = resString > valueInfo(2) = vbString > Case Else > ' Unsupported value type - do nothing > End Select > > ' add the array to the result collection > ' the element's key is the value's name > EnumRegistryValuesEx.Add valueInfo, valueInfo(0) > > index = index + 1 > Loop > > ' Close the key, if it was actually opened > If handle Then RegCloseKey handle > >End Function > > >Function GetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ > ByVal ValueName As String, Optional DefaultValue As Variant) As >Variant > Dim handle As Long > Dim resLong As Long > Dim resString As String > Dim resBinary() As Byte > Dim length As Long > Dim retVal As Long > Dim valueType As Long > > ' Prepare the default result > GetRegistryValue = IIf(IsMissing(DefaultValue), Empty, DefaultValue) > > ' Open the key, exit if not found. > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then > Exit Function > End If > > ' prepare a 1K receiving resBinary > length = 1024 > ReDim resBinary(0 To length - 1) As Byte > > ' read the registry key > retVal = RegQueryValueEx(handle, ValueName, 0, valueType, >resBinary(0), _ > length) > ' if resBinary was too small, try again > If retVal = ERROR_MORE_DATA Then > ' enlarge the resBinary, and read the value again > ReDim resBinary(0 To length - 1) As Byte > retVal = RegQueryValueEx(handle, ValueName, 0, valueType, >resBinary(0), _ > length) > End If > > ' return a value corresponding to the value type > Select Case valueType > Case REG_DWORD > CopyMemory resLong, resBinary(0), 4 > GetRegistryValue = resLong > Case REG_SZ, REG_EXPAND_SZ > ' copy everything but the trailing null char > resString = Space$(length - 1) > CopyMemory ByVal resString, resBinary(0), length - 1 > GetRegistryValue = resString > Case REG_BINARY > ' resize the result resBinary > If length <> UBound(resBinary) + 1 Then > ReDim Preserve resBinary(0 To length - 1) As Byte > End If > GetRegistryValue = resBinary() > Case REG_MULTI_SZ > ' copy everything but the 2 trailing null chars > resString = Space$(length - 2) > CopyMemory ByVal resString, resBinary(0), length - 2 > GetRegistryValue = resString > Case Else > RegCloseKey handle > Err.Raise 1001, , "Unsupported value type" > End Select > > ' close the registry key > RegCloseKey handle >End Function > > > > >Function SetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ > ByVal ValueName As String, value As Variant) As Boolean > Dim handle As Long > Dim lngValue As Long > Dim strValue As String > Dim binValue() As Byte > Dim length As Long > Dim retVal As Long > > ' Open the key, exit if not found > If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then > Exit Function > End If > > ' three cases, according to the data type in Value > Select Case VarType(value) > Case vbInteger, vbLong > lngValue = value > retVal = RegSetValueEx(handle, ValueName, 0, REG_DWORD, >lngValue, 4) > Case vbString > strValue = value > retVal = RegSetValueEx(handle, ValueName, 0, REG_SZ, ByVal >strValue, _ > Len(strValue)) > Case vbArray + vbByte > binValue = value > length = UBound(binValue) - LBound(binValue) + 1 > retVal = RegSetValueEx(handle, ValueName, 0, REG_BINARY, _ > binValue(LBound(binValue)), length) > Case Else > RegCloseKey handle > Err.Raise 1001, , "Unsupported value type" > End Select > > ' Close the key and signal success > RegCloseKey handle > ' signal success if the value was written correctly > SetRegistryValue = (retVal = 0) >End Function > > > > > > > -- Marty Connelly Victoria, B.C. Canada From JHewson at karta.com Tue Dec 2 13:43:56 2003 From: JHewson at karta.com (Jim Hewson) Date: Tue, 2 Dec 2003 13:43:56 -0600 Subject: [AccessD] Sorting textual fields like number fields? Message-ID: <4AE733BBEEE72647A9F950F7275F262E1125E7@nt04.karta.com> He wanted to sort on the street number then street name. The other way would sort the street name then the number. -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Tuesday, December 02, 2003 1:13 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Sorting textual fields like number fields? Not the other way round? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > Sent: 02 December 2003 19:03 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > > This does the same thing > ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) > > Jim > > -----Original Message----- > From: Christopher Hawkins [mailto:clh at christopherhawkins.com] > Sent: Tuesday, December 02, 2003 1:01 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > Never mind; I figured it out. > > I found some code that almost did what I needed and changed > it to look like this: > > ***START*** > Function FilterTextOutOfAddress(strProblemAddress As String) As Double > > Dim strResults As String > Dim iCounter As Integer > Dim iStartHere As Integer > > On Error GoTo Err_FilterTextOutOfAddress > > ' Set the starting position. > iStartHere = 1 > > ' Loop through the length of the address > For iCounter = 1 To Len(strProblemAddress) > ' If the current character is a number, add it to the > result string. > ' If not, don't. > If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then _ > strResults = strResults & Mid(strProblemAddress, > iStartHere, 1) > > ' Advance one character. > iStartHere = iStartHere + 1 > Next > > ' Return the result string in numeric format. > FilterTextOutOfAddress = CDbl(Trim(strResults)) > > Exit_FilterTextOutOfAddress: > Exit Function > > Err_FilterTextOutOfAddress: > MsgBox Err.Description > Resume Exit_FilterTextOutOfAddress > End Function > > ***END*** > > Then I added a field to my query that looks like this: > > StreetNum: FilterTextOutOfAddress([Address]) > > And sorted it ascending, followed by the actual Address > field, also sorted Ascending so that the sort will go number > first, then street name. > > -Christopher- > ---- Original Message ---- > From: clh at christopherhawkins.com > To: accessd at databaseadvisors.com, > Subject: RE: [AccessD] Sorting textual fields like number fields? > Date: Tue, 2 Dec 2003 11:28:02 -0700 > > >All, > > > >I feel like I should already know how to do this, but for whatever > >reason - I don't. Must be the pneumonia clouding my > thinking. Here's > >the problem: > > > >I need to sort an address field by street number. The > Address (street > >number and street name) is contained in a Text field, so my > attempts to > >sort it end up with the numbers being sorted like text. For example, > >given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., > 113 East > >St. and 115 West St. the sort would look like this: > > > >1118 Main St. > >113 East St. > >1144 Maple St. > >1146 Oak St. > >115 West St. > > > >I need the sort to go exactly by street number, like this: > > > >113 East St. > >115 West St. > >1118 Main St. > >1144 Maple St. > >1146 Oak St. > > > >And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > > > >-Christopher- > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Dec 2 13:34:06 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 2 Dec 2003 14:34:06 -0500 Subject: [AccessD] Registry tweaks Message-ID: > Guantanamo Bay Mmmm...remembering the excellent snorkeling...diving down the anchor chain... Mark -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, December 02, 2003 2:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Registry tweaks Yes, I see what you mean. I didn't realize Guantanamo Bay was a seperate country. Recognized by the soverign state of Microsoft, no doubt ;) From martyconnelly at shaw.ca Tue Dec 2 13:54:33 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Dec 2003 11:54:33 -0800 Subject: [AccessD] OT - Getting started with Web development References: <2F8793082E00D4119A1700B0D0216BF802227614@main2.marlow.com> Message-ID: <3FCCEDF9.9050902@shaw.ca> One of the interesting things you can do with .Net deployment, is to use the Updater Application Block. http://builder.com.com/5100-6389-5077516.html?tag=e606 Drew Wutka wrote: >You can get the IP address of the client though. If you aren't getting >clients that are behind a proxy, then you just have to reverse DNS to get >their machine name. > >Drew > >-----Original Message----- >From: Jim DeMarco [mailto:Jdemarco at hshhp.org] >Sent: Tuesday, December 02, 2003 8:15 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] OT - Getting started with Web development > > >Each folder does have its own authentication settings but it still won't >give access to the machine name. If the DLL is used it may need to be >installed on user's PC's and accessed via client side scripting. Unless >scripting alone can access the API's then it's not even necessary. > >Jim DeMarco > >-----Original Message----- >From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] >Sent: Monday, December 01, 2003 9:09 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT - Getting started with Web development > > >If you host your app in a virtual directory, then any changes you make will >only affect your web application. They don't need to change any 'global >iis' settings, so that should keep your network admins happy. > >I really think it's the easiest way to go rather than using dll's or client >side script. All you have to do is check one box and you're laughing! > >Another point to remember: The IE6 option, under advanced->tools, called >"Enable Windows Integrated Authentication" can affect whether the server >variables (LOGON_USER) returns anything. Might pay to change that and see >if it fixes your initial problem. > >Cheers, >Andrew > >-----Original Message----- >From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] >Sent: Tuesday, 2 December 2003 9:46 AM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT - Getting started with Web development > >Andrew, > > > >>If you're working in an intranet you can use integrated authentication. >> >> > >I am developing for an intranet, but unfortunately, I stand little chance of >changing any IIS settings. > > > > >>If you're using .Net you can use impersonation >> >> > >I'm a little familiar with WMI scripting and impersonation, but that >requires that you have administrator privs on the remote machine. Is this >similar to what you mention in .Net? > > > >Mark > > >-----Original Message----- >From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] >Sent: Monday, December 01, 2003 6:01 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT - Getting started with Web development > > >I don't think that will work. IIS performs your authentication so won't >have the client details available. > >You'll have to run a custom login form to get the user details or ask your >host to set up basic authentication (not overly secure). > >If you're working in an intranet you can use integrated authentication. > >(If you're using .Net you can use impersonation which is another step >further and allows you a little more control). > >Cheers, >Andrew > > > >-----Original Message----- >From: Jim DeMarco [mailto:Jdemarco at hshhp.org] >Sent: Tuesday, 2 December 2003 6:21 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] OT - Getting started with Web development > >VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create >a class within the DLL with LoginName and Machine properties (returned from >your API calls). > >Jim D. > >-----Original Message----- >From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] >Sent: Monday, December 01, 2003 2:28 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT - Getting started with Web development > > >Thank you Jim. I tried that, but unfortunately our IT people must have IIS >configured to accept anonymous access. The only ServerVariables that are >uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine >here loaded with VB 5.0 so I may be able to create that work-around you >suggested. > > >Mark > > > >-----Original Message----- >From: Jim DeMarco [mailto:Jdemarco at hshhp.org] >Sent: Monday, December 01, 2003 1:19 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] OT - Getting started with Web development > > >Mark, > >Here's code to get the logon name. I don't know about the machine name via >ASP but here's a URL that lists all the Request.ServerVariables you can use: >http://www.4guysfromrolla.com/webtech/092298-3.shtml > ><% >'anonymous access must be disabled in IIS for this to work Response.Write >(Request.ServerVariables("LOGON_USER")) >%> > >You do have the option however to use your existing VB/VBA code to grab user >name and machine. Just wrap it an ActiveX DLL and call that from your ASP >code (if you use VB 6.0 that is). (it's the option I'd take if there is no >server variable) > >HTH, > >Jim DeMarco >Director Product Development >Hudson Health Plan > > >-----Original Message----- >From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] >Sent: Monday, December 01, 2003 12:02 PM >To: '[AccessD]' >Subject: RE: [AccessD] OT - Getting started with Web development > > >Drew, > >I for one thank you for "Chapter 1". As for writing an article or a book, I >believe that you've already done most of the work. You have a searchable >archive of all of your posts for any given subject. I'd be willing to bet >you've already written it, you just need to gather it together. > >I especially want to thank you for the "hit counter". It gave me a great >idea. I have been relying on the IT-provided WebTrends report for >statistics regarding the departmental website that I administer. But their >statistics are at the division level, not departmental. > >One not-so-quick question regarding Access v. ASP... In a few of my Access >apps I utilize API calls to capture the login name and machine name of the >user. Is it possible to replicate that functionality using any combination >of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The >answer is always yes, the question is how.") > >Thanks for any comments, > > >Mark > > >-----Original Message----- >From: Drew Wutka [mailto:DWUTKA at marlow.com] >Sent: Friday, November 28, 2003 7:07 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT - Getting started with Web development > > >I've thought about writing a long set of articles to put on my website, but >I always find something else comes up...know what I mean? > >Drew > >-----Original Message----- >From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] >Sent: Wednesday, November 26, 2003 7:26 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] OT - Getting started with Web development > > >Hi Drew: > >Have you ever thought about writing a book on the subject...You have >finished chapter one. > >...I teasing... :-) > >Very good introductory >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka >Sent: Wednesday, November 26, 2003 2:55 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] OT - Getting started with Web development > > >Paul, I have been developing ASP project for quite some time now. I think I >can narrow down what you REALLY need to know to get started. > >First of all, before you dig into web development, you MUST understand how a >web server and web pages work. It is a whole different ball of wax compared >to an Access FE. With an Access FE, you create forms and reports, and each >user has a copy (or uses a shared FE) of the front end. This has several >drawbacks. First of all, if you have copies of the FE all over, you have to >create an update process to push out new changes. If you have a shared FE, >then you have to kick everyone out to update the process. On top of that, a >user can be anywhere, so there can always be issues of where things are >located. One user may have a share mapped to S, while another has it mapped >to T. UNC's can handle this, but then there is also the issue of whether >people are able to even get to the locations involved. On a web server, all >of these issues are moot. > >The way a web server works, is the client opens their browser and requests a >web page. Let's say they go to http://MyWebsite.com. The browser does a >few things, one of which is it sends an http request to the server sitting >at whatever mywebsite.com resolves too. (http is Hyper Text Transfer >Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol >uses to transport HTML.). The server at the other end gets an http request >for it's root directory. Notice the URL doesn't have a specific file (this >is a KEY point to remember). That is just fine and dandy, because a >webserver can be asked for a page by just the 'folder', since each folder >can have a default document setup. In most cases it is index.htm or >default.asp, but it can quite frankly be any document you want (or even a >list of documents). For our example, let's say it's default.asp. The web >server then reads the default.asp page and runs it through it's ISAPI >filters. These are filters that cause various things to be done to the HTML >that is going to be sent back. Two good examples of this are includes and >ASP itself. Includes are when you mark another file or files to be included >within the document. So, if you have a header that you want on every page, >instead of putting the HTML for that header on every page, you put the >header in it's own file, and just include it in all of your pages. The >include ISAPI filter then incorporates that HTML in the outgoing HTML. You >can also include .asp code, similar to putting code in a module, versus >behind every form/report. The ASP ISAPI filter is a little more complex. >Instead of just replacing text, it actually 'works' the ASP code on the >page. > >This is the CORE of ASP. What the end user get's, is just the outgoing >HTML. They never get the ASP code itself. ASP can either be passive or >dynamic. My own terms for the two actions ASP can perform. Passive is when >the ASP does something that the users can't see. Dynamic is when ASP does >something that the users DO see. For example. If the default.asp page was >like this: > ><% >dim cnn >dim rs >dim strSQL >set cnn=server.createobject("ADODB.Connection") >set rs=server.createobject("ADODB.Recordset") >cnn.Provider="Microsoft.Jet.OLEDB.4.0" >cnn.Open "E:\MyDB.mdb" >strSQL="SELECT Hit FROM tblHits;" >rs.Open strSQL,cnn,1,3 >rs.AddNew >rs.Fields(0).value=1 >rs.Update >rs.close >set rs=nothing >cnn.close >set cnn=nothing >%> > >Hello > > >The end user will get a page that says hello, but internally, the ASP page >has added a record to a database, in this case, a simple hit counter. This >is passive, since the user will always get 'Hello', no matter what they do. >The ASP code is doing work, but it's something the end user doesn't see. > >Dynamic ASP pages are where the output the user sees is directly affected by >the ASP code. To do this, you must either use the = symbol (which is a >shortcut to have the ASP send something out with the resulting HTML stream), >or the response.write procedure. > >For example, let's have default.asp be this: > ><% >dim strIP >strIP=request.ServerVariables("REMOTE_ADDR") >%> > >Your IP Address is: <%=strIP%>
><% >response.write "Have a nice day." >%> > > >What the user will see is a message that has their IP address, like this: > >Your IP Address is: 65.65.125.209 >Have a nice day. > >We used the equal since to 'insert' something into the normal HTML with ASP, >and then we used response.write to directly output a string into the >outgoing HTML stream. > >The last thing to remember when dealing with a web server is that the end >users are getting whatever the web server hands out, the moment they request >it. Once they get the resulting HTML stream, and their browser displays the >page, there is no longer a connection to the file they requested. That >means if you are constantly updating asp pages, the end users will just >simply get the 'current' results at the time of their request. No kicking >everyone out, etc. Pretty handy. > >Three more items to cover. Above was the biggie. First of the three. HTML. >HTML is actually pretty simple. I personally used Front Page when I started >out, to let it do the HTML for me, then after a few months of going back and >forth, I just got the hang of it, and I rarely ever use FP for writing the >HTML anymore. The two key items to remember with HTML is that everything is >written with tags. Some tags are stand alone, such as
(which is a line >break), and some tags must have a start and finish ( and , or >an easier example and which is for bolding text). Tags also can >have properties. For example, an anchor tag (for hyperlinks) is a. href="http://wolfwares.com">Click here to go to Wolfwares.com the tag, it has an href property, which is the URL of the site/file the >hyperlink points too, then the tag is closed with the >, and between the >start tag, and the closing tag , there is text, which is what the user >will see as the text of the hyperlink. The second key item to remember with >HTML is that no matter what format you write the HTML in, what the user sees >in the browser is determine by the TAGS, not by the HTML code. > >So if you write: > > >This is a >Test > > >The user sees: >This is a Test > >If you write: >This is a
Test > >The user sees: >This is a >Test > >Second of the three is a BIG difference between Access and ASP. Access runs >it's code on the users processor. This is both good and bad. Bad, because >the end user must have Access (or a run-time installed). Also, bad because >users on slower machines are going to be delayed longer then users on fast >machines. Good, because as long as the end users have the correct >software/runtimes, your application should almost be gauranteed to work. >With ASP, if you write standard HTML, it doesn't matter what you have the >ASP code do. Your ASP code only has to run on the web server. Your clients >can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone >sees the same results. A client running a 2.6 gigahertz on a 56k modem is >going to run your application at the same speed (well, pretty much the same >speed) as a client running a 486 66mhz with a 56k modem. In fact, if your >pages are light enough on the output (little to no graphics, just plain >HTML.....) there isn't going to be much of a difference between a modem user >or a broad band user. Text transfers pretty quickly....though you could have >slow downs if there is just a ton of text being sent (like combo boxes that >have thousands of items in their lists). The final issue with this part is >client side scripting. I personally stay away from it like the plague, >unless it's for in house projects where I know everyone is using IE. So try >to make your applications run strictly with ASP, unless absolutely >necessary. > >Third of the three. The real nuts and bolts of ASP. ASP can be written in >JScript or VBScript. Quite frankly I have never bothered to use JScript, >since VBScript is practically second nature. When writting ASP, you enclose >the ASP code with <% and %> (start and end tags for ASP), and then write >away with VBScript. There are two things to remember/research. ASP is >VBScript with extra objects (Application, >ObjectContext,Request,ASPError,Response,Server,Session). The three you are >going to deal with the most are Request, Response and Server. Request gives >you access to what you have been 'sent' by the user. It can be used to read >cookies, server variables (which include Usernames, passwords,IP Addresses, >browser types, etc.), and form data. Response is what you use to send data >back to the user (response.write outputs to the HTML stream, redirect can >actually change the URL the end user is receiving, etc.). Server is the >webserver itself. The two main methods you will probably use are >MapPath(Which let's you map a virtual or actual path to a file) and >CreateObject. That CreateObject is the big catch with ASP and VBScript. In >normal VBScript you just call CreateObject. But with ASP, you must use the >Server Object's CreateObject method to create an object in VBScript. >(Because the object must be created by the webserver). > >That's ASP in a nutshell. The first item I talked about is a little >difficult to figure out from the MSDN, the rest is in the MSDN, but can >still be a little difficult to figure out. The details on everything (HTML >tags, ASP objects, etc.) are pretty much well explained in the MSDN though. > >The last thing you will need to know about ASP pages versus Access FE's is >how to get data FROM the user. (we already discussed sending it to them, >with the response.write method). I mentioned the request object. The two >methods of getting data from the user are through forms and querystrings. A >querystring is what follows a URL (after a ?). So, if you have a URL like >this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the >value of MyValue by using the request.QueryString method, like this: > ><% >response.write request.QueryString("MyValue") >%> > >If you have an HTML form, and you POST the data: > > > >
> > >
> > > >The resulting page will have a textbox, and a submit button. Pressing the >submit button will send the data within the MyValue textbox to results.asp. >So if results.asp was this: > ><% >response.write request.form("MyValue") >%> > >The results page will output whatever was in the textbox. > >The key difference between a QueryString and a Form is that QueryStrings are >limited by the max length of a URL (which is, I think, 2048 >characters...maybe 1024 characters, not sure). Where as a form is not >limited in the amount of data that can be submitted. You can also refer to >a request 'variable' by just the request object. request("MyValue") can be >a value in either a QueryString OR a Form. > >Phew, what an email. This was fun to write though. Keep in mind that ASP >doesn't directly like DAO, so write your code using ADO. Feel free to >contact me offlist if you have specific questions. I may get hammered for >the length of this email, but I think it's pertinent to Access development >on the web! > >Drew > > > >-----Original Message----- >From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] >Sent: Wednesday, November 26, 2003 9:55 AM >To: accessd >Subject: [AccessD] OT - Getting started with Web development > > >To all, >I'm looking to start writing web pages etc, secure logins, returning >resultsets in tables from Access & SQL Server etc. Anyone know any good >sites to get me started along with any book recommendations ? Thanks in >advance for all your help Paul Hartland >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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". >**************************************************************************** >******* > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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". >**************************************************************************** >******* > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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". >**************************************************************************** >******* > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at bellsouth.net Tue Dec 2 14:00:52 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 2 Dec 2003 15:00:52 -0500 Subject: [AccessD] Registry tweaks References: <3FCCE4A3.7090802@shaw.ca> Message-ID: <000f01c3b90e$fd9a1480$6101a8c0@dejpolsys> ...ah well ...so much for that :(((( William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Tuesday, December 02, 2003 2:14 PM Subject: Re: [AccessD] Registry tweaks > Yes, I see what you mean. I didn't realize Guantanamo Bay was a seperate > country. > Recognized by the soverign state of Microsoft, no doubt ;) > > Charlotte Foust wrote: > > >The one caution I would suggest here is that the country names are > >coming from a telephony key. The problem is that there are separate > >"countries" which happen to be islands and which share an area code, so > >some of those country names may not be entirely reliable. > > > >I always have to refresh my memory on callbacks as well, but it's > >perfectly possible to create a recordset entirely in memory using ADO > >and then persist it to either an ADTG or XML format instead of creating > >a table. > > > >Charlotte Foust > > > >-----Original Message----- > >From: MartyConnelly [mailto:martyconnelly at shaw.ca] > >Sent: Monday, December 01, 2003 6:39 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] Registry tweaks > > > > > > > >Just use sortcountrylist function as intial call. You don't have to > >QuikSort just put in a query after moving to a table > >I was going to put into an array at one point. Should give you 230 > >countries. > > > >I find it a pain to use callbacks. I keep having to refresh my memory as > > > >to how to use them. > > > > > >Public Const HKEY_CLASSES_ROOT As Long = &H80000000 > >Public Const HKEY_CURRENT_USER = &H80000001 > >Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 > >Public Const HKEY_USERS As Long = &H80000003 > >Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 > >Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 > >Public Const HKEY_DYN_DATA As Long = &H80000006 > > > >Const ValueName As String = "Name" > >Const MasterKey As String = > >"SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List\" > >Public Function getregcountries() As String 'Enumerate the keys inside > >the Registry key: ' parts of this from > >http://www.vb-helper.com/howto_list_countries.html > >' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ > >' CurrentVersion\Telephony\Country List\ > > > > Dim KeyCol As Collection > > Dim CountryCol As Collection > > Dim strCountry As String > > strCountry = "" > > If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then > > > > Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, MasterKey) > > Dim TheKey As Variant > > Set CountryCol = New Collection > > > > For Each TheKey In KeyCol > > If TheKey <> "800" And GetRegistryValue(HKEY_LOCAL_MACHINE, > > > >MasterKey & TheKey, "InternationalRule", "") <> "00EFG#" Then > > 'CboCountry.AddItem GetRegistryValue(HKEY_LOCAL_MACHINE, > > > >MasterKey & TheKey, ValueName, "") > > Debug.Print GetRegistryValue(HKEY_LOCAL_MACHINE, > >MasterKey & TheKey, ValueName, "") > > strCountry = strCountry & > >GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") > >& ";" > > End If > > Next > > End If > > getregcountries = strCountry > >End Function > > > > > >Function SortCountriesString() As String > >Dim arrtemp As Variant > >Dim arrCountries(300) As String > >Dim strCountries As String > >Dim strOutCountries As String > >Dim i As Long > > ' Get Countries from Registry > > strCountries = getregcountries > > ' Move countries string to array unsorted > > arrtemp = Split(strCountries, ";") > > 'put variant array into string array > > For i = LBound(arrtemp) To UBound(arrtemp) > > arrCountries(i) = arrtemp(i) > > Next i > > ' now sort array by country name > > Quicksort arrCountries, LBound(arrtemp), UBound(arrtemp) > > 'put array into string for combobox maybe too long > 2048 bytes > > For i = LBound(arrtemp) To UBound(arrtemp) > > strOutCountries = strOutCountries & arrCountries(i) & ";" > > Next i > > > > SortCountriesString = strOutCountries > > 'Debug.Print Len(SortCountriesString) > > ' put sorted array into table > > > > MoveIntoTable arrCountries(), UBound(arrtemp) > >End Function > > > >Function MoveIntoTable(arrCountries() As String, imax As Long) Dim rs As > >Recordset Dim iRow As Integer, iCol As Integer Dim db As Database Set db > >= CurrentDb 'pre create table with 1 text field "Country Name" Set rs = > >db.OpenRecordset("CountryName") If rs.RecordCount > 1 Then > > MsgBox "table exists already" > > Exit Function > >End If > >With rs > > For iRow = 0 To imax > > .AddNew > > ' 0'th field is autonumber > > .Fields(1) = arrCountries(iRow) > > .Update > > Next > > .Close > >End With > >Set rs = Nothing > > > >End Function > > > >Public Sub Quicksort(list() As String, ByVal min As Long, _ > > ByVal max As Long) > >Dim med_value As String > >Dim hi As Long > >Dim lo As Long > >Dim i As Long > > > > ' If min >= max, the list contains 0 or 1 items so it > > ' is sorted. > > If min >= max Then Exit Sub > > > > ' Pick the dividing value. > > i = Int((max - min + 1) * Rnd + min) > > med_value = list(i) > > > > ' Swap it to the front. > > list(i) = list(min) > > > > lo = min > > hi = max > > Do > > ' Look down from hi for a value < med_value. > > Do While list(hi) >= med_value > > hi = hi - 1 > > If hi <= lo Then Exit Do > > Loop > > If hi <= lo Then > > list(lo) = med_value > > Exit Do > > End If > > > > ' Swap the lo and hi values. > > list(lo) = list(hi) > > > > ' Look up from lo for a value >= med_value. > > lo = lo + 1 > > Do While list(lo) < med_value > > lo = lo + 1 > > If lo >= hi Then Exit Do > > Loop > > If lo >= hi Then > > lo = hi > > list(hi) = med_value > > Exit Do > > End If > > > > ' Swap the lo and hi values. > > list(hi) = list(lo) > > Loop > > > > ' Sort the two sublists. > > Quicksort list(), min, lo - 1 > > Quicksort list(), lo + 1, max > >End Sub > > > >'registry utilities in seperate module > > > > Option Compare Database > >Option Explicit > > > >Public Const HKEY_CLASSES_ROOT As Long = &H80000000 > >Public Const HKEY_CURRENT_USER = &H80000001 > >Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 > >Public Const HKEY_USERS As Long = &H80000003 > >Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 > >Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 > >Public Const HKEY_DYN_DATA As Long = &H80000006 > > > > > > > > > >Const REG_SZ = 1 > >Const REG_EXPAND_SZ = 2 > >Const REG_BINARY = 3 > >Const REG_DWORD = 4 > >Const REG_MULTI_SZ = 7 > >Const ERROR_MORE_DATA = 234 > >Const KEY_READ = &H20019 ' ((READ_CONTROL Or KEY_QUERY_VALUE Or > > ' KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And > >(Not > > ' SYNCHRONIZE)) > >Const REG_OPENED_EXISTING_KEY = &H2 > > > >Const KEY_WRITE = &H20006 '((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or > > ' KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE)) > > > > > >Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias _ > > "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ > > ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, _ > > ByVal cbData As Long) As Long > > > > > >Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias _ > > "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) > >As Long > > > > > > > >Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" > >(dest As _ > > Any, source As Any, ByVal numBytes As Long) > > > > > >Private Declare Function RegEnumKey Lib "advapi32.dll" Alias > >"RegEnumKeyA" _ > > (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, > >_ > > ByVal cbName As Long) As Long > > > >Private Declare Function RegEnumValue Lib "advapi32.dll" Alias > >"RegEnumValueA" _ > > (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As > >String, _ > > lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, _ > > lpData As Any, lpcbData As Long) As Long > > > >Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias > >"RegOpenKeyExA" _ > > (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As > >Long, _ > > ByVal samDesired As Long, phkResult As Long) As Long > > > >Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As > >Long) As _ > > Long > > > > > >Private Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias _ > > "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _ > > ByVal Reserved As Long, ByVal lpClass As Long, ByVal dwOptions As > >Long, _ > > ByVal samDesired As Long, ByVal lpSecurityAttributes As Long, _ > > phkResult As Long, lpdwDisposition As Long) As Long > > > > > >Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _ > > "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, > >_ > > ByVal lpReserved As Long, lpType As Long, lpData As Any, _ > > lpcbData As Long) As Long > > > >Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias > >"RegDeleteKeyA" _ > > (ByVal hKey As Long, ByVal lpSubKey As String) As Long > > > > > > > >Sub DeleteRegistryKey(ByVal hKey As Long, ByVal KeyName As String) > > RegDeleteKey hKey, KeyName > >End Sub > > > > > > > > > >Function DeleteRegistryValue(ByVal hKey As Long, ByVal KeyName As > >String, _ > > ByVal ValueName As String) As Boolean > > Dim handle As Long > > > > ' Open the key, exit if not found > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit > >Function > > > > ' Delete the value (returns 0 if success) > > DeleteRegistryValue = (RegDeleteValue(handle, ValueName) = 0) > > ' Close the handle > > RegCloseKey handle > >End Function > > > >Function CheckRegistryKey(ByVal hKey As Long, ByVal KeyName As String) > >As _ > > Boolean > > Dim handle As Long > > ' Try to open the key > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then > > ' The key exists > > CheckRegistryKey = True > > ' Close it before exiting > > RegCloseKey handle > > End If > >End Function > > > > > >Function CreateRegistryKey(ByVal hKey As Long, ByVal KeyName As String) > >As _ > > Boolean > > Dim handle As Long, disposition As Long > > > > If RegCreateKeyEx(hKey, KeyName, 0, 0, 0, 0, 0, handle, disposition) > > > >Then > > Err.Raise 1001, , "Unable to create the registry key" > > Else > > ' Return True if the key already existed. > > CreateRegistryKey = (disposition = REG_OPENED_EXISTING_KEY) > > ' Close the key. > > RegCloseKey handle > > End If > >End Function > > > > > >Function EnumRegistryKeys(ByVal hKey As Long, ByVal KeyName As String) > >As _ > > Collection > > Dim handle As Long > > Dim length As Long > > Dim index As Long > > Dim subkeyName As String > > > > ' initialize the result collection > > Set EnumRegistryKeys = New Collection > > > > ' Open the key, exit if not found > > If Len(KeyName) Then > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit > >Function > > ' in all case the subsequent functions use hKey > > hKey = handle > > End If > > > > Do > > ' this is the max length for a key name > > length = 260 > > subkeyName = Space$(length) > > ' get the N-th key, exit the loop if not found > > If RegEnumKey(hKey, index, subkeyName, length) Then Exit Do > > > > ' add to the result collection > > subkeyName = Left$(subkeyName, InStr(subkeyName, vbNullChar) - > >1) > > EnumRegistryKeys.Add subkeyName, subkeyName > > ' prepare to query for next key > > index = index + 1 > > Loop > > > > ' Close the key, if it was actually opened > > If handle Then RegCloseKey handle > > > >End Function > > > > > >Function EnumRegistryValues(ByVal hKey As Long, ByVal KeyName As String) > > > >As _ > > Collection > > Dim handle As Long > > Dim index As Long > > Dim valueType As Long > > Dim name As String > > Dim nameLen As Long > > Dim resLong As Long > > Dim resString As String > > Dim dataLen As Long > > Dim valueInfo(0 To 1) As Variant > > Dim retVal As Long > > > > ' initialize the result > > Set EnumRegistryValues = New Collection > > > > ' Open the key, exit if not found. > > If Len(KeyName) Then > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit > >Function > > ' in all cases, subsequent functions use hKey > > hKey = handle > > End If > > > > Do > > ' this is the max length for a key name > > nameLen = 260 > > name = Space$(nameLen) > > ' prepare the receiving buffer for the value > > dataLen = 4096 > > ReDim resBinary(0 To dataLen - 1) As Byte > > > > ' read the value's name and data > > ' exit the loop if not found > > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, > >valueType, _ > > resBinary(0), dataLen) > > > > ' enlarge the buffer if you need more space > > If retVal = ERROR_MORE_DATA Then > > ReDim resBinary(0 To dataLen - 1) As Byte > > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, > >_ > > valueType, resBinary(0), dataLen) > > End If > > ' exit the loop if any other error (typically, no more values) > > If retVal Then Exit Do > > > > ' retrieve the value's name > > valueInfo(0) = Left$(name, nameLen) > > > > ' return a value corresponding to the value type > > Select Case valueType > > Case REG_DWORD > > CopyMemory resLong, resBinary(0), 4 > > valueInfo(1) = resLong > > Case REG_SZ, REG_EXPAND_SZ > > ' copy everything but the trailing null char > > resString = Space$(dataLen - 1) > > CopyMemory ByVal resString, resBinary(0), dataLen - 1 > > valueInfo(1) = resString > > Case REG_BINARY > > ' shrink the buffer if necessary > > If dataLen < UBound(resBinary) + 1 Then > > ReDim Preserve resBinary(0 To dataLen - 1) As Byte > > End If > > valueInfo(1) = resBinary() > > Case REG_MULTI_SZ > > ' copy everything but the 2 trailing null chars > > resString = Space$(dataLen - 2) > > CopyMemory ByVal resString, resBinary(0), dataLen - 2 > > valueInfo(1) = resString > > Case Else > > ' Unsupported value type - do nothing > > End Select > > > > ' add the array to the result collection > > ' the element's key is the value's name > > EnumRegistryValues.Add valueInfo, valueInfo(0) > > > > index = index + 1 > > Loop > > > > ' Close the key, if it was actually opened > > If handle Then RegCloseKey handle > > > >End Function > >Function EnumRegistryValuesEx(ByVal hKey As Long, ByVal KeyName As > >String) As _ > > Collection > > Dim handle As Long > > Dim index As Long > > Dim valueType As Long > > Dim name As String > > Dim nameLen As Long > > Dim resLong As Long > > Dim resString As String > > Dim dataLen As Long > > Dim valueInfo(0 To 2) As Variant > > Dim retVal As Long > > > > ' initialize the result > > Set EnumRegistryValuesEx = New Collection > > > > ' Open the key, exit if not found. > > If Len(KeyName) Then > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit > >Function > > ' in all cases, subsequent functions use hKey > > hKey = handle > > End If > > > > Do > > ' this is the max length for a key name > > nameLen = 260 > > name = Space$(nameLen) > > ' prepare the receiving buffer for the value > > dataLen = 4096 > > ReDim resBinary(0 To dataLen - 1) As Byte > > > > ' read the value's name and data > > ' exit the loop if not found > > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, > >valueType, _ > > resBinary(0), dataLen) > > > > ' enlarge the buffer if you need more space > > If retVal = ERROR_MORE_DATA Then > > ReDim resBinary(0 To dataLen - 1) As Byte > > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, > >_ > > valueType, resBinary(0), dataLen) > > End If > > ' exit the loop if any other error (typically, no more values) > > If retVal Then Exit Do > > > > ' retrieve the value's name > > valueInfo(0) = Left$(name, nameLen) > > > > ' return a value corresponding to the value type > > Select Case valueType > > Case REG_DWORD > > CopyMemory resLong, resBinary(0), 4 > > valueInfo(1) = resLong > > valueInfo(2) = vbLong > > Case REG_SZ, REG_EXPAND_SZ > > ' copy everything but the trailing null char > > resString = Space$(dataLen - 1) > > CopyMemory ByVal resString, resBinary(0), dataLen - 1 > > valueInfo(1) = resString > > valueInfo(2) = vbString > > Case REG_BINARY > > ' shrink the buffer if necessary > > If dataLen < UBound(resBinary) + 1 Then > > ReDim Preserve resBinary(0 To dataLen - 1) As Byte > > End If > > valueInfo(1) = resBinary() > > valueInfo(2) = vbArray + vbByte > > Case REG_MULTI_SZ > > ' copy everything but the 2 trailing null chars > > resString = Space$(dataLen - 2) > > CopyMemory ByVal resString, resBinary(0), dataLen - 2 > > valueInfo(1) = resString > > valueInfo(2) = vbString > > Case Else > > ' Unsupported value type - do nothing > > End Select > > > > ' add the array to the result collection > > ' the element's key is the value's name > > EnumRegistryValuesEx.Add valueInfo, valueInfo(0) > > > > index = index + 1 > > Loop > > > > ' Close the key, if it was actually opened > > If handle Then RegCloseKey handle > > > >End Function > > > > > >Function GetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ > > ByVal ValueName As String, Optional DefaultValue As Variant) As > >Variant > > Dim handle As Long > > Dim resLong As Long > > Dim resString As String > > Dim resBinary() As Byte > > Dim length As Long > > Dim retVal As Long > > Dim valueType As Long > > > > ' Prepare the default result > > GetRegistryValue = IIf(IsMissing(DefaultValue), Empty, DefaultValue) > > > > ' Open the key, exit if not found. > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then > > Exit Function > > End If > > > > ' prepare a 1K receiving resBinary > > length = 1024 > > ReDim resBinary(0 To length - 1) As Byte > > > > ' read the registry key > > retVal = RegQueryValueEx(handle, ValueName, 0, valueType, > >resBinary(0), _ > > length) > > ' if resBinary was too small, try again > > If retVal = ERROR_MORE_DATA Then > > ' enlarge the resBinary, and read the value again > > ReDim resBinary(0 To length - 1) As Byte > > retVal = RegQueryValueEx(handle, ValueName, 0, valueType, > >resBinary(0), _ > > length) > > End If > > > > ' return a value corresponding to the value type > > Select Case valueType > > Case REG_DWORD > > CopyMemory resLong, resBinary(0), 4 > > GetRegistryValue = resLong > > Case REG_SZ, REG_EXPAND_SZ > > ' copy everything but the trailing null char > > resString = Space$(length - 1) > > CopyMemory ByVal resString, resBinary(0), length - 1 > > GetRegistryValue = resString > > Case REG_BINARY > > ' resize the result resBinary > > If length <> UBound(resBinary) + 1 Then > > ReDim Preserve resBinary(0 To length - 1) As Byte > > End If > > GetRegistryValue = resBinary() > > Case REG_MULTI_SZ > > ' copy everything but the 2 trailing null chars > > resString = Space$(length - 2) > > CopyMemory ByVal resString, resBinary(0), length - 2 > > GetRegistryValue = resString > > Case Else > > RegCloseKey handle > > Err.Raise 1001, , "Unsupported value type" > > End Select > > > > ' close the registry key > > RegCloseKey handle > >End Function > > > > > > > > > >Function SetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ > > ByVal ValueName As String, value As Variant) As Boolean > > Dim handle As Long > > Dim lngValue As Long > > Dim strValue As String > > Dim binValue() As Byte > > Dim length As Long > > Dim retVal As Long > > > > ' Open the key, exit if not found > > If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then > > Exit Function > > End If > > > > ' three cases, according to the data type in Value > > Select Case VarType(value) > > Case vbInteger, vbLong > > lngValue = value > > retVal = RegSetValueEx(handle, ValueName, 0, REG_DWORD, > >lngValue, 4) > > Case vbString > > strValue = value > > retVal = RegSetValueEx(handle, ValueName, 0, REG_SZ, ByVal > >strValue, _ > > Len(strValue)) > > Case vbArray + vbByte > > binValue = value > > length = UBound(binValue) - LBound(binValue) + 1 > > retVal = RegSetValueEx(handle, ValueName, 0, REG_BINARY, _ > > binValue(LBound(binValue)), length) > > Case Else > > RegCloseKey handle > > Err.Raise 1001, , "Unsupported value type" > > End Select > > > > ' Close the key and signal success > > RegCloseKey handle > > ' signal success if the value was written correctly > > SetRegistryValue = (retVal = 0) > >End Function > > > > > > > > > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Tue Dec 2 14:05:45 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 2 Dec 2003 15:05:45 -0500 Subject: [AccessD] Sorting textual fields like number fields? References: <4AE733BBEEE72647A9F950F7275F262E1125E7@nt04.karta.com> Message-ID: <001401c3b90f$abed9cf0$6101a8c0@dejpolsys> ...I know that, somewhere down deep in hidden recesses, there must be a simple rationale behind sorting on numbers and THEN street names ...but I'm not a spelunker by trade ...so I'll just ask? ...inquiring minds just want to know ...wtfo? William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Jim Hewson" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, December 02, 2003 2:43 PM Subject: RE: [AccessD] Sorting textual fields like number fields? > > He wanted to sort on the street number then street name. > The other way would sort the street name then the number. > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: Tuesday, December 02, 2003 1:13 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > Not the other way round? > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Hewson > > Sent: 02 December 2003 19:03 > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > > > > > > This does the same thing > > ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) > > > > Jim > > > > -----Original Message----- > > From: Christopher Hawkins [mailto:clh at christopherhawkins.com] > > Sent: Tuesday, December 02, 2003 1:01 PM > > To: accessd at databaseadvisors.com > > Subject: RE: [AccessD] Sorting textual fields like number fields? > > > > > > Never mind; I figured it out. > > > > I found some code that almost did what I needed and changed > > it to look like this: > > > > ***START*** > > Function FilterTextOutOfAddress(strProblemAddress As String) As Double > > > > Dim strResults As String > > Dim iCounter As Integer > > Dim iStartHere As Integer > > > > On Error GoTo Err_FilterTextOutOfAddress > > > > ' Set the starting position. > > iStartHere = 1 > > > > ' Loop through the length of the address > > For iCounter = 1 To Len(strProblemAddress) > > ' If the current character is a number, add it to the > > result string. > > ' If not, don't. > > If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then _ > > strResults = strResults & Mid(strProblemAddress, > > iStartHere, 1) > > > > ' Advance one character. > > iStartHere = iStartHere + 1 > > Next > > > > ' Return the result string in numeric format. > > FilterTextOutOfAddress = CDbl(Trim(strResults)) > > > > Exit_FilterTextOutOfAddress: > > Exit Function > > > > Err_FilterTextOutOfAddress: > > MsgBox Err.Description > > Resume Exit_FilterTextOutOfAddress > > End Function > > > > ***END*** > > > > Then I added a field to my query that looks like this: > > > > StreetNum: FilterTextOutOfAddress([Address]) > > > > And sorted it ascending, followed by the actual Address > > field, also sorted Ascending so that the sort will go number > > first, then street name. > > > > -Christopher- > > ---- Original Message ---- > > From: clh at christopherhawkins.com > > To: accessd at databaseadvisors.com, > > Subject: RE: [AccessD] Sorting textual fields like number fields? > > Date: Tue, 2 Dec 2003 11:28:02 -0700 > > > > >All, > > > > > >I feel like I should already know how to do this, but for whatever > > >reason - I don't. Must be the pneumonia clouding my > > thinking. Here's > > >the problem: > > > > > >I need to sort an address field by street number. The > > Address (street > > >number and street name) is contained in a Text field, so my > > attempts to > > >sort it end up with the numbers being sorted like text. For example, > > >given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., > > 113 East > > >St. and 115 West St. the sort would look like this: > > > > > >1118 Main St. > > >113 East St. > > >1144 Maple St. > > >1146 Oak St. > > >115 West St. > > > > > >I need the sort to go exactly by street number, like this: > > > > > >113 East St. > > >115 West St. > > >1118 Main St. > > >1144 Maple St. > > >1146 Oak St. > > > > > >And I don't have a clue how to begin. Heeeeeeeeeeeeeeeeeeeeeelp... > > > > > >-Christopher- > > > > > > > > >_______________________________________________ > > >AccessD mailing list > > >AccessD at databaseadvisors.com > > >http://databaseadvisors.com/mailman/listinfo/accessd > > >Website: http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From davide at dalyn.co.nz Tue Dec 2 14:13:54 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 03 Dec 2003 09:13:54 +1300 Subject: [AccessD] Subform not saved In-Reply-To: <1623277753.20031202092607@cactus.dk> References: <5.2.0.9.0.20031202172131.00b3f5f8@mail.dalyn.co.nz> <5.2.0.9.0.20031202172131.00b3f5f8@mail.dalyn.co.nz> Message-ID: <5.2.0.9.0.20031203091319.00b2c200@mail.dalyn.co.nz> Thanks Gustav and Andy David At 2/12/2003, you wrote: >Hi David > >Try > > MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Form.Dirty > MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Form.NewRecord > >/gustav > > > AXP FE / SQL2000 BE > > > I have a subform on a form. I want to check if the record on the subform > > has been saved when the main form is closed. I am having problems with > the > > syntax. If I use the following in the on unload event of the main form - > > > MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.Dirty > > or MsgBox Forms!frmCustInvoice!sfrCustInvoiceMeter.NewRecord > > > I get " > > > Object doesn't support this property or method (Error 438)" > > > However > > > MsgBox > Forms!frmCustInvoice!sfrCustInvoiceMeter!txtPresMeterReadDate > > > returns the correct value so I know I am referring to the subform > correctly. > > > The reason for checking is that when the main form is being closed by > the x > > in the top right hand corner, the after update event is not firing on the > > subform (yet the record is being saved!). Another symptom is that I need > > to click on the record selector twice for the pencil to turn into a > triangle. > > > I am sure it is something to do with refreshing the record from the SQL BE > > but not sure how to fix it. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Dec 2 14:49:13 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Tue, 2 Dec 2003 21:49:13 +0100 Subject: [AccessD] Form Top Left corner icon. Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF72@stekelbes.ithelps.local> Aha, But a different Icon per form is a no go? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Mitsules, Mark S. (Newport News) Verzonden: dinsdag 2 december 2003 18:57 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Form Top Left corner icon. Erwin, Access 2002: Setting the Tools/Startup/Application Icon will take care of the application window and the database window. Checking the "Use as Form and Report Icon" box will take care of the rest. Mark -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 02, 2003 12:34 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form Top Left corner icon. Hi I was wundering if it is posible to change the icon /figure that is shown on the top left corner of a form or report? Or even from the Access main form. Yes I mean the the windows icon with the maximize, minimize restore menu if you click on it. In a for it shows the regular form icon. Erwin Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 2 15:16:15 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 13:16:15 -0800 Subject: [AccessD] Registry tweaks Message-ID: Don't blame Microsoft for the way area codes are allocated around the globe. They don't have *quite* that much pull ... Yet. I ran into this issue years ago when I worked for a company that handled event registration and discovered that area codes and even country codes aren't quite the indicator of country that you might expect. Charlotte Foust -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, December 02, 2003 11:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Registry tweaks Yes, I see what you mean. I didn't realize Guantanamo Bay was a seperate country. Recognized by the soverign state of Microsoft, no doubt ;) Charlotte Foust wrote: >The one caution I would suggest here is that the country names are >coming from a telephony key. The problem is that there are separate >"countries" which happen to be islands and which share an area code, so >some of those country names may not be entirely reliable. > >I always have to refresh my memory on callbacks as well, but it's >perfectly possible to create a recordset entirely in memory using ADO >and then persist it to either an ADTG or XML format instead of creating >a table. > >Charlotte Foust > >-----Original Message----- >From: MartyConnelly [mailto:martyconnelly at shaw.ca] >Sent: Monday, December 01, 2003 6:39 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Registry tweaks > > > >Just use sortcountrylist function as intial call. You don't have to >QuikSort just put in a query after moving to a table >I was going to put into an array at one point. Should give you 230 >countries. > >I find it a pain to use callbacks. I keep having to refresh my memory >as > >to how to use them. > > >Public Const HKEY_CLASSES_ROOT As Long = &H80000000 >Public Const HKEY_CURRENT_USER = &H80000001 >Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 >Public Const HKEY_USERS As Long = &H80000003 >Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 >Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 >Public Const HKEY_DYN_DATA As Long = &H80000006 > >Const ValueName As String = "Name" >Const MasterKey As String = >"SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List\" >Public Function getregcountries() As String 'Enumerate the keys inside >the Registry key: ' parts of this from >http://www.vb-helper.com/howto_list_countries.html >' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ >' CurrentVersion\Telephony\Country List\ > > Dim KeyCol As Collection > Dim CountryCol As Collection > Dim strCountry As String > strCountry = "" > If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then > > Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, MasterKey) > Dim TheKey As Variant > Set CountryCol = New Collection > > For Each TheKey In KeyCol > If TheKey <> "800" And > GetRegistryValue(HKEY_LOCAL_MACHINE, > >MasterKey & TheKey, "InternationalRule", "") <> "00EFG#" Then > 'CboCountry.AddItem >GetRegistryValue(HKEY_LOCAL_MACHINE, > >MasterKey & TheKey, ValueName, "") > Debug.Print GetRegistryValue(HKEY_LOCAL_MACHINE, >MasterKey & TheKey, ValueName, "") > strCountry = strCountry & >GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") >& ";" > End If > Next > End If > getregcountries = strCountry >End Function > > >Function SortCountriesString() As String >Dim arrtemp As Variant >Dim arrCountries(300) As String >Dim strCountries As String >Dim strOutCountries As String >Dim i As Long > ' Get Countries from Registry > strCountries = getregcountries > ' Move countries string to array unsorted > arrtemp = Split(strCountries, ";") > 'put variant array into string array > For i = LBound(arrtemp) To UBound(arrtemp) > arrCountries(i) = arrtemp(i) > Next i > ' now sort array by country name > Quicksort arrCountries, LBound(arrtemp), UBound(arrtemp) > 'put array into string for combobox maybe too long > 2048 bytes > For i = LBound(arrtemp) To UBound(arrtemp) > strOutCountries = strOutCountries & arrCountries(i) & ";" > Next i > > SortCountriesString = strOutCountries > 'Debug.Print Len(SortCountriesString) > ' put sorted array into table > > MoveIntoTable arrCountries(), UBound(arrtemp) >End Function > >Function MoveIntoTable(arrCountries() As String, imax As Long) Dim rs >As Recordset Dim iRow As Integer, iCol As Integer Dim db As Database >Set db = CurrentDb 'pre create table with 1 text field "Country Name" >Set rs = >db.OpenRecordset("CountryName") If rs.RecordCount > 1 Then > MsgBox "table exists already" > Exit Function >End If >With rs > For iRow = 0 To imax > .AddNew > ' 0'th field is autonumber > .Fields(1) = arrCountries(iRow) > .Update > Next > .Close >End With >Set rs = Nothing > >End Function > >Public Sub Quicksort(list() As String, ByVal min As Long, _ > ByVal max As Long) >Dim med_value As String >Dim hi As Long >Dim lo As Long >Dim i As Long > > ' If min >= max, the list contains 0 or 1 items so it > ' is sorted. > If min >= max Then Exit Sub > > ' Pick the dividing value. > i = Int((max - min + 1) * Rnd + min) > med_value = list(i) > > ' Swap it to the front. > list(i) = list(min) > > lo = min > hi = max > Do > ' Look down from hi for a value < med_value. > Do While list(hi) >= med_value > hi = hi - 1 > If hi <= lo Then Exit Do > Loop > If hi <= lo Then > list(lo) = med_value > Exit Do > End If > > ' Swap the lo and hi values. > list(lo) = list(hi) > > ' Look up from lo for a value >= med_value. > lo = lo + 1 > Do While list(lo) < med_value > lo = lo + 1 > If lo >= hi Then Exit Do > Loop > If lo >= hi Then > lo = hi > list(hi) = med_value > Exit Do > End If > > ' Swap the lo and hi values. > list(hi) = list(lo) > Loop > > ' Sort the two sublists. > Quicksort list(), min, lo - 1 > Quicksort list(), lo + 1, max >End Sub > >'registry utilities in seperate module > > Option Compare Database >Option Explicit > >Public Const HKEY_CLASSES_ROOT As Long = &H80000000 >Public Const HKEY_CURRENT_USER = &H80000001 >Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 >Public Const HKEY_USERS As Long = &H80000003 >Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 >Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 >Public Const HKEY_DYN_DATA As Long = &H80000006 > > > > >Const REG_SZ = 1 >Const REG_EXPAND_SZ = 2 >Const REG_BINARY = 3 >Const REG_DWORD = 4 >Const REG_MULTI_SZ = 7 >Const ERROR_MORE_DATA = 234 >Const KEY_READ = &H20019 ' ((READ_CONTROL Or KEY_QUERY_VALUE Or > ' KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And >(Not > ' SYNCHRONIZE)) >Const REG_OPENED_EXISTING_KEY = &H2 > >Const KEY_WRITE = &H20006 '((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or > ' KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE)) > > >Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias _ > "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, _ > ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, _ > ByVal cbData As Long) As Long > > >Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias _ > "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) >As Long > > > >Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" >(dest As _ > Any, source As Any, ByVal numBytes As Long) > > >Private Declare Function RegEnumKey Lib "advapi32.dll" Alias >"RegEnumKeyA" _ > (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, >_ > ByVal cbName As Long) As Long > >Private Declare Function RegEnumValue Lib "advapi32.dll" Alias >"RegEnumValueA" _ > (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As >String, _ > lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, _ > lpData As Any, lpcbData As Long) As Long > >Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias >"RegOpenKeyExA" _ > (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As >Long, _ > ByVal samDesired As Long, phkResult As Long) As Long > >Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As >Long) As _ > Long > > >Private Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias _ > "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _ > ByVal Reserved As Long, ByVal lpClass As Long, ByVal dwOptions As >Long, _ > ByVal samDesired As Long, ByVal lpSecurityAttributes As Long, _ > phkResult As Long, lpdwDisposition As Long) As Long > > >Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _ > "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As >String, _ > ByVal lpReserved As Long, lpType As Long, lpData As Any, _ > lpcbData As Long) As Long > >Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias >"RegDeleteKeyA" _ > (ByVal hKey As Long, ByVal lpSubKey As String) As Long > > > >Sub DeleteRegistryKey(ByVal hKey As Long, ByVal KeyName As String) > RegDeleteKey hKey, KeyName >End Sub > > > > >Function DeleteRegistryValue(ByVal hKey As Long, ByVal KeyName As >String, _ > ByVal ValueName As String) As Boolean > Dim handle As Long > > ' Open the key, exit if not found > If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit >Function > > ' Delete the value (returns 0 if success) > DeleteRegistryValue = (RegDeleteValue(handle, ValueName) = 0) > ' Close the handle > RegCloseKey handle >End Function > >Function CheckRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >As _ > Boolean > Dim handle As Long > ' Try to open the key > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then > ' The key exists > CheckRegistryKey = True > ' Close it before exiting > RegCloseKey handle > End If >End Function > > >Function CreateRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >As _ > Boolean > Dim handle As Long, disposition As Long > > If RegCreateKeyEx(hKey, KeyName, 0, 0, 0, 0, 0, handle, > disposition) > >Then > Err.Raise 1001, , "Unable to create the registry key" > Else > ' Return True if the key already existed. > CreateRegistryKey = (disposition = REG_OPENED_EXISTING_KEY) > ' Close the key. > RegCloseKey handle > End If >End Function > > >Function EnumRegistryKeys(ByVal hKey As Long, ByVal KeyName As String) >As _ > Collection > Dim handle As Long > Dim length As Long > Dim index As Long > Dim subkeyName As String > > ' initialize the result collection > Set EnumRegistryKeys = New Collection > > ' Open the key, exit if not found > If Len(KeyName) Then > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >Function > ' in all case the subsequent functions use hKey > hKey = handle > End If > > Do > ' this is the max length for a key name > length = 260 > subkeyName = Space$(length) > ' get the N-th key, exit the loop if not found > If RegEnumKey(hKey, index, subkeyName, length) Then Exit Do > > ' add to the result collection > subkeyName = Left$(subkeyName, InStr(subkeyName, vbNullChar) - >1) > EnumRegistryKeys.Add subkeyName, subkeyName > ' prepare to query for next key > index = index + 1 > Loop > > ' Close the key, if it was actually opened > If handle Then RegCloseKey handle > >End Function > > >Function EnumRegistryValues(ByVal hKey As Long, ByVal KeyName As >String) > >As _ > Collection > Dim handle As Long > Dim index As Long > Dim valueType As Long > Dim name As String > Dim nameLen As Long > Dim resLong As Long > Dim resString As String > Dim dataLen As Long > Dim valueInfo(0 To 1) As Variant > Dim retVal As Long > > ' initialize the result > Set EnumRegistryValues = New Collection > > ' Open the key, exit if not found. > If Len(KeyName) Then > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >Function > ' in all cases, subsequent functions use hKey > hKey = handle > End If > > Do > ' this is the max length for a key name > nameLen = 260 > name = Space$(nameLen) > ' prepare the receiving buffer for the value > dataLen = 4096 > ReDim resBinary(0 To dataLen - 1) As Byte > > ' read the value's name and data > ' exit the loop if not found > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >valueType, _ > resBinary(0), dataLen) > > ' enlarge the buffer if you need more space > If retVal = ERROR_MORE_DATA Then > ReDim resBinary(0 To dataLen - 1) As Byte > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >_ > valueType, resBinary(0), dataLen) > End If > ' exit the loop if any other error (typically, no more values) > If retVal Then Exit Do > > ' retrieve the value's name > valueInfo(0) = Left$(name, nameLen) > > ' return a value corresponding to the value type > Select Case valueType > Case REG_DWORD > CopyMemory resLong, resBinary(0), 4 > valueInfo(1) = resLong > Case REG_SZ, REG_EXPAND_SZ > ' copy everything but the trailing null char > resString = Space$(dataLen - 1) > CopyMemory ByVal resString, resBinary(0), dataLen - 1 > valueInfo(1) = resString > Case REG_BINARY > ' shrink the buffer if necessary > If dataLen < UBound(resBinary) + 1 Then > ReDim Preserve resBinary(0 To dataLen - 1) As Byte > End If > valueInfo(1) = resBinary() > Case REG_MULTI_SZ > ' copy everything but the 2 trailing null chars > resString = Space$(dataLen - 2) > CopyMemory ByVal resString, resBinary(0), dataLen - 2 > valueInfo(1) = resString > Case Else > ' Unsupported value type - do nothing > End Select > > ' add the array to the result collection > ' the element's key is the value's name > EnumRegistryValues.Add valueInfo, valueInfo(0) > > index = index + 1 > Loop > > ' Close the key, if it was actually opened > If handle Then RegCloseKey handle > >End Function >Function EnumRegistryValuesEx(ByVal hKey As Long, ByVal KeyName As >String) As _ > Collection > Dim handle As Long > Dim index As Long > Dim valueType As Long > Dim name As String > Dim nameLen As Long > Dim resLong As Long > Dim resString As String > Dim dataLen As Long > Dim valueInfo(0 To 2) As Variant > Dim retVal As Long > > ' initialize the result > Set EnumRegistryValuesEx = New Collection > > ' Open the key, exit if not found. > If Len(KeyName) Then > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >Function > ' in all cases, subsequent functions use hKey > hKey = handle > End If > > Do > ' this is the max length for a key name > nameLen = 260 > name = Space$(nameLen) > ' prepare the receiving buffer for the value > dataLen = 4096 > ReDim resBinary(0 To dataLen - 1) As Byte > > ' read the value's name and data > ' exit the loop if not found > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >valueType, _ > resBinary(0), dataLen) > > ' enlarge the buffer if you need more space > If retVal = ERROR_MORE_DATA Then > ReDim resBinary(0 To dataLen - 1) As Byte > retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >_ > valueType, resBinary(0), dataLen) > End If > ' exit the loop if any other error (typically, no more values) > If retVal Then Exit Do > > ' retrieve the value's name > valueInfo(0) = Left$(name, nameLen) > > ' return a value corresponding to the value type > Select Case valueType > Case REG_DWORD > CopyMemory resLong, resBinary(0), 4 > valueInfo(1) = resLong > valueInfo(2) = vbLong > Case REG_SZ, REG_EXPAND_SZ > ' copy everything but the trailing null char > resString = Space$(dataLen - 1) > CopyMemory ByVal resString, resBinary(0), dataLen - 1 > valueInfo(1) = resString > valueInfo(2) = vbString > Case REG_BINARY > ' shrink the buffer if necessary > If dataLen < UBound(resBinary) + 1 Then > ReDim Preserve resBinary(0 To dataLen - 1) As Byte > End If > valueInfo(1) = resBinary() > valueInfo(2) = vbArray + vbByte > Case REG_MULTI_SZ > ' copy everything but the 2 trailing null chars > resString = Space$(dataLen - 2) > CopyMemory ByVal resString, resBinary(0), dataLen - 2 > valueInfo(1) = resString > valueInfo(2) = vbString > Case Else > ' Unsupported value type - do nothing > End Select > > ' add the array to the result collection > ' the element's key is the value's name > EnumRegistryValuesEx.Add valueInfo, valueInfo(0) > > index = index + 1 > Loop > > ' Close the key, if it was actually opened > If handle Then RegCloseKey handle > >End Function > > >Function GetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ > ByVal ValueName As String, Optional DefaultValue As Variant) As >Variant > Dim handle As Long > Dim resLong As Long > Dim resString As String > Dim resBinary() As Byte > Dim length As Long > Dim retVal As Long > Dim valueType As Long > > ' Prepare the default result > GetRegistryValue = IIf(IsMissing(DefaultValue), Empty, > DefaultValue) > > ' Open the key, exit if not found. > If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then > Exit Function > End If > > ' prepare a 1K receiving resBinary > length = 1024 > ReDim resBinary(0 To length - 1) As Byte > > ' read the registry key > retVal = RegQueryValueEx(handle, ValueName, 0, valueType, >resBinary(0), _ > length) > ' if resBinary was too small, try again > If retVal = ERROR_MORE_DATA Then > ' enlarge the resBinary, and read the value again > ReDim resBinary(0 To length - 1) As Byte > retVal = RegQueryValueEx(handle, ValueName, 0, valueType, >resBinary(0), _ > length) > End If > > ' return a value corresponding to the value type > Select Case valueType > Case REG_DWORD > CopyMemory resLong, resBinary(0), 4 > GetRegistryValue = resLong > Case REG_SZ, REG_EXPAND_SZ > ' copy everything but the trailing null char > resString = Space$(length - 1) > CopyMemory ByVal resString, resBinary(0), length - 1 > GetRegistryValue = resString > Case REG_BINARY > ' resize the result resBinary > If length <> UBound(resBinary) + 1 Then > ReDim Preserve resBinary(0 To length - 1) As Byte > End If > GetRegistryValue = resBinary() > Case REG_MULTI_SZ > ' copy everything but the 2 trailing null chars > resString = Space$(length - 2) > CopyMemory ByVal resString, resBinary(0), length - 2 > GetRegistryValue = resString > Case Else > RegCloseKey handle > Err.Raise 1001, , "Unsupported value type" > End Select > > ' close the registry key > RegCloseKey handle >End Function > > > > >Function SetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, _ > ByVal ValueName As String, value As Variant) As Boolean > Dim handle As Long > Dim lngValue As Long > Dim strValue As String > Dim binValue() As Byte > Dim length As Long > Dim retVal As Long > > ' Open the key, exit if not found > If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then > Exit Function > End If > > ' three cases, according to the data type in Value > Select Case VarType(value) > Case vbInteger, vbLong > lngValue = value > retVal = RegSetValueEx(handle, ValueName, 0, REG_DWORD, >lngValue, 4) > Case vbString > strValue = value > retVal = RegSetValueEx(handle, ValueName, 0, REG_SZ, ByVal >strValue, _ > Len(strValue)) > Case vbArray + vbByte > binValue = value > length = UBound(binValue) - LBound(binValue) + 1 > retVal = RegSetValueEx(handle, ValueName, 0, REG_BINARY, _ > binValue(LBound(binValue)), length) > Case Else > RegCloseKey handle > Err.Raise 1001, , "Unsupported value type" > End Select > > ' Close the key and signal success > RegCloseKey handle > ' signal success if the value was written correctly > SetRegistryValue = (retVal = 0) >End Function > > > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Tue Dec 2 15:16:20 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 2 Dec 2003 15:16:20 -0600 Subject: [AccessD] Form Top Left corner icon. Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1B3@TAPPEEXCH01> Dev Ashish has a code sample at http://www.mvps.org/access/api/api0043.htm. If you run it on your Form_Load, it will cascade itself to the left hand side of the menubar when maximized. -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 02, 2003 2:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Top Left corner icon. Aha, But a different Icon per form is a no go? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Mitsules, Mark S. (Newport News) Verzonden: dinsdag 2 december 2003 18:57 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Form Top Left corner icon. Erwin, Access 2002: Setting the Tools/Startup/Application Icon will take care of the application window and the database window. Checking the "Use as Form and Report Icon" box will take care of the rest. Mark -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 02, 2003 12:34 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form Top Left corner icon. Hi I was wundering if it is posible to change the icon /figure that is shown on the top left corner of a form or report? Or even from the Access main form. Yes I mean the the windows icon with the maximize, minimize restore menu if you click on it. In a for it shows the regular form icon. Erwin Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Erwin.Craps at ithelps.be Tue Dec 2 15:54:56 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Tue, 2 Dec 2003 22:54:56 +0100 Subject: [AccessD] Form Top Left corner icon. Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF73@stekelbes.ithelps.local> THAAAAAAAAANK YOOOOOOOOOOOU Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Brett Barabash Verzonden: dinsdag 2 december 2003 22:16 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Form Top Left corner icon. Dev Ashish has a code sample at http://www.mvps.org/access/api/api0043.htm. If you run it on your Form_Load, it will cascade itself to the left hand side of the menubar when maximized. -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 02, 2003 2:49 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Form Top Left corner icon. Aha, But a different Icon per form is a no go? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Mitsules, Mark S. (Newport News) Verzonden: dinsdag 2 december 2003 18:57 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Form Top Left corner icon. Erwin, Access 2002: Setting the Tools/Startup/Application Icon will take care of the application window and the database window. Checking the "Use as Form and Report Icon" box will take care of the rest. Mark -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 02, 2003 12:34 PM To: Access Developers discussion and problem solving Subject: [AccessD] Form Top Left corner icon. Hi I was wundering if it is posible to change the icon /figure that is shown on the top left corner of a form or report? Or even from the Access main form. Yes I mean the the windows icon with the maximize, minimize restore menu if you click on it. In a for it shows the regular form icon. Erwin Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Dec 2 16:10:03 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 2 Dec 2003 15:10:03 -0700 Subject: [AccessD] Sorting textual fields like number fields? Message-ID: <53290-22003122222103592@christopherhawkins.com> William, Two possibilities: 1) People are too lazy to read past the first element of the address unless absolutely necessary. 2) People are too smart too waste energy looking past the first elemtn of the address unless absolutely necessary. I'll give you three guesses as to which one I think it true... -Christopher- ---- Original Message ---- From: wdhindman at bellsouth.net To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Sorting textual fields like number fields? Date: Tue, 2 Dec 2003 15:05:45 -0500 >...I know that, somewhere down deep in hidden recesses, there must >be a >simple rationale behind sorting on numbers and THEN street names >...but I'm >not a spelunker by trade ...so I'll just ask? ...inquiring minds >just want >to know ...wtfo? > >William Hindman >Government is not reason, government is not persuasion, >government is force. It is a dangerous servant." G. Washington > >----- Original Message ----- >From: "Jim Hewson" >To: "'Access Developers discussion and problem solving'" > >Sent: Tuesday, December 02, 2003 2:43 PM >Subject: RE: [AccessD] Sorting textual fields like number fields? > > >> >> He wanted to sort on the street number then street name. >> The other way would sort the street name then the number. >> >> >> -----Original Message----- >> From: Andy Lacey [mailto:andy at minstersystems.co.uk] >> Sent: Tuesday, December 02, 2003 1:13 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] Sorting textual fields like number fields? >> >> >> Not the other way round? >> >> Andy Lacey >> http://www.minstersystems.co.uk >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >Hewson >> > Sent: 02 December 2003 19:03 >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] Sorting textual fields like number fields? >> > >> > >> > >> > This does the same thing >> > ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) >> > >> > Jim >> > >> > -----Original Message----- >> > From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >> > Sent: Tuesday, December 02, 2003 1:01 PM >> > To: accessd at databaseadvisors.com >> > Subject: RE: [AccessD] Sorting textual fields like number fields? >> > >> > >> > Never mind; I figured it out. >> > >> > I found some code that almost did what I needed and changed >> > it to look like this: >> > >> > ***START*** >> > Function FilterTextOutOfAddress(strProblemAddress As String) As >Double >> > >> > Dim strResults As String >> > Dim iCounter As Integer >> > Dim iStartHere As Integer >> > >> > On Error GoTo Err_FilterTextOutOfAddress >> > >> > ' Set the starting position. >> > iStartHere = 1 >> > >> > ' Loop through the length of the address >> > For iCounter = 1 To Len(strProblemAddress) >> > ' If the current character is a number, add it to the >> > result string. >> > ' If not, don't. >> > If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then >_ >> > strResults = strResults & Mid(strProblemAddress, >> > iStartHere, 1) >> > >> > ' Advance one character. >> > iStartHere = iStartHere + 1 >> > Next >> > >> > ' Return the result string in numeric format. >> > FilterTextOutOfAddress = CDbl(Trim(strResults)) >> > >> > Exit_FilterTextOutOfAddress: >> > Exit Function >> > >> > Err_FilterTextOutOfAddress: >> > MsgBox Err.Description >> > Resume Exit_FilterTextOutOfAddress >> > End Function >> > >> > ***END*** >> > >> > Then I added a field to my query that looks like this: >> > >> > StreetNum: FilterTextOutOfAddress([Address]) >> > >> > And sorted it ascending, followed by the actual Address >> > field, also sorted Ascending so that the sort will go number >> > first, then street name. >> > >> > -Christopher- >> > ---- Original Message ---- >> > From: clh at christopherhawkins.com >> > To: accessd at databaseadvisors.com, >> > Subject: RE: [AccessD] Sorting textual fields like number fields? >> > Date: Tue, 2 Dec 2003 11:28:02 -0700 >> > >> > >All, >> > > >> > >I feel like I should already know how to do this, but for >whatever >> > >reason - I don't. Must be the pneumonia clouding my >> > thinking. Here's >> > >the problem: >> > > >> > >I need to sort an address field by street number. The >> > Address (street >> > >number and street name) is contained in a Text field, so my >> > attempts to >> > >sort it end up with the numbers being sorted like text. For >example, >> > >given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., >> > 113 East >> > >St. and 115 West St. the sort would look like this: >> > > >> > >1118 Main St. >> > >113 East St. >> > >1144 Maple St. >> > >1146 Oak St. >> > >115 West St. >> > > >> > >I need the sort to go exactly by street number, like this: >> > > >> > >113 East St. >> > >115 West St. >> > >1118 Main St. >> > >1144 Maple St. >> > >1146 Oak St. >> > > >> > >And I don't have a clue how to begin. >Heeeeeeeeeeeeeeeeeeeeeelp... >> > > >> > >-Christopher- >> > > >> > > >> > >_______________________________________________ >> > >AccessD mailing list >> > >AccessD at databaseadvisors.com >> > >http://databaseadvisors.com/mailman/listinfo/accessd >> > >Website: http://www.databaseadvisors.com >> > > >> > > >> > >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/a> ccessd >> > Website: >> > http://www.databaseadvisors.com >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/a> ccessd >> > Website: >> > http://www.databaseadvisors.com >> > >> > >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From pharold at proftesting.com Tue Dec 2 16:26:39 2003 From: pharold at proftesting.com (Perry Harold) Date: Tue, 2 Dec 2003 17:26:39 -0500 Subject: [AccessD] Sorting textual fields like number fields? In-Reply-To: <53290-22003122222103592@christopherhawkins.com> Message-ID: <000001c3b923$5aa8ed40$082da8c0@D58BT131> It's because the numbers come first in the ASCII chart of values. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Christopher Hawkins Sent: Tuesday, December 02, 2003 5:10 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Sorting textual fields like number fields? William, Two possibilities: 1) People are too lazy to read past the first element of the address unless absolutely necessary. 2) People are too smart too waste energy looking past the first elemtn of the address unless absolutely necessary. I'll give you three guesses as to which one I think it true... -Christopher- ---- Original Message ---- From: wdhindman at bellsouth.net To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Sorting textual fields like number fields? Date: Tue, 2 Dec 2003 15:05:45 -0500 >...I know that, somewhere down deep in hidden recesses, there must >be a >simple rationale behind sorting on numbers and THEN street names >...but I'm >not a spelunker by trade ...so I'll just ask? ...inquiring minds >just want >to know ...wtfo? > >William Hindman >Government is not reason, government is not persuasion, government is >force. It is a dangerous servant." G. Washington > >----- Original Message ----- >From: "Jim Hewson" >To: "'Access Developers discussion and problem solving'" > >Sent: Tuesday, December 02, 2003 2:43 PM >Subject: RE: [AccessD] Sorting textual fields like number fields? > > >> >> He wanted to sort on the street number then street name. >> The other way would sort the street name then the number. >> >> >> -----Original Message----- >> From: Andy Lacey [mailto:andy at minstersystems.co.uk] >> Sent: Tuesday, December 02, 2003 1:13 PM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] Sorting textual fields like number fields? >> >> >> Not the other way round? >> >> Andy Lacey >> http://www.minstersystems.co.uk >> >> > -----Original Message----- >> > From: accessd-bounces at databaseadvisors.com >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >Hewson >> > Sent: 02 December 2003 19:03 >> > To: 'Access Developers discussion and problem solving' >> > Subject: RE: [AccessD] Sorting textual fields like number fields? >> > >> > >> > >> > This does the same thing >> > ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) >> > >> > Jim >> > >> > -----Original Message----- >> > From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >> > Sent: Tuesday, December 02, 2003 1:01 PM >> > To: accessd at databaseadvisors.com >> > Subject: RE: [AccessD] Sorting textual fields like number fields? >> > >> > >> > Never mind; I figured it out. >> > >> > I found some code that almost did what I needed and changed it to >> > look like this: >> > >> > ***START*** >> > Function FilterTextOutOfAddress(strProblemAddress As String) As >Double >> > >> > Dim strResults As String >> > Dim iCounter As Integer >> > Dim iStartHere As Integer >> > >> > On Error GoTo Err_FilterTextOutOfAddress >> > >> > ' Set the starting position. >> > iStartHere = 1 >> > >> > ' Loop through the length of the address >> > For iCounter = 1 To Len(strProblemAddress) >> > ' If the current character is a number, add it to the >> > result string. >> > ' If not, don't. >> > If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then >_ >> > strResults = strResults & Mid(strProblemAddress, >> > iStartHere, 1) >> > >> > ' Advance one character. >> > iStartHere = iStartHere + 1 >> > Next >> > >> > ' Return the result string in numeric format. >> > FilterTextOutOfAddress = CDbl(Trim(strResults)) >> > >> > Exit_FilterTextOutOfAddress: >> > Exit Function >> > >> > Err_FilterTextOutOfAddress: >> > MsgBox Err.Description >> > Resume Exit_FilterTextOutOfAddress >> > End Function >> > >> > ***END*** >> > >> > Then I added a field to my query that looks like this: >> > >> > StreetNum: FilterTextOutOfAddress([Address]) >> > >> > And sorted it ascending, followed by the actual Address field, also >> > sorted Ascending so that the sort will go number first, then street >> > name. >> > >> > -Christopher- >> > ---- Original Message ---- >> > From: clh at christopherhawkins.com >> > To: accessd at databaseadvisors.com, >> > Subject: RE: [AccessD] Sorting textual fields like number fields? >> > Date: Tue, 2 Dec 2003 11:28:02 -0700 >> > >> > >All, >> > > >> > >I feel like I should already know how to do this, but for >whatever >> > >reason - I don't. Must be the pneumonia clouding my >> > thinking. Here's >> > >the problem: >> > > >> > >I need to sort an address field by street number. The >> > Address (street >> > >number and street name) is contained in a Text field, so my >> > attempts to >> > >sort it end up with the numbers being sorted like text. For >example, >> > >given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., >> > 113 East >> > >St. and 115 West St. the sort would look like this: >> > > >> > >1118 Main St. >> > >113 East St. >> > >1144 Maple St. >> > >1146 Oak St. >> > >115 West St. >> > > >> > >I need the sort to go exactly by street number, like this: >> > > >> > >113 East St. >> > >115 West St. >> > >1118 Main St. >> > >1144 Maple St. >> > >1146 Oak St. >> > > >> > >And I don't have a clue how to begin. >Heeeeeeeeeeeeeeeeeeeeeelp... >> > > >> > >-Christopher- >> > > >> > > >> > >_______________________________________________ >> > >AccessD mailing list >> > >AccessD at databaseadvisors.com >> > >http://databaseadvisors.com/mailman/listinfo/accessd >> > >Website: http://www.databaseadvisors.com >> > > >> > > >> > >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/a> ccessd >> > Website: >> > http://www.databaseadvisors.com >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/a> ccessd >> > Website: >> > http://www.databaseadvisors.com >> > >> > >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Tue Dec 2 16:37:37 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 2 Dec 2003 17:37:37 -0500 Subject: [AccessD] Sorting textual fields like number fields? References: <53290-22003122222103592@christopherhawkins.com> Message-ID: <002601c3b924$e3673960$6101a8c0@dejpolsys> ...lets see ...I've got an mdb with say 100K addresses and I want only the one at 114 Main St in Mankato MN ...so I'm going to sort on the 114 and start looking there first? ...think I missed a turn somewhere :( ...how about a third possibility ...the users are used to working with an outdated db and don't have a clue what's possible in a modern rdb today ...so instead of telling the analyst what the end result has to be and letting him figure out how best to provide it, they're telling him how to do his job. William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, December 02, 2003 5:10 PM Subject: Re: [AccessD] Sorting textual fields like number fields? > William, > > Two possibilities: > > 1) People are too lazy to read past the first element of the address > unless absolutely necessary. > 2) People are too smart too waste energy looking past the first > elemtn of the address unless absolutely necessary. > > I'll give you three guesses as to which one I think it true... > > -Christopher- > > ---- Original Message ---- > From: wdhindman at bellsouth.net > To: accessd at databaseadvisors.com, > Subject: Re: [AccessD] Sorting textual fields like number fields? > Date: Tue, 2 Dec 2003 15:05:45 -0500 > > >...I know that, somewhere down deep in hidden recesses, there must > >be a > >simple rationale behind sorting on numbers and THEN street names > >...but I'm > >not a spelunker by trade ...so I'll just ask? ...inquiring minds > >just want > >to know ...wtfo? > > > >William Hindman > >Government is not reason, government is not persuasion, > >government is force. It is a dangerous servant." G. Washington > > > >----- Original Message ----- > >From: "Jim Hewson" > >To: "'Access Developers discussion and problem solving'" > > > >Sent: Tuesday, December 02, 2003 2:43 PM > >Subject: RE: [AccessD] Sorting textual fields like number fields? > > > > > >> > >> He wanted to sort on the street number then street name. > >> The other way would sort the street name then the number. > >> > >> > >> -----Original Message----- > >> From: Andy Lacey [mailto:andy at minstersystems.co.uk] > >> Sent: Tuesday, December 02, 2003 1:13 PM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] Sorting textual fields like number fields? > >> > >> > >> Not the other way round? > >> > >> Andy Lacey > >> http://www.minstersystems.co.uk > >> > >> > -----Original Message----- > >> > From: accessd-bounces at databaseadvisors.com > >> > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > >Hewson > >> > Sent: 02 December 2003 19:03 > >> > To: 'Access Developers discussion and problem solving' > >> > Subject: RE: [AccessD] Sorting textual fields like number fields? > >> > > >> > > >> > > >> > This does the same thing > >> > ORDER BY Val([Address]), Mid([Address],InStr([Address]," ")) > >> > > >> > Jim > >> > > >> > -----Original Message----- > >> > From: Christopher Hawkins [mailto:clh at christopherhawkins.com] > >> > Sent: Tuesday, December 02, 2003 1:01 PM > >> > To: accessd at databaseadvisors.com > >> > Subject: RE: [AccessD] Sorting textual fields like number fields? > >> > > >> > > >> > Never mind; I figured it out. > >> > > >> > I found some code that almost did what I needed and changed > >> > it to look like this: > >> > > >> > ***START*** > >> > Function FilterTextOutOfAddress(strProblemAddress As String) As > >Double > >> > > >> > Dim strResults As String > >> > Dim iCounter As Integer > >> > Dim iStartHere As Integer > >> > > >> > On Error GoTo Err_FilterTextOutOfAddress > >> > > >> > ' Set the starting position. > >> > iStartHere = 1 > >> > > >> > ' Loop through the length of the address > >> > For iCounter = 1 To Len(strProblemAddress) > >> > ' If the current character is a number, add it to the > >> > result string. > >> > ' If not, don't. > >> > If IsNumeric(Mid(strProblemAddress, iStartHere, 1)) Then > >_ > >> > strResults = strResults & Mid(strProblemAddress, > >> > iStartHere, 1) > >> > > >> > ' Advance one character. > >> > iStartHere = iStartHere + 1 > >> > Next > >> > > >> > ' Return the result string in numeric format. > >> > FilterTextOutOfAddress = CDbl(Trim(strResults)) > >> > > >> > Exit_FilterTextOutOfAddress: > >> > Exit Function > >> > > >> > Err_FilterTextOutOfAddress: > >> > MsgBox Err.Description > >> > Resume Exit_FilterTextOutOfAddress > >> > End Function > >> > > >> > ***END*** > >> > > >> > Then I added a field to my query that looks like this: > >> > > >> > StreetNum: FilterTextOutOfAddress([Address]) > >> > > >> > And sorted it ascending, followed by the actual Address > >> > field, also sorted Ascending so that the sort will go number > >> > first, then street name. > >> > > >> > -Christopher- > >> > ---- Original Message ---- > >> > From: clh at christopherhawkins.com > >> > To: accessd at databaseadvisors.com, > >> > Subject: RE: [AccessD] Sorting textual fields like number fields? > >> > Date: Tue, 2 Dec 2003 11:28:02 -0700 > >> > > >> > >All, > >> > > > >> > >I feel like I should already know how to do this, but for > >whatever > >> > >reason - I don't. Must be the pneumonia clouding my > >> > thinking. Here's > >> > >the problem: > >> > > > >> > >I need to sort an address field by street number. The > >> > Address (street > >> > >number and street name) is contained in a Text field, so my > >> > attempts to > >> > >sort it end up with the numbers being sorted like text. For > >example, > >> > >given addresses 1118 Main St., 1144 Maple St., 1146 Oak St., > >> > 113 East > >> > >St. and 115 West St. the sort would look like this: > >> > > > >> > >1118 Main St. > >> > >113 East St. > >> > >1144 Maple St. > >> > >1146 Oak St. > >> > >115 West St. > >> > > > >> > >I need the sort to go exactly by street number, like this: > >> > > > >> > >113 East St. > >> > >115 West St. > >> > >1118 Main St. > >> > >1144 Maple St. > >> > >1146 Oak St. > >> > > > >> > >And I don't have a clue how to begin. > >Heeeeeeeeeeeeeeeeeeeeeelp... > >> > > > >> > >-Christopher- > >> > > > >> > > > >> > >_______________________________________________ > >> > >AccessD mailing list > >> > >AccessD at databaseadvisors.com > >> > >http://databaseadvisors.com/mailman/listinfo/accessd > >> > >Website: http://www.databaseadvisors.com > >> > > > >> > > > >> > > >> > > >> > _______________________________________________ > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> > Website: > >> > http://www.databaseadvisors.com > >> > _______________________________________________ > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/a> ccessd > >> > Website: > >> > http://www.databaseadvisors.com > >> > > >> > > >> > >> > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > > > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From lists at theopg.com Tue Dec 2 17:21:20 2003 From: lists at theopg.com (MarkH) Date: Tue, 2 Dec 2003 23:21:20 -0000 Subject: [AccessD] OT - Kiss DP580... Help, it can't see my network In-Reply-To: <3FCCEDF9.9050902@shaw.ca> Message-ID: <000201c3b92b$06c56d40$300d6bd5@netboxxp> Sorry folks for being totally OT here but I been pulling my hair out with a new toy that wont play. I got this DVD player with built in hard drive today (Kiss DP580), its supposed to be pretty good according to the magazines... But I can't get the damn thing to see my network. Has anyone actually got one of these things working with PC Link? The manual is pretty brief but mentions the need for a DHCP server, I installed one but am clueless as to what to do next. Google told me nuffing :O( If anyone can point me in the right direction I'd be real greatful Mark PS - I'm running win xp, pc link 1.3, upgraded the firmware and managed to ping the dvd player once when it had a static IP address but nothing since... I tried it on different connections, ip addresses and with the software installed on different machines (event win 2000 at one point... All cables etc. work with other machines. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.515 / Virus Database: 313 - Release Date: 01/09/2003 From davide at dalyn.co.nz Tue Dec 2 18:09:28 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 03 Dec 2003 13:09:28 +1300 Subject: [AccessD] Access keeping memory resources Message-ID: <5.2.0.9.0.20031203123544.00b2c330@mail.dalyn.co.nz> Group, WXP, AXP ade / SQL 2K BE I have an accounts report which is printed off at the end of each month. There are about 1800 customers and each account is 2 pages. I have set up my program so that it prints them in batches (groups of 600 customers at a time - this results in a print job of about 50MB). When the first batch is finished a box appears asking if the first batch is to be reprinted or the next one done. The operator waits until the first batch is completely printed before sending the next batch to the printer. The problem is that Access doesn't free up the physical memory between batches with the result that a "virtual memory low" errors appear and the print jobs stop ignominiously. We found that running a single batch, closing Access, then opening it again frees memory for the next batch. However this is not an acceptable solution. The computer has 500Mb memory at the moment and we are going to increase this to 1GB, however this will only delay the evil day. Does anyone know why Access doesn't free up the resources once it has finished with them, or how we can do it without closing Access between print jobs? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 From cfoust at infostatsystems.com Tue Dec 2 18:21:17 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 16:21:17 -0800 Subject: [AccessD] Access keeping memory resources Message-ID: Usually, that means "leaky" code. Are you explicitly destroying the object variables? Has the job actually printed or is it still being spooled to/by the printer? Charlotte Foust -----Original Message----- From: David Emerson [mailto:davide at dalyn.co.nz] Sent: Tuesday, December 02, 2003 4:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access keeping memory resources Group, WXP, AXP ade / SQL 2K BE I have an accounts report which is printed off at the end of each month. There are about 1800 customers and each account is 2 pages. I have set up my program so that it prints them in batches (groups of 600 customers at a time - this results in a print job of about 50MB). When the first batch is finished a box appears asking if the first batch is to be reprinted or the next one done. The operator waits until the first batch is completely printed before sending the next batch to the printer. The problem is that Access doesn't free up the physical memory between batches with the result that a "virtual memory low" errors appear and the print jobs stop ignominiously. We found that running a single batch, closing Access, then opening it again frees memory for the next batch. However this is not an acceptable solution. The computer has 500Mb memory at the moment and we are going to increase this to 1GB, however this will only delay the evil day. Does anyone know why Access doesn't free up the resources once it has finished with them, or how we can do it without closing Access between print jobs? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Dec 2 18:53:26 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Wed, 3 Dec 2003 01:53:26 +0100 Subject: [AccessD] Access keeping memory resources Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF74@stekelbes.ithelps.local> Charlotte can be right on this, You should check other OS issues to. Virtual memory is independant of physical memory. Adding RAM will not necesarily solve your Virtual memory problem. This you can easely check with the task manager while you experiance the prob. It is Windows that manages the virual memory, it can be a memory leak, but it can be a wrong setting to. Check the page fiels size in Start>Control panel > System >advanced > performance settings > advanced (I'm translating from dutch so I could be mistaking in names, but you'll get the drift) Virtual memory > Change Look below to see how big the page file is. I have 512MB RAM to. My recommend size is 766MB and momentary admitted is 1534MB managed by windows. Posibly the size has been limited to a fixed size or by disk capacity or fragmentation. My Advice: Put al disks (one by one) to no paging file or as small as posible Reboot Defrag your disks one by one. Reboot (just to be sure) Set a fixed size of paging file on one or more (FYSICAL) disks (no point in spreading page file over patitions on same fysical disk) I would advice a paging file total size of 1534B and maximum 2500 (or something) in your case. Reboot. Pay attention that you still have plenty of space on your c disk (where windows is). The printer spooler will spool jobs to the windows system32\spool folder. If not enough space you could receive simular error. It is posible to change the location of the spool folder. You could consider (due to the nature of your printjobs) to change the location to another partition of your disk, that you would only use for this purpose. Defragmentating of this disk would be easier. Do a regular defrag. If I remember well the paging is limited in it's growth by the availability of large enough free blocks on the disk. Having no such large spaces could result in a lack of virtual memory. Thast why fixing a big enough size at forehand will guarantee you enough room to work with. Hope this helps. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Charlotte Foust Verzonden: woensdag 3 december 2003 1:21 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Access keeping memory resources Usually, that means "leaky" code. Are you explicitly destroying the object variables? Has the job actually printed or is it still being spooled to/by the printer? Charlotte Foust -----Original Message----- From: David Emerson [mailto:davide at dalyn.co.nz] Sent: Tuesday, December 02, 2003 4:09 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access keeping memory resources Group, WXP, AXP ade / SQL 2K BE I have an accounts report which is printed off at the end of each month. There are about 1800 customers and each account is 2 pages. I have set up my program so that it prints them in batches (groups of 600 customers at a time - this results in a print job of about 50MB). When the first batch is finished a box appears asking if the first batch is to be reprinted or the next one done. The operator waits until the first batch is completely printed before sending the next batch to the printer. The problem is that Access doesn't free up the physical memory between batches with the result that a "virtual memory low" errors appear and the print jobs stop ignominiously. We found that running a single batch, closing Access, then opening it again frees memory for the next batch. However this is not an acceptable solution. The computer has 500Mb memory at the moment and we are going to increase this to 1GB, however this will only delay the evil day. Does anyone know why Access doesn't free up the resources once it has finished with them, or how we can do it without closing Access between print jobs? Regards David Emerson Dalyn Software Ltd 25 Cunliffe St, Churton Park Wellington, New Zealand Ph/Fax (877) 456-1205 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davide at dalyn.co.nz Tue Dec 2 19:12:25 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 03 Dec 2003 14:12:25 +1300 Subject: [AccessD] Access keeping memory resources In-Reply-To: Message-ID: <5.2.0.9.0.20031203141011.00b8ca28@mail.dalyn.co.nz> Ah, I did find a couple that were missed. I will try that. As a side issue, If a recordset variable is being used several times in a procedure, should it be set to Nothing between being set to a different record set, or is it ok just to set it to nothing at the end of the procedure? David At 2/12/2003, you wrote: >Usually, that means "leaky" code. Are you explicitly destroying the >object variables? Has the job actually printed or is it still being >spooled to/by the printer? > >Charlotte Foust > >-----Original Message----- >From: David Emerson [mailto:davide at dalyn.co.nz] >Sent: Tuesday, December 02, 2003 4:09 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Access keeping memory resources > > >Group, > >WXP, AXP ade / SQL 2K BE > >I have an accounts report which is printed off at the end of each >month. There are about 1800 customers and each account is 2 pages. I >have >set up my program so that it prints them in batches (groups of 600 >customers at a time - this results in a print job of about 50MB). When >the >first batch is finished a box appears asking if the first batch is to be > >reprinted or the next one done. The operator waits until the first >batch >is completely printed before sending the next batch to the printer. > >The problem is that Access doesn't free up the physical memory between >batches with the result that a "virtual memory low" errors appear and >the >print jobs stop ignominiously. > >We found that running a single batch, closing Access, then opening it >again >frees memory for the next batch. However this is not an acceptable >solution. The computer has 500Mb memory at the moment and we are going >to >increase this to 1GB, however this will only delay the evil day. > >Does anyone know why Access doesn't free up the resources once it has >finished with them, or how we can do it without closing Access between >print jobs? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (877) 456-1205 > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 2 19:15:20 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 02 Dec 2003 17:15:20 -0800 Subject: [AccessD] Registry tweaks References: Message-ID: <3FCD3928.6080808@shaw.ca> Well, if you are really stuck, I suppose this is the ultimate definition. Free ISO 3166 country code- It lists name and 2 character code as csv, html and xml files These 2 character codes will match with Federal Express IATA codes and IANA Internet ccTLD's Top Level Domains and ISO 4217 Codes for the representation of currencies and funds Heck there is even an Access 2000 mdb version for only the small sum of 294 Swiss Francs with additional sub region codes. http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/index.html Charlotte Foust wrote: >Don't blame Microsoft for the way area codes are allocated around the >globe. They don't have *quite* that much pull ... Yet. I ran >into this issue years ago when I worked for a company that handled event >registration and discovered that area codes and even country codes >aren't quite the indicator of country that you might expect. > >Charlotte Foust > >-----Original Message----- >From: MartyConnelly [mailto:martyconnelly at shaw.ca] >Sent: Tuesday, December 02, 2003 11:15 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Registry tweaks > > >Yes, I see what you mean. I didn't realize Guantanamo Bay was a seperate > >country. >Recognized by the soverign state of Microsoft, no doubt ;) > >Charlotte Foust wrote: > > > >>The one caution I would suggest here is that the country names are >>coming from a telephony key. The problem is that there are separate >>"countries" which happen to be islands and which share an area code, so >> >> > > > >>some of those country names may not be entirely reliable. >> >>I always have to refresh my memory on callbacks as well, but it's >>perfectly possible to create a recordset entirely in memory using ADO >>and then persist it to either an ADTG or XML format instead of creating >> >> > > > >>a table. >> >>Charlotte Foust >> >>-----Original Message----- >>From: MartyConnelly [mailto:martyconnelly at shaw.ca] >>Sent: Monday, December 01, 2003 6:39 PM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] Registry tweaks >> >> >> >>Just use sortcountrylist function as intial call. You don't have to >>QuikSort just put in a query after moving to a table >>I was going to put into an array at one point. Should give you 230 >>countries. >> >>I find it a pain to use callbacks. I keep having to refresh my memory >>as >> >>to how to use them. >> >> >>Public Const HKEY_CLASSES_ROOT As Long = &H80000000 >>Public Const HKEY_CURRENT_USER = &H80000001 >>Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 >>Public Const HKEY_USERS As Long = &H80000003 >>Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 >>Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 >>Public Const HKEY_DYN_DATA As Long = &H80000006 >> >>Const ValueName As String = "Name" >>Const MasterKey As String = >>"SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country List\" >>Public Function getregcountries() As String 'Enumerate the keys inside >>the Registry key: ' parts of this from >>http://www.vb-helper.com/howto_list_countries.html >>' HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ >>' CurrentVersion\Telephony\Country List\ >> >> Dim KeyCol As Collection >> Dim CountryCol As Collection >> Dim strCountry As String >> strCountry = "" >> If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then >> >> Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, MasterKey) >> Dim TheKey As Variant >> Set CountryCol = New Collection >> >> For Each TheKey In KeyCol >> If TheKey <> "800" And >>GetRegistryValue(HKEY_LOCAL_MACHINE, >> >>MasterKey & TheKey, "InternationalRule", "") <> "00EFG#" Then >> 'CboCountry.AddItem >>GetRegistryValue(HKEY_LOCAL_MACHINE, >> >>MasterKey & TheKey, ValueName, "") >> Debug.Print GetRegistryValue(HKEY_LOCAL_MACHINE, >>MasterKey & TheKey, ValueName, "") >> strCountry = strCountry & >>GetRegistryValue(HKEY_LOCAL_MACHINE, MasterKey & TheKey, ValueName, "") >> >> > > > >>& ";" >> End If >> Next >> End If >> getregcountries = strCountry >>End Function >> >> >>Function SortCountriesString() As String >>Dim arrtemp As Variant >>Dim arrCountries(300) As String >>Dim strCountries As String >>Dim strOutCountries As String >>Dim i As Long >>' Get Countries from Registry >> strCountries = getregcountries >> ' Move countries string to array unsorted >> arrtemp = Split(strCountries, ";") >> 'put variant array into string array >> For i = LBound(arrtemp) To UBound(arrtemp) >> arrCountries(i) = arrtemp(i) >> Next i >> ' now sort array by country name >> Quicksort arrCountries, LBound(arrtemp), UBound(arrtemp) >> 'put array into string for combobox maybe too long > 2048 bytes >> For i = LBound(arrtemp) To UBound(arrtemp) >> strOutCountries = strOutCountries & arrCountries(i) & ";" >> Next i >> >> SortCountriesString = strOutCountries >> 'Debug.Print Len(SortCountriesString) >> ' put sorted array into table >> >> MoveIntoTable arrCountries(), UBound(arrtemp) >>End Function >> >>Function MoveIntoTable(arrCountries() As String, imax As Long) Dim rs >>As Recordset Dim iRow As Integer, iCol As Integer Dim db As Database >>Set db = CurrentDb 'pre create table with 1 text field "Country Name" >>Set rs = >>db.OpenRecordset("CountryName") If rs.RecordCount > 1 Then >> MsgBox "table exists already" >> Exit Function >>End If >>With rs >> For iRow = 0 To imax >> .AddNew >> ' 0'th field is autonumber >> .Fields(1) = arrCountries(iRow) >> .Update >> Next >> .Close >>End With >>Set rs = Nothing >> >>End Function >> >>Public Sub Quicksort(list() As String, ByVal min As Long, _ >> ByVal max As Long) >>Dim med_value As String >>Dim hi As Long >>Dim lo As Long >>Dim i As Long >> >> ' If min >= max, the list contains 0 or 1 items so it >> ' is sorted. >> If min >= max Then Exit Sub >> >> ' Pick the dividing value. >> i = Int((max - min + 1) * Rnd + min) >> med_value = list(i) >> >> ' Swap it to the front. >> list(i) = list(min) >> >> lo = min >> hi = max >> Do >> ' Look down from hi for a value < med_value. >> Do While list(hi) >= med_value >> hi = hi - 1 >> If hi <= lo Then Exit Do >> Loop >> If hi <= lo Then >> list(lo) = med_value >> Exit Do >> End If >> >> ' Swap the lo and hi values. >> list(lo) = list(hi) >> >> ' Look up from lo for a value >= med_value. >> lo = lo + 1 >> Do While list(lo) < med_value >> lo = lo + 1 >> If lo >= hi Then Exit Do >> Loop >> If lo >= hi Then >> lo = hi >> list(hi) = med_value >> Exit Do >> End If >> >> ' Swap the lo and hi values. >> list(hi) = list(lo) >> Loop >> >> ' Sort the two sublists. >> Quicksort list(), min, lo - 1 >> Quicksort list(), lo + 1, max >>End Sub >> >>'registry utilities in seperate module >> >>Option Compare Database >>Option Explicit >> >>Public Const HKEY_CLASSES_ROOT As Long = &H80000000 >>Public Const HKEY_CURRENT_USER = &H80000001 >>Public Const HKEY_LOCAL_MACHINE As Long = &H80000002 >>Public Const HKEY_USERS As Long = &H80000003 >>Public Const HKEY_PERFORMANCE_DATA As Long = &H80000004 >>Public Const HKEY_CURRENT_CONFIG As Long = &H80000005 >>Public Const HKEY_DYN_DATA As Long = &H80000006 >> >> >> >> >>Const REG_SZ = 1 >>Const REG_EXPAND_SZ = 2 >>Const REG_BINARY = 3 >>Const REG_DWORD = 4 >>Const REG_MULTI_SZ = 7 >>Const ERROR_MORE_DATA = 234 >>Const KEY_READ = &H20019 ' ((READ_CONTROL Or KEY_QUERY_VALUE Or >> ' KEY_ENUMERATE_SUB_KEYS Or KEY_NOTIFY) And >>(Not >> ' SYNCHRONIZE)) >>Const REG_OPENED_EXISTING_KEY = &H2 >> >>Const KEY_WRITE = &H20006 '((STANDARD_RIGHTS_WRITE Or KEY_SET_VALUE Or >> ' KEY_CREATE_SUB_KEY) And (Not SYNCHRONIZE)) >> >> >>Private Declare Function RegSetValueEx Lib "advapi32.dll" Alias _ >> "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, >> >> >_ > > >> ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, _ >> ByVal cbData As Long) As Long >> >> >>Private Declare Function RegDeleteValue Lib "advapi32.dll" Alias _ >> "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) >>As Long >> >> >> >>Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" >>(dest As _ >> Any, source As Any, ByVal numBytes As Long) >> >> >>Private Declare Function RegEnumKey Lib "advapi32.dll" Alias >>"RegEnumKeyA" _ >> (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpName As String, >> >> > > > >>_ >> ByVal cbName As Long) As Long >> >>Private Declare Function RegEnumValue Lib "advapi32.dll" Alias >>"RegEnumValueA" _ >> (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As >>String, _ >> lpcbValueName As Long, ByVal lpReserved As Long, lpType As Long, _ >> lpData As Any, lpcbData As Long) As Long >> >>Private Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias >>"RegOpenKeyExA" _ >> (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As >>Long, _ >> ByVal samDesired As Long, phkResult As Long) As Long >> >>Private Declare Function RegCloseKey Lib "advapi32.dll" (ByVal hKey As >>Long) As _ >> Long >> >> >>Private Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias _ >> "RegCreateKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, _ >> ByVal Reserved As Long, ByVal lpClass As Long, ByVal dwOptions As >>Long, _ >> ByVal samDesired As Long, ByVal lpSecurityAttributes As Long, _ >> phkResult As Long, lpdwDisposition As Long) As Long >> >> >>Private Declare Function RegQueryValueEx Lib "advapi32.dll" Alias _ >> "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As >>String, _ >> ByVal lpReserved As Long, lpType As Long, lpData As Any, _ >> lpcbData As Long) As Long >> >>Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias >>"RegDeleteKeyA" _ >> (ByVal hKey As Long, ByVal lpSubKey As String) As Long >> >> >> >>Sub DeleteRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >> RegDeleteKey hKey, KeyName >>End Sub >> >> >> >> >>Function DeleteRegistryValue(ByVal hKey As Long, ByVal KeyName As >>String, _ >> ByVal ValueName As String) As Boolean >> Dim handle As Long >> >> ' Open the key, exit if not found >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then Exit >>Function >> >> ' Delete the value (returns 0 if success) >> DeleteRegistryValue = (RegDeleteValue(handle, ValueName) = 0) >> ' Close the handle >> RegCloseKey handle >>End Function >> >>Function CheckRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >>As _ >> Boolean >> Dim handle As Long >> ' Try to open the key >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) = 0 Then >> ' The key exists >> CheckRegistryKey = True >> ' Close it before exiting >> RegCloseKey handle >> End If >>End Function >> >> >>Function CreateRegistryKey(ByVal hKey As Long, ByVal KeyName As String) >> >> > > > >>As _ >> Boolean >> Dim handle As Long, disposition As Long >> >> If RegCreateKeyEx(hKey, KeyName, 0, 0, 0, 0, 0, handle, >>disposition) >> >>Then >> Err.Raise 1001, , "Unable to create the registry key" >> Else >> ' Return True if the key already existed. >> CreateRegistryKey = (disposition = REG_OPENED_EXISTING_KEY) >> ' Close the key. >> RegCloseKey handle >> End If >>End Function >> >> >>Function EnumRegistryKeys(ByVal hKey As Long, ByVal KeyName As String) >>As _ >> Collection >> Dim handle As Long >> Dim length As Long >> Dim index As Long >> Dim subkeyName As String >> >> ' initialize the result collection >> Set EnumRegistryKeys = New Collection >> >> ' Open the key, exit if not found >> If Len(KeyName) Then >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >>Function >> ' in all case the subsequent functions use hKey >> hKey = handle >> End If >> >> Do >> ' this is the max length for a key name >> length = 260 >> subkeyName = Space$(length) >> ' get the N-th key, exit the loop if not found >> If RegEnumKey(hKey, index, subkeyName, length) Then Exit Do >> >> ' add to the result collection >> subkeyName = Left$(subkeyName, InStr(subkeyName, vbNullChar) - >>1) >> EnumRegistryKeys.Add subkeyName, subkeyName >> ' prepare to query for next key >> index = index + 1 >> Loop >> >> ' Close the key, if it was actually opened >> If handle Then RegCloseKey handle >> >>End Function >> >> >>Function EnumRegistryValues(ByVal hKey As Long, ByVal KeyName As >>String) >> >>As _ >> Collection >> Dim handle As Long >> Dim index As Long >> Dim valueType As Long >> Dim name As String >> Dim nameLen As Long >> Dim resLong As Long >> Dim resString As String >> Dim dataLen As Long >> Dim valueInfo(0 To 1) As Variant >> Dim retVal As Long >> >> ' initialize the result >> Set EnumRegistryValues = New Collection >> >> ' Open the key, exit if not found. >> If Len(KeyName) Then >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >>Function >> ' in all cases, subsequent functions use hKey >> hKey = handle >> End If >> >> Do >> ' this is the max length for a key name >> nameLen = 260 >> name = Space$(nameLen) >> ' prepare the receiving buffer for the value >> dataLen = 4096 >> ReDim resBinary(0 To dataLen - 1) As Byte >> >> ' read the value's name and data >> ' exit the loop if not found >> retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >>valueType, _ >> resBinary(0), dataLen) >> >> ' enlarge the buffer if you need more space >> If retVal = ERROR_MORE_DATA Then >> ReDim resBinary(0 To dataLen - 1) As Byte >> retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >> >> > > > >>_ >> valueType, resBinary(0), dataLen) >> End If >> ' exit the loop if any other error (typically, no more values) >> If retVal Then Exit Do >> >> ' retrieve the value's name >> valueInfo(0) = Left$(name, nameLen) >> >> ' return a value corresponding to the value type >> Select Case valueType >> Case REG_DWORD >> CopyMemory resLong, resBinary(0), 4 >> valueInfo(1) = resLong >> Case REG_SZ, REG_EXPAND_SZ >> ' copy everything but the trailing null char >> resString = Space$(dataLen - 1) >> CopyMemory ByVal resString, resBinary(0), dataLen - 1 >> valueInfo(1) = resString >> Case REG_BINARY >> ' shrink the buffer if necessary >> If dataLen < UBound(resBinary) + 1 Then >> ReDim Preserve resBinary(0 To dataLen - 1) As Byte >> End If >> valueInfo(1) = resBinary() >> Case REG_MULTI_SZ >> ' copy everything but the 2 trailing null chars >> resString = Space$(dataLen - 2) >> CopyMemory ByVal resString, resBinary(0), dataLen - 2 >> valueInfo(1) = resString >> Case Else >> ' Unsupported value type - do nothing >> End Select >> >> ' add the array to the result collection >> ' the element's key is the value's name >> EnumRegistryValues.Add valueInfo, valueInfo(0) >> >> index = index + 1 >> Loop >> >> ' Close the key, if it was actually opened >> If handle Then RegCloseKey handle >> >>End Function >>Function EnumRegistryValuesEx(ByVal hKey As Long, ByVal KeyName As >>String) As _ >> Collection >> Dim handle As Long >> Dim index As Long >> Dim valueType As Long >> Dim name As String >> Dim nameLen As Long >> Dim resLong As Long >> Dim resString As String >> Dim dataLen As Long >> Dim valueInfo(0 To 2) As Variant >> Dim retVal As Long >> >> ' initialize the result >> Set EnumRegistryValuesEx = New Collection >> >> ' Open the key, exit if not found. >> If Len(KeyName) Then >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then Exit >>Function >> ' in all cases, subsequent functions use hKey >> hKey = handle >> End If >> >> Do >> ' this is the max length for a key name >> nameLen = 260 >> name = Space$(nameLen) >> ' prepare the receiving buffer for the value >> dataLen = 4096 >> ReDim resBinary(0 To dataLen - 1) As Byte >> >> ' read the value's name and data >> ' exit the loop if not found >> retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >>valueType, _ >> resBinary(0), dataLen) >> >> ' enlarge the buffer if you need more space >> If retVal = ERROR_MORE_DATA Then >> ReDim resBinary(0 To dataLen - 1) As Byte >> retVal = RegEnumValue(hKey, index, name, nameLen, ByVal 0&, >> >> > > > >>_ >> valueType, resBinary(0), dataLen) >> End If >> ' exit the loop if any other error (typically, no more values) >> If retVal Then Exit Do >> >> ' retrieve the value's name >> valueInfo(0) = Left$(name, nameLen) >> >> ' return a value corresponding to the value type >> Select Case valueType >> Case REG_DWORD >> CopyMemory resLong, resBinary(0), 4 >> valueInfo(1) = resLong >> valueInfo(2) = vbLong >> Case REG_SZ, REG_EXPAND_SZ >> ' copy everything but the trailing null char >> resString = Space$(dataLen - 1) >> CopyMemory ByVal resString, resBinary(0), dataLen - 1 >> valueInfo(1) = resString >> valueInfo(2) = vbString >> Case REG_BINARY >> ' shrink the buffer if necessary >> If dataLen < UBound(resBinary) + 1 Then >> ReDim Preserve resBinary(0 To dataLen - 1) As Byte >> End If >> valueInfo(1) = resBinary() >> valueInfo(2) = vbArray + vbByte >> Case REG_MULTI_SZ >> ' copy everything but the 2 trailing null chars >> resString = Space$(dataLen - 2) >> CopyMemory ByVal resString, resBinary(0), dataLen - 2 >> valueInfo(1) = resString >> valueInfo(2) = vbString >> Case Else >> ' Unsupported value type - do nothing >> End Select >> >> ' add the array to the result collection >> ' the element's key is the value's name >> EnumRegistryValuesEx.Add valueInfo, valueInfo(0) >> >> index = index + 1 >> Loop >> >> ' Close the key, if it was actually opened >> If handle Then RegCloseKey handle >> >>End Function >> >> >>Function GetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, >> >> >_ > > >> ByVal ValueName As String, Optional DefaultValue As Variant) As >>Variant >> Dim handle As Long >> Dim resLong As Long >> Dim resString As String >> Dim resBinary() As Byte >> Dim length As Long >> Dim retVal As Long >> Dim valueType As Long >> >> ' Prepare the default result >> GetRegistryValue = IIf(IsMissing(DefaultValue), Empty, >>DefaultValue) >> >> ' Open the key, exit if not found. >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_READ, handle) Then >> Exit Function >> End If >> >> ' prepare a 1K receiving resBinary >> length = 1024 >> ReDim resBinary(0 To length - 1) As Byte >> >> ' read the registry key >> retVal = RegQueryValueEx(handle, ValueName, 0, valueType, >>resBinary(0), _ >> length) >> ' if resBinary was too small, try again >> If retVal = ERROR_MORE_DATA Then >> ' enlarge the resBinary, and read the value again >> ReDim resBinary(0 To length - 1) As Byte >> retVal = RegQueryValueEx(handle, ValueName, 0, valueType, >>resBinary(0), _ >> length) >> End If >> >> ' return a value corresponding to the value type >> Select Case valueType >> Case REG_DWORD >> CopyMemory resLong, resBinary(0), 4 >> GetRegistryValue = resLong >> Case REG_SZ, REG_EXPAND_SZ >> ' copy everything but the trailing null char >> resString = Space$(length - 1) >> CopyMemory ByVal resString, resBinary(0), length - 1 >> GetRegistryValue = resString >> Case REG_BINARY >> ' resize the result resBinary >> If length <> UBound(resBinary) + 1 Then >> ReDim Preserve resBinary(0 To length - 1) As Byte >> End If >> GetRegistryValue = resBinary() >> Case REG_MULTI_SZ >> ' copy everything but the 2 trailing null chars >> resString = Space$(length - 2) >> CopyMemory ByVal resString, resBinary(0), length - 2 >> GetRegistryValue = resString >> Case Else >> RegCloseKey handle >> Err.Raise 1001, , "Unsupported value type" >> End Select >> >> ' close the registry key >> RegCloseKey handle >>End Function >> >> >> >> >>Function SetRegistryValue(ByVal hKey As Long, ByVal KeyName As String, >> >> >_ > > >> ByVal ValueName As String, value As Variant) As Boolean >> Dim handle As Long >> Dim lngValue As Long >> Dim strValue As String >> Dim binValue() As Byte >> Dim length As Long >> Dim retVal As Long >> >> ' Open the key, exit if not found >> If RegOpenKeyEx(hKey, KeyName, 0, KEY_WRITE, handle) Then >> Exit Function >> End If >> >> ' three cases, according to the data type in Value >> Select Case VarType(value) >> Case vbInteger, vbLong >> lngValue = value >> retVal = RegSetValueEx(handle, ValueName, 0, REG_DWORD, >>lngValue, 4) >> Case vbString >> strValue = value >> retVal = RegSetValueEx(handle, ValueName, 0, REG_SZ, ByVal >>strValue, _ >> Len(strValue)) >> Case vbArray + vbByte >> binValue = value >> length = UBound(binValue) - LBound(binValue) + 1 >> retVal = RegSetValueEx(handle, ValueName, 0, REG_BINARY, _ >> binValue(LBound(binValue)), length) >> Case Else >> RegCloseKey handle >> Err.Raise 1001, , "Unsupported value type" >> End Select >> >> ' Close the key and signal success >> RegCloseKey handle >> ' signal success if the value was written correctly >> SetRegistryValue = (retVal = 0) >>End Function >> >> >> >> >> >> >> >> >> > > > -- Marty Connelly Victoria, B.C. Canada From Erwin.Craps at ithelps.be Tue Dec 2 19:19:36 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Wed, 3 Dec 2003 02:19:36 +0100 Subject: [AccessD] Access keeping memory resources Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF76@stekelbes.ithelps.local> David A recordset need to be closed AND set to nothing!!! Set rst = something Do_your_thing rst.close Set rst = nothing Set rst = something Do_your_thing rst.close Set rst = nothing -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson Verzonden: woensdag 3 december 2003 2:12 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Access keeping memory resources Ah, I did find a couple that were missed. I will try that. As a side issue, If a recordset variable is being used several times in a procedure, should it be set to Nothing between being set to a different record set, or is it ok just to set it to nothing at the end of the procedure? David At 2/12/2003, you wrote: >Usually, that means "leaky" code. Are you explicitly destroying the >object variables? Has the job actually printed or is it still being >spooled to/by the printer? > >Charlotte Foust > >-----Original Message----- >From: David Emerson [mailto:davide at dalyn.co.nz] >Sent: Tuesday, December 02, 2003 4:09 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Access keeping memory resources > > >Group, > >WXP, AXP ade / SQL 2K BE > >I have an accounts report which is printed off at the end of each >month. There are about 1800 customers and each account is 2 pages. I >have set up my program so that it prints them in batches (groups of 600 >customers at a time - this results in a print job of about 50MB). When >the first batch is finished a box appears asking if the first batch is >to be > >reprinted or the next one done. The operator waits until the first >batch is completely printed before sending the next batch to the >printer. > >The problem is that Access doesn't free up the physical memory between >batches with the result that a "virtual memory low" errors appear and >the print jobs stop ignominiously. > >We found that running a single batch, closing Access, then opening it >again frees memory for the next batch. However this is not an >acceptable solution. The computer has 500Mb memory at the moment and >we are going to increase this to 1GB, however this will only delay the >evil day. > >Does anyone know why Access doesn't free up the resources once it has >finished with them, or how we can do it without closing Access between >print jobs? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (877) 456-1205 > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From davide at dalyn.co.nz Tue Dec 2 19:32:18 2003 From: davide at dalyn.co.nz (David Emerson) Date: Wed, 03 Dec 2003 14:32:18 +1300 Subject: [AccessD] Access keeping memory resources In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CF76@stekelbes.ithelps.l ocal> Message-ID: <5.2.0.9.0.20031203142723.00bbfc50@mail.dalyn.co.nz> Sorry I wasn't clearer. I was actually referring to a command - Dim cmd As adodb.Command This was in a function that I hadn't set the cmd = nothing. I had another function that used the same variable for several commands. I have just set it to nothing at the end of the function rather than doing so at the end of each use. EG Set cmd = basGetCommand("sprptAccountPrintCustNo", adCmdStoredProc) cmd.Execute Set cmd = basGetCommand("sprptAccountPrintCustNames", adCmdStoredProc) cmd.Execute Set cmd = Nothing David At 3/12/2003, you wrote: >David >A recordset need to be closed AND set to nothing!!! > >Set rst = something >Do_your_thing >rst.close >Set rst = nothing > >Set rst = something >Do_your_thing >rst.close >Set rst = nothing > > > > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens David Emerson >Verzonden: woensdag 3 december 2003 2:12 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] Access keeping memory resources > >Ah, I did find a couple that were missed. I will try that. > >As a side issue, If a recordset variable is being used several times in >a procedure, should it be set to Nothing between being set to a >different record set, or is it ok just to set it to nothing at the end >of the procedure? > >David > >At 2/12/2003, you wrote: > >Usually, that means "leaky" code. Are you explicitly destroying the > >object variables? Has the job actually printed or is it still being > >spooled to/by the printer? > > > >Charlotte Foust > > > >-----Original Message----- > >From: David Emerson [mailto:davide at dalyn.co.nz] > >Sent: Tuesday, December 02, 2003 4:09 PM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Access keeping memory resources > > > > > >Group, > > > >WXP, AXP ade / SQL 2K BE > > > >I have an accounts report which is printed off at the end of each > >month. There are about 1800 customers and each account is 2 pages. I > >have set up my program so that it prints them in batches (groups of 600 > > >customers at a time - this results in a print job of about 50MB). When > > >the first batch is finished a box appears asking if the first batch is > >to be > > > >reprinted or the next one done. The operator waits until the first > >batch is completely printed before sending the next batch to the > >printer. > > > >The problem is that Access doesn't free up the physical memory between > >batches with the result that a "virtual memory low" errors appear and > >the print jobs stop ignominiously. > > > >We found that running a single batch, closing Access, then opening it > >again frees memory for the next batch. However this is not an > >acceptable solution. The computer has 500Mb memory at the moment and > >we are going to increase this to 1GB, however this will only delay the > >evil day. > > > >Does anyone know why Access doesn't free up the resources once it has > >finished with them, or how we can do it without closing Access between > >print jobs? > > > >Regards > > > >David Emerson > >Dalyn Software Ltd > >25 Cunliffe St, Churton Park > >Wellington, New Zealand > >Ph/Fax (877) 456-1205 > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Dec 2 19:32:13 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 2 Dec 2003 17:32:13 -0800 Subject: [AccessD] Access keeping memory resources Message-ID: The resources aren't released until you set it to nothing. It should be enough to set it to nothing at the end ... Unless the end is after you've printed all those thousands of jobs. Charlotte Foust -----Original Message----- From: David Emerson [mailto:davide at dalyn.co.nz] Sent: Tuesday, December 02, 2003 5:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access keeping memory resources Ah, I did find a couple that were missed. I will try that. As a side issue, If a recordset variable is being used several times in a procedure, should it be set to Nothing between being set to a different record set, or is it ok just to set it to nothing at the end of the procedure? David At 2/12/2003, you wrote: >Usually, that means "leaky" code. Are you explicitly destroying the >object variables? Has the job actually printed or is it still being >spooled to/by the printer? > >Charlotte Foust > >-----Original Message----- >From: David Emerson [mailto:davide at dalyn.co.nz] >Sent: Tuesday, December 02, 2003 4:09 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Access keeping memory resources > > >Group, > >WXP, AXP ade / SQL 2K BE > >I have an accounts report which is printed off at the end of each >month. There are about 1800 customers and each account is 2 pages. I >have set up my program so that it prints them in batches (groups of 600 >customers at a time - this results in a print job of about 50MB). When >the >first batch is finished a box appears asking if the first batch is to be > >reprinted or the next one done. The operator waits until the first >batch is completely printed before sending the next batch to the >printer. > >The problem is that Access doesn't free up the physical memory between >batches with the result that a "virtual memory low" errors appear and >the print jobs stop ignominiously. > >We found that running a single batch, closing Access, then opening it >again frees memory for the next batch. However this is not an >acceptable solution. The computer has 500Mb memory at the moment and >we are going to >increase this to 1GB, however this will only delay the evil day. > >Does anyone know why Access doesn't free up the resources once it has >finished with them, or how we can do it without closing Access between >print jobs? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (877) 456-1205 > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Dec 2 20:15:22 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 2 Dec 2003 21:15:22 -0500 Subject: [AccessD] Access keeping memory resources In-Reply-To: <5.2.0.9.0.20031203141011.00b8ca28@mail.dalyn.co.nz> Message-ID: I would close the recordset and set to nothing, then set to the new recordset. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David Emerson Sent: Tuesday, December 02, 2003 8:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access keeping memory resources Ah, I did find a couple that were missed. I will try that. As a side issue, If a recordset variable is being used several times in a procedure, should it be set to Nothing between being set to a different record set, or is it ok just to set it to nothing at the end of the procedure? David At 2/12/2003, you wrote: >Usually, that means "leaky" code. Are you explicitly destroying the >object variables? Has the job actually printed or is it still being >spooled to/by the printer? > >Charlotte Foust > >-----Original Message----- >From: David Emerson [mailto:davide at dalyn.co.nz] >Sent: Tuesday, December 02, 2003 4:09 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] Access keeping memory resources > > >Group, > >WXP, AXP ade / SQL 2K BE > >I have an accounts report which is printed off at the end of each >month. There are about 1800 customers and each account is 2 pages. I >have >set up my program so that it prints them in batches (groups of 600 >customers at a time - this results in a print job of about 50MB). When >the >first batch is finished a box appears asking if the first batch is to be > >reprinted or the next one done. The operator waits until the first >batch >is completely printed before sending the next batch to the printer. > >The problem is that Access doesn't free up the physical memory between >batches with the result that a "virtual memory low" errors appear and >the >print jobs stop ignominiously. > >We found that running a single batch, closing Access, then opening it >again >frees memory for the next batch. However this is not an acceptable >solution. The computer has 500Mb memory at the moment and we are going >to >increase this to 1GB, however this will only delay the evil day. > >Does anyone know why Access doesn't free up the resources once it has >finished with them, or how we can do it without closing Access between >print jobs? > >Regards > >David Emerson >Dalyn Software Ltd >25 Cunliffe St, Churton Park >Wellington, New Zealand >Ph/Fax (877) 456-1205 > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Dec 2 21:39:03 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 3 Dec 2003 14:39:03 +1100 Subject: [AccessD] A2K: Number of characters typed into a field. Message-ID: <002801c3b94e$ff7a5220$41619a89@DDICK> Hello all I need to see if the number of characters typed in to a field matches a pre determined number...say...10. (Data type is irrelevant. Just need to count whatever they type) Using the Len() function I can count the number of characters in a text box. No prob. But only after leaving the text box I assume 'coz Access doesn't update the contents of the control or 'accept' the newly added contents of a control until you leave that control. So.. When I run the sub below in the on Change of a text box it doesn't work 'til after I leave the text box. Does anyone know how to get it to work with each change or addition of a character? (I even had the code going to an unimportant control on the form to force the update on each OnChange then got it to return to my text box. This works fine except when I add a space to the text I am typing the cursor leaves the control then returns and ignores the space so I can't type anything except 1 great big long word) Many thanks in advance Darren eg Private Sub ps_CheckExplanationLength() Dim intCharsSoFar as integer Dim intMinChars as integer intMinChars = 10 ' No of characters typed before enableing apply button intCharsSoFar = Len(Me.txtExplanation) ' Typed so far... If intCharsSoFar > intMinChars Then Me.cmdApply.Enabled = True ' has met the criteria Else Me.cmdApply.Enabled = False 'has not met End If End Sub From actebs at actebs.com.au Tue Dec 2 21:45:56 2003 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 3 Dec 2003 14:45:56 +1100 Subject: [AccessD] A2K: Number of characters typed into a field. In-Reply-To: <002801c3b94e$ff7a5220$41619a89@DDICK> Message-ID: <000001c3b94f$f85ac8c0$0c05a8c0@carlton.local> Darren, Try: Len(Me.txtExplanation.Text) HTH Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK Sent: Wednesday, 3 December 2003 2:39 PM To: AccessD List Subject: [AccessD] A2K: Number of characters typed into a field. Hello all I need to see if the number of characters typed in to a field matches a pre determined number...say...10. (Data type is irrelevant. Just need to count whatever they type) Using the Len() function I can count the number of characters in a text box. No prob. But only after leaving the text box I assume 'coz Access doesn't update the contents of the control or 'accept' the newly added contents of a control until you leave that control. So.. When I run the sub below in the on Change of a text box it doesn't work 'til after I leave the text box. Does anyone know how to get it to work with each change or addition of a character? (I even had the code going to an unimportant control on the form to force the update on each OnChange then got it to return to my text box. This works fine except when I add a space to the text I am typing the cursor leaves the control then returns and ignores the space so I can't type anything except 1 great big long word) Many thanks in advance Darren eg Private Sub ps_CheckExplanationLength() Dim intCharsSoFar as integer Dim intMinChars as integer intMinChars = 10 ' No of characters typed before enableing apply button intCharsSoFar = Len(Me.txtExplanation) ' Typed so far... If intCharsSoFar > intMinChars Then Me.cmdApply.Enabled = True ' has met the criteria Else Me.cmdApply.Enabled = False 'has not met End If End Sub _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Tue Dec 2 21:48:53 2003 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 2 Dec 2003 22:48:53 -0500 Subject: [AccessD] A2K: Number of characters typed into a field. In-Reply-To: <002801c3b94e$ff7a5220$41619a89@DDICK> Message-ID: Darren Two things: 1) Use the KeyPress function to test the Len after each character (incl spaces). 2) Use the BeforeUpdate to check the Len and perform your desired action before leaving the field, including canceling and remaining in the field if the test fails. Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, December 02, 2003 22:39 To: AccessD List Subject: [AccessD] A2K: Number of characters typed into a field. Hello all I need to see if the number of characters typed in to a field matches a pre determined number...say...10. (Data type is irrelevant. Just need to count whatever they type) Using the Len() function I can count the number of characters in a text box. No prob. But only after leaving the text box I assume 'coz Access doesn't update the contents of the control or 'accept' the newly added contents of a control until you leave that control. So.. When I run the sub below in the on Change of a text box it doesn't work 'til after I leave the text box. Does anyone know how to get it to work with each change or addition of a character? (I even had the code going to an unimportant control on the form to force the update on each OnChange then got it to return to my text box. This works fine except when I add a space to the text I am typing the cursor leaves the control then returns and ignores the space so I can't type anything except 1 great big long word) Many thanks in advance Darren eg Private Sub ps_CheckExplanationLength() Dim intCharsSoFar as integer Dim intMinChars as integer intMinChars = 10 ' No of characters typed before enableing apply button intCharsSoFar = Len(Me.txtExplanation) ' Typed so far... If intCharsSoFar > intMinChars Then Me.cmdApply.Enabled = True ' has met the criteria Else Me.cmdApply.Enabled = False 'has not met End If End Sub _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Dec 2 22:08:14 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 3 Dec 2003 15:08:14 +1100 Subject: [AccessD] A2K: Number of characters typed into a field. (Solved) References: <000001c3b94f$f85ac8c0$0c05a8c0@carlton.local> Message-ID: <004201c3b953$12ed46b0$41619a89@DDICK> Vlad You da man!!!!!!! Bob Thanks for the reply I went with Vlad's suggestion Thanks guys Darren ----- Original Message ----- From: "ACTEBS" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 03, 2003 2:45 PM Subject: RE: [AccessD] A2K: Number of characters typed into a field. > Darren, > > Try: > > Len(Me.txtExplanation.Text) > > HTH > Vlad > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: Wednesday, 3 December 2003 2:39 PM > To: AccessD List > Subject: [AccessD] A2K: Number of characters typed into a field. > > > Hello all > I need to see if the number of characters typed in to a field matches a > pre determined number...say...10. > (Data type is irrelevant. Just need to count whatever they type) Using > the Len() function I can count the > number of characters in a text box. No prob. But only after leaving the > text box > I assume 'coz Access doesn't update the contents of the control or > 'accept' the newly added contents of > a control until you leave that control. > > So.. When I run the sub below in the on Change of a text box it doesn't > work 'til after I leave the text box. > > Does anyone know how to get it to work with each change or addition of a > character? (I even had the code going to an unimportant control on the > form to force the update on each OnChange > then got it to return to my text box. This works fine except when I add > a space to the text I am typing the > cursor leaves the control then returns and ignores the space so I can't > type anything except 1 great big long word) > > Many thanks in advance > > Darren > > eg > > Private Sub ps_CheckExplanationLength() > > Dim intCharsSoFar as integer > Dim intMinChars as integer > > intMinChars = 10 ' No of characters typed before enableing apply button > intCharsSoFar = Len(Me.txtExplanation) ' Typed so far... > > If intCharsSoFar > intMinChars Then > Me.cmdApply.Enabled = True ' has met the criteria > Else > Me.cmdApply.Enabled = False 'has not met > End If > > End Sub > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stuart at pacific.net.hk Wed Dec 3 00:39:35 2003 From: stuart at pacific.net.hk (Stuart Sanders) Date: Wed, 3 Dec 2003 14:39:35 +0800 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? In-Reply-To: Message-ID: <001901c3b968$37836080$5100a8c0@BITSNB02> That made me want to puke Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Mitsules, Mark S. (Newport News) > Sent: Tuesday, 02 December, 2003 9:17 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Coolness factor? ...someone at M$ has a sense of humor. > > > > Mark > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, December 02, 2003 3:08 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Hi all > > Here MS tries to list pros and cons for these two environments: > http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6andVS TO.asp /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Alun.Garraway at otto.de Tue Dec 2 10:41:39 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Tue, 2 Dec 2003 17:41:39 +0100 Subject: AW: [AccessD] Does Query Exist In Access Queries Message-ID: hi Paul, got this from somebody at work, might be useful... alun Sub QryNameandDescription() On Error Resume Next Dim dbs As DAO.Database Dim qdfNew As DAO.QueryDef Dim qdfLoop As DAO.QueryDef Dim qry As DAO.QueryDef Set dbs = CurrentDb() With dbs Set qdfNew = .CreateQueryDef() qdfNew.name = "NewQueryDef" .QueryDefs.Append qdfNew Debug.Print "Queries in " & .name For Each qdfLoop In .QueryDefs If qdfLoop.name Like "qry*" Then Debug.Print qdfLoop.Properties("Name") & " / " & qdfLoop.Properties("Description") & Chr(13) End If Next qdfLoop .QueryDefs.Delete qdfNew.name .Close End With End Sub -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von paul.hartland at fsmail.net Gesendet: Dienstag, 2. Dezember 2003 16:54 An: accessd Betreff: [AccessD] Does Query Exist In Access Queries To all, I'm sure I have done this before but can't find the code anywhere and can't figure out how to do it, basically I want to know if a query called qryProgrammeAvailability exists before I delete it via VB/VBA Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Alun.Garraway at otto.de Tue Dec 2 10:43:21 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Tue, 2 Dec 2003 17:43:21 +0100 Subject: AW: [AccessD] Does Query Exist In Access Queries Message-ID: hi Paul, got this from somebody at work, might be useful... alun QryNameandDescription() On Error Resume Next Dim dbs As DAO.Database Dim qdfNew As DAO.QueryDef Dim qdfLoop As DAO.QueryDef Dim qry As DAO.QueryDef Set dbs = CurrentDb() With dbs Set qdfNew = .CreateQueryDef() qdfNew.name = "NewQueryDef" .QueryDefs.Append qdfNew Debug.Print "Queries in " & .name For Each qdfLoop In .QueryDefs If qdfLoop.name Like "qry*" Then Debug.Print qdfLoop.Properties("Name") & " / " & qdfLoop.Properties("Description") & Chr(13) End If Next qdfLoop .QueryDefs.Delete qdfNew.name .Close End With -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von paul.hartland at fsmail.net Gesendet: Dienstag, 2. Dezember 2003 16:54 An: accessd Betreff: [AccessD] Does Query Exist In Access Queries To all, I'm sure I have done this before but can't find the code anywhere and can't figure out how to do it, basically I want to know if a query called qryProgrammeAvailability exists before I delete it via VB/VBA Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Dec 3 01:41:40 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Wed, 3 Dec 2003 08:41:40 +0100 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF77@stekelbes.ithelps.local> One little question. Will Visual studio allow us back to work with more then one developer on the same project? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stuart Sanders Verzonden: woensdag 3 december 2003 7:40 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] VBA and/or Visual Studio Tools for Office? That made me want to puke Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, > Mark S. (Newport News) > Sent: Tuesday, 02 December, 2003 9:17 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Coolness factor? ...someone at M$ has a sense of humor. > > > > Mark > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, December 02, 2003 3:08 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Hi all > > Here MS tries to list pros and cons for these two environments: > http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6a ndVS TO.asp /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andrew.haslett at ilc.gov.au Wed Dec 3 03:42:53 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 3 Dec 2003 20:12:53 +1030 Subject: [AccessD] OT - Getting started with Web development Message-ID: Try this for resolving client names: http://support.microsoft.com/default.aspx?scid=kb;[LN];245574 Cheers, Andrew -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Wednesday, 3 December 2003 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development You can get the IP address of the client though. If you aren't getting clients that are behind a proxy, then you just have to reverse DNS to get their machine name. Drew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, December 02, 2003 8:15 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Each folder does have its own authentication settings but it still won't give access to the machine name. If the DLL is used it may need to be installed on user's PC's and accessed via client side scripting. Unless scripting alone can access the API's then it's not even necessary. Jim DeMarco -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 9:09 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development If you host your app in a virtual directory, then any changes you make will only affect your web application. They don't need to change any 'global iis' settings, so that should keep your network admins happy. I really think it's the easiest way to go rather than using dll's or client side script. All you have to do is check one box and you're laughing! Another point to remember: The IE6 option, under advanced->tools, called "Enable Windows Integrated Authentication" can affect whether the server variables (LOGON_USER) returns anything. Might pay to change that and see if it fixes your initial problem. Cheers, Andrew -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, 2 December 2003 9:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Andrew, > If you're working in an intranet you can use integrated authentication. I am developing for an intranet, but unfortunately, I stand little chance of changing any IIS settings. > If you're using .Net you can use impersonation I'm a little familiar with WMI scripting and impersonation, but that requires that you have administrator privs on the remote machine. Is this similar to what you mention in .Net? Mark -----Original Message----- From: Haslett, Andrew [mailto:andrew.haslett at ilc.gov.au] Sent: Monday, December 01, 2003 6:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I don't think that will work. IIS performs your authentication so won't have the client details available. You'll have to run a custom login form to get the user details or ask your host to set up basic authentication (not overly secure). If you're working in an intranet you can use integrated authentication. (If you're using .Net you can use impersonation which is another step further and allows you a little more control). Cheers, Andrew -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Tuesday, 2 December 2003 6:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development VB 5.0 will work as well I believe (I misstated VB 6.0 below). Just create a class within the DLL with LoginName and Machine properties (returned from your API calls). Jim D. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 2:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Thank you Jim. I tried that, but unfortunately our IT people must have IIS configured to accept anonymous access. The only ServerVariables that are uniquely identifiable are REMOTE_ADDR and REMOTE_HOST. There is one machine here loaded with VB 5.0 so I may be able to create that work-around you suggested. Mark -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hshhp.org] Sent: Monday, December 01, 2003 1:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Mark, Here's code to get the logon name. I don't know about the machine name via ASP but here's a URL that lists all the Request.ServerVariables you can use: http://www.4guysfromrolla.com/webtech/092298-3.shtml <% 'anonymous access must be disabled in IIS for this to work Response.Write (Request.ServerVariables("LOGON_USER")) %> You do have the option however to use your existing VB/VBA code to grab user name and machine. Just wrap it an ActiveX DLL and call that from your ASP code (if you use VB 6.0 that is). (it's the option I'd take if there is no server variable) HTH, Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Monday, December 01, 2003 12:02 PM To: '[AccessD]' Subject: RE: [AccessD] OT - Getting started with Web development Drew, I for one thank you for "Chapter 1". As for writing an article or a book, I believe that you've already done most of the work. You have a searchable archive of all of your posts for any given subject. I'd be willing to bet you've already written it, you just need to gather it together. I especially want to thank you for the "hit counter". It gave me a great idea. I have been relying on the IT-provided WebTrends report for statistics regarding the departmental website that I administer. But their statistics are at the division level, not departmental. One not-so-quick question regarding Access v. ASP... In a few of my Access apps I utilize API calls to capture the login name and machine name of the user. Is it possible to replicate that functionality using any combination of ASP/HTML/VBScript? (I once had an UNIX instructor who's motto was "The answer is always yes, the question is how.") Thanks for any comments, Mark -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Friday, November 28, 2003 7:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development I've thought about writing a long set of articles to put on my website, but I always find something else comes up...know what I mean? Drew -----Original Message----- From: Jim Lawrence (AccessD) [mailto:accessd at shaw.ca] Sent: Wednesday, November 26, 2003 7:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - Getting started with Web development Hi Drew: Have you ever thought about writing a book on the subject...You have finished chapter one. ...I teasing... :-) Very good introductory Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Wednesday, November 26, 2003 2:55 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Getting started with Web development Paul, I have been developing ASP project for quite some time now. I think I can narrow down what you REALLY need to know to get started. First of all, before you dig into web development, you MUST understand how a web server and web pages work. It is a whole different ball of wax compared to an Access FE. With an Access FE, you create forms and reports, and each user has a copy (or uses a shared FE) of the front end. This has several drawbacks. First of all, if you have copies of the FE all over, you have to create an update process to push out new changes. If you have a shared FE, then you have to kick everyone out to update the process. On top of that, a user can be anywhere, so there can always be issues of where things are located. One user may have a share mapped to S, while another has it mapped to T. UNC's can handle this, but then there is also the issue of whether people are able to even get to the locations involved. On a web server, all of these issues are moot. The way a web server works, is the client opens their browser and requests a web page. Let's say they go to http://MyWebsite.com. The browser does a few things, one of which is it sends an http request to the server sitting at whatever mywebsite.com resolves too. (http is Hyper Text Transfer Protocol. HTML is Hyper Text Markup Language. So, HTTP is the protocol uses to transport HTML.). The server at the other end gets an http request for it's root directory. Notice the URL doesn't have a specific file (this is a KEY point to remember). That is just fine and dandy, because a webserver can be asked for a page by just the 'folder', since each folder can have a default document setup. In most cases it is index.htm or default.asp, but it can quite frankly be any document you want (or even a list of documents). For our example, let's say it's default.asp. The web server then reads the default.asp page and runs it through it's ISAPI filters. These are filters that cause various things to be done to the HTML that is going to be sent back. Two good examples of this are includes and ASP itself. Includes are when you mark another file or files to be included within the document. So, if you have a header that you want on every page, instead of putting the HTML for that header on every page, you put the header in it's own file, and just include it in all of your pages. The include ISAPI filter then incorporates that HTML in the outgoing HTML. You can also include .asp code, similar to putting code in a module, versus behind every form/report. The ASP ISAPI filter is a little more complex. Instead of just replacing text, it actually 'works' the ASP code on the page. This is the CORE of ASP. What the end user get's, is just the outgoing HTML. They never get the ASP code itself. ASP can either be passive or dynamic. My own terms for the two actions ASP can perform. Passive is when the ASP does something that the users can't see. Dynamic is when ASP does something that the users DO see. For example. If the default.asp page was like this: <% dim cnn dim rs dim strSQL set cnn=server.createobject("ADODB.Connection") set rs=server.createobject("ADODB.Recordset") cnn.Provider="Microsoft.Jet.OLEDB.4.0" cnn.Open "E:\MyDB.mdb" strSQL="SELECT Hit FROM tblHits;" rs.Open strSQL,cnn,1,3 rs.AddNew rs.Fields(0).value=1 rs.Update rs.close set rs=nothing cnn.close set cnn=nothing %> Hello The end user will get a page that says hello, but internally, the ASP page has added a record to a database, in this case, a simple hit counter. This is passive, since the user will always get 'Hello', no matter what they do. The ASP code is doing work, but it's something the end user doesn't see. Dynamic ASP pages are where the output the user sees is directly affected by the ASP code. To do this, you must either use the = symbol (which is a shortcut to have the ASP send something out with the resulting HTML stream), or the response.write procedure. For example, let's have default.asp be this: <% dim strIP strIP=request.ServerVariables("REMOTE_ADDR") %> Your IP Address is: <%=strIP%>
<% response.write "Have a nice day." %> What the user will see is a message that has their IP address, like this: Your IP Address is: 65.65.125.209 Have a nice day. We used the equal since to 'insert' something into the normal HTML with ASP, and then we used response.write to directly output a string into the outgoing HTML stream. The last thing to remember when dealing with a web server is that the end users are getting whatever the web server hands out, the moment they request it. Once they get the resulting HTML stream, and their browser displays the page, there is no longer a connection to the file they requested. That means if you are constantly updating asp pages, the end users will just simply get the 'current' results at the time of their request. No kicking everyone out, etc. Pretty handy. Three more items to cover. Above was the biggie. First of the three. HTML. HTML is actually pretty simple. I personally used Front Page when I started out, to let it do the HTML for me, then after a few months of going back and forth, I just got the hang of it, and I rarely ever use FP for writing the HTML anymore. The two key items to remember with HTML is that everything is written with tags. Some tags are stand alone, such as
(which is a line break), and some tags must have a start and finish ( and , or an easier example and which is for bolding text). Tags also can have properties. For example, an anchor tag (for hyperlinks) is a. Click here to go to Wolfwares.com , and between the start tag, and the closing tag , there is text, which is what the user will see as the text of the hyperlink. The second key item to remember with HTML is that no matter what format you write the HTML in, what the user sees in the browser is determine by the TAGS, not by the HTML code. So if you write: This is a Test The user sees: This is a Test If you write: This is a
Test The user sees: This is a Test Second of the three is a BIG difference between Access and ASP. Access runs it's code on the users processor. This is both good and bad. Bad, because the end user must have Access (or a run-time installed). Also, bad because users on slower machines are going to be delayed longer then users on fast machines. Good, because as long as the end users have the correct software/runtimes, your application should almost be gauranteed to work. With ASP, if you write standard HTML, it doesn't matter what you have the ASP code do. Your ASP code only has to run on the web server. Your clients can be running Pentium 4's, with IE, or Mac's with Netscape, and everyone sees the same results. A client running a 2.6 gigahertz on a 56k modem is going to run your application at the same speed (well, pretty much the same speed) as a client running a 486 66mhz with a 56k modem. In fact, if your pages are light enough on the output (little to no graphics, just plain HTML.....) there isn't going to be much of a difference between a modem user or a broad band user. Text transfers pretty quickly....though you could have slow downs if there is just a ton of text being sent (like combo boxes that have thousands of items in their lists). The final issue with this part is client side scripting. I personally stay away from it like the plague, unless it's for in house projects where I know everyone is using IE. So try to make your applications run strictly with ASP, unless absolutely necessary. Third of the three. The real nuts and bolts of ASP. ASP can be written in JScript or VBScript. Quite frankly I have never bothered to use JScript, since VBScript is practically second nature. When writting ASP, you enclose the ASP code with <% and %> (start and end tags for ASP), and then write away with VBScript. There are two things to remember/research. ASP is VBScript with extra objects (Application, ObjectContext,Request,ASPError,Response,Server,Session). The three you are going to deal with the most are Request, Response and Server. Request gives you access to what you have been 'sent' by the user. It can be used to read cookies, server variables (which include Usernames, passwords,IP Addresses, browser types, etc.), and form data. Response is what you use to send data back to the user (response.write outputs to the HTML stream, redirect can actually change the URL the end user is receiving, etc.). Server is the webserver itself. The two main methods you will probably use are MapPath(Which let's you map a virtual or actual path to a file) and CreateObject. That CreateObject is the big catch with ASP and VBScript. In normal VBScript you just call CreateObject. But with ASP, you must use the Server Object's CreateObject method to create an object in VBScript. (Because the object must be created by the webserver). That's ASP in a nutshell. The first item I talked about is a little difficult to figure out from the MSDN, the rest is in the MSDN, but can still be a little difficult to figure out. The details on everything (HTML tags, ASP objects, etc.) are pretty much well explained in the MSDN though. The last thing you will need to know about ASP pages versus Access FE's is how to get data FROM the user. (we already discussed sending it to them, with the response.write method). I mentioned the request object. The two methods of getting data from the user are through forms and querystrings. A querystring is what follows a URL (after a ?). So, if you have a URL like this: http://MyWebsite.com/default.asp?MyValue=10 , you can retrieve the value of MyValue by using the request.QueryString method, like this: <% response.write request.QueryString("MyValue") %> If you have an HTML form, and you POST the data:
The resulting page will have a textbox, and a submit button. Pressing the submit button will send the data within the MyValue textbox to results.asp. So if results.asp was this: <% response.write request.form("MyValue") %> The results page will output whatever was in the textbox. The key difference between a QueryString and a Form is that QueryStrings are limited by the max length of a URL (which is, I think, 2048 characters...maybe 1024 characters, not sure). Where as a form is not limited in the amount of data that can be submitted. You can also refer to a request 'variable' by just the request object. request("MyValue") can be a value in either a QueryString OR a Form. Phew, what an email. This was fun to write though. Keep in mind that ASP doesn't directly like DAO, so write your code using ADO. Feel free to contact me offlist if you have specific questions. I may get hammered for the length of this email, but I think it's pertinent to Access development on the web! Drew -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, November 26, 2003 9:55 AM To: accessd Subject: [AccessD] OT - Getting started with Web development To all, I'm looking to start writing web pages etc, secure logins, returning resultsets in tables from Access & SQL Server etc. Anyone know any good sites to get me started along with any book recommendations ? Thanks in advance for all your help Paul Hartland _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". **************************************************************************** ******* _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From paul.hartland at fsmail.net Wed Dec 3 05:40:14 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 3 Dec 2003 12:40:14 +0100 (CET) Subject: [AccessD] Does Query Exist In Access Queries Message-ID: <7277615.1070451614166.JavaMail.www@wwinf3005> I delete it to replace it with a similar query of the same name, based on user selection..... Message date : Dec 02 2003, 05:11 PM >From : Charlotte Foust To : Access Developers discussion and problem solving Copy to : Subject : RE: RE: [AccessD] Does Query Exist In Access Queries Sure, but the intent was to delete it in the first place, so there's nothing wrong with simply trying to delete it. Obviously, if you wanted to just check to see if it existed, you wouldn't do *that* by trying to delete it. Charlotte Foust -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Tuesday, December 02, 2003 8:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: RE: [AccessD] Does Query Exist In Access Queries I'd suggest caution with "try to delete it". Surely if it did exist it won't any more after that. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 02 December 2003 16:35 > To: Access Developers discussion and problem solving > Subject: Re: RE: [AccessD] Does Query Exist In Access Queries > > > Charlotte, > Thanks for your help, never even considered On Error > etc......Think the powers that be are working me too hard..... Paul > > > > > > Message date : Dec 02 2003, 04:24 PM > >From : Charlotte Foust > To : Access Developers discussion and problem solving > Copy to : > Subject : RE: [AccessD] Does Query Exist In Access Queries > The easiest way to test it is to try to set an object > variable to point to it and trap the error. If there is no > error, it exists. Alternatively, try to delete it and trap > the error. If it didn't exist, an error will occur and you'll > know what happened. > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Tuesday, December 02, 2003 7:54 AM > To: accessd > Subject: [AccessD] Does Query Exist In Access Queries > > > To all, > I'm sure I have done this before but can't find the code > anywhere and can't figure out how to do it, basically I want > to know if a query called qryProgrammeAvailability exists > before I delete it via VB/VBA Thanks in advance for you help. > Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 > months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > Freeserve > AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Wed Dec 3 05:45:21 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 3 Dec 2003 12:45:21 +0100 Subject: [AccessD] Does Query Exist In Access Queries In-Reply-To: <7277615.1070451614166.JavaMail.www@wwinf3005> References: <7277615.1070451614166.JavaMail.www@wwinf3005> Message-ID: <15915247254.20031203124521@cactus.dk> Hi Paul So why not just replace the .SQL property? /gustav > I delete it to replace it with a similar query of the same name, based on user selection..... From paul.hartland at fsmail.net Wed Dec 3 05:57:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 3 Dec 2003 12:57:40 +0100 (CET) Subject: [AccessD] Does Query Exist In Access Queries Message-ID: <3999006.1070452660273.JavaMail.www@wwinf3005> lol (laughs out loud), didn't know you could do that.....how would I go about doing that ? Paul Database Designer/Developer (thinking of becoming a road sweeper) Message date : Dec 03 2003, 11:49 AM >From : Gustav Brock To : Access Developers discussion and problem solving Copy to : Subject : Re: [AccessD] Does Query Exist In Access Queries Hi Paul So why not just replace the .SQL property? /gustav > I delete it to replace it with a similar query of the same name, based on user selection..... _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From andrew.haslett at ilc.gov.au Wed Dec 3 06:03:24 2003 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 3 Dec 2003 22:33:24 +1030 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Message-ID: ?? Do you mean source control? There are quite a few around. Visual Sourcesafe of course. Borland also has an addin which allows realtime communication and sharing within VS.Net. Pretty cool really. -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, 3 December 2003 6:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? One little question. Will Visual studio allow us back to work with more then one developer on the same project? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stuart Sanders Verzonden: woensdag 3 december 2003 7:40 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] VBA and/or Visual Studio Tools for Office? That made me want to puke Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, > Mark S. (Newport News) > Sent: Tuesday, 02 December, 2003 9:17 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Coolness factor? ...someone at M$ has a sense of humor. > > > > Mark > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, December 02, 2003 3:08 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Hi all > > Here MS tries to list pros and cons for these two environments: > http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6a ndVS TO.asp /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From selina at easydatabases.com.au Wed Dec 3 07:06:36 2003 From: selina at easydatabases.com.au (Selina Iddon) Date: Wed, 3 Dec 2003 23:06:36 +1000 Subject: [AccessD] Edit Field Property via Code References: Message-ID: <018201c3b99e$4a56ce00$6465000a@venus> Good Evening Everyone I have several databases being used across town and I need to send out an update which will increase an existing text field size 15 characters to be 25 characters. I can add fields, but cannot figure out how to edit them. If someone could help I would truely appreciate it. Thanks heaps Selina From Erwin.Craps at ithelps.be Wed Dec 3 07:12:14 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Wed, 3 Dec 2003 14:12:14 +0100 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Message-ID: <46B976F2B698FF46A4FE7636509B22DF7282@stekelbes.ithelps.local> Euh no... I mean with an Access MDB or ADP Erwin. -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Haslett, Andrew Verzonden: woensdag 3 december 2003 13:03 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] VBA and/or Visual Studio Tools for Office? ?? Do you mean source control? There are quite a few around. Visual Sourcesafe of course. Borland also has an addin which allows realtime communication and sharing within VS.Net. Pretty cool really. -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, 3 December 2003 6:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? One little question. Will Visual studio allow us back to work with more then one developer on the same project? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stuart Sanders Verzonden: woensdag 3 december 2003 7:40 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] VBA and/or Visual Studio Tools for Office? That made me want to puke Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, > Mark S. (Newport News) > Sent: Tuesday, 02 December, 2003 9:17 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Coolness factor? ...someone at M$ has a sense of humor. > > > > Mark > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, December 02, 2003 3:08 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Hi all > > Here MS tries to list pros and cons for these two environments: > http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6a ndVS TO.asp /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Wed Dec 3 07:32:51 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 3 Dec 2003 08:32:51 -0500 Subject: [AccessD] Edit Field Property via Code References: <018201c3b99e$4a56ce00$6465000a@venus> Message-ID: <002801c3b9a1$f2f1c530$6101a8c0@dejpolsys> Selina ... http://www.databaseadvisors.com/downloads.htm ...the home for this list, has a download available that shows you how to do that ...look for the Backend Upgrader (BEU). ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Selina Iddon" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 8:06 AM Subject: [AccessD] Edit Field Property via Code > Good Evening Everyone > I have several databases being used across town and I need to send out an > update which will increase an existing text field size 15 characters to be > 25 characters. I can add fields, but cannot figure out how to edit them. > If someone could help I would truely appreciate it. > Thanks heaps > Selina > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Wed Dec 3 06:54:59 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 3 Dec 2003 13:54:59 +0100 Subject: [AccessD] Edit Field Property via Code Message-ID: <20031203135457.0D913250915@smithers.nildram.co.uk> Hi Selina Whilst developing the BEU (which sounds like something you may want to take a look at if you do this sort of thing a lot - exactly what it was designed for, see http://www.databaseadvisors.com/downloads.htm) we found that modifying field lengths was not supported via code. However you can do it with an ALTER TABLE command in latewr versions of Access. I think it's W2K onwards that allows it, I just know for sure that A97 doesn't. But that's where to look. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: [AccessD] Edit Field Property via Code Date: 03/12/03 03:42 Good Evening Everyone I have several databases being used across town and I need to send out an update which will increase an existing text field size 15 characters to be 25 characters. I can add fields, but cannot figure out how to edit them. If someone could help I would truely appreciate it. Thanks heaps Selina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Wed Dec 3 07:03:45 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 3 Dec 2003 14:03:45 +0100 Subject: [AccessD] Edit Field Property via Code Message-ID: <20031203140342.AB876252AC3@smithers.nildram.co.uk> Your faith in BEU is touching William. Unfortunately, as you'll see in my response to Selina, extending field lengths is one of the very, very tiny number of things that BEU doesn't do. Make the coffee....yes sir. Wash the floor....no problem. Take the kids to school......BEU's the boy. Extend a character field's length......sorry, no can do. :-( The problem is that there's no way to do it with code. ALTER TABLE offers a solution but it's not in A97. When we get round to a new version of BEU it's on our list of things to address, but the best we're going to manage is allowing it in A2K onwards. And before anyone suggests creating a new field, querying all the old data into it, deleting old field, renaming new one - yes we know, but consider the situation where the existing field takes part in indexes and relationships. Then consider a table which already has its maximum number of indexes so you can't define the same indexes on the new field even if you want to. Not so easy, and very dangerous to be playing around with someone's data like that. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Edit Field Property via Code Date: 03/12/03 18:34 Selina .... http://www.databaseadvisors.com/downloads.htm ...the home for this list, has a download available that shows you how to do that ...look for the Backend Upgrader (BEU). ...HTH :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Selina Iddon" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 8:06 AM Subject: [AccessD] Edit Field Property via Code > Good Evening Everyone > I have several databases being used across town and I need to send out an > update which will increase an existing text field size 15 characters to be > 25 characters. I can add fields, but cannot figure out how to edit them. > If someone could help I would truely appreciate it. > Thanks heaps > Selina > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From wdhindman at bellsouth.net Wed Dec 3 08:15:19 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 3 Dec 2003 09:15:19 -0500 Subject: [AccessD] Edit Field Property via Code References: <20031203140342.AB876252AC3@smithers.nildram.co.uk> Message-ID: <005501c3b9a7$e2f1cbc0$6101a8c0@dejpolsys> ...thanks Andy ...I hadn't run into anything BEU couldn't do so made the assumption ...which only goes to prove the old adage ...at least about me :( William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 8:03 AM Subject: Re: [AccessD] Edit Field Property via Code > Your faith in BEU is touching William. Unfortunately, as you'll see in my > response to Selina, extending field lengths is one of the very, very tiny > number of things that BEU doesn't do. Make the coffee....yes sir. Wash the > floor....no problem. Take the kids to school......BEU's the boy. Extend a > character field's length......sorry, no can do. :-( > > The problem is that there's no way to do it with code. ALTER TABLE offers a > solution but it's not in A97. When we get round to a new version of BEU it's > on our list of things to address, but the best we're going to manage is > allowing it in A2K onwards. > > And before anyone suggests creating a new field, querying all the old data > into it, deleting old field, renaming new one - yes we know, but consider > the situation where the existing field takes part in indexes and > relationships. Then consider a table which already has its maximum number of > indexes so you can't define the same indexes on the new field even if you > want to. Not so easy, and very dangerous to be playing around with someone's > data like that. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Edit Field Property via Code > Date: 03/12/03 18:34 > > > Selina > > .... http://www.databaseadvisors.com/downloads.htm ...the home for this > list, > has a download available that shows you how to do that ...look for the > Backend Upgrader (BEU). ...HTH :) > > William Hindman > Government is not reason, government is not persuasion, > government is force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "Selina Iddon" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 03, 2003 8:06 AM > Subject: [AccessD] Edit Field Property via Code > > > > Good Evening Everyone > > I have several databases being used across town and I need to send out an > > update which will increase an existing text field size 15 characters to be > > 25 characters. I can add fields, but cannot figure out how to edit them. > > If someone could help I would truely appreciate it. > > Thanks heaps > > Selina > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pharold at proftesting.com Wed Dec 3 08:34:36 2003 From: pharold at proftesting.com (Perry Harold) Date: Wed, 3 Dec 2003 09:34:36 -0500 Subject: [AccessD] AccessXP and Server 2003 In-Reply-To: Message-ID: <000901c3b9aa$93828810$082da8c0@D58BT131> Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold From Erwin.Craps at ithelps.be Wed Dec 3 09:39:53 2003 From: Erwin.Craps at ithelps.be (Erwin Craps) Date: Wed, 3 Dec 2003 16:39:53 +0100 Subject: [AccessD] Disable undo function from VBA. Message-ID: <46B976F2B698FF46A4FE7636509B22DF6DE0@stekelbes.ithelps.local> I discovered a problem I never had to solve in my +/- 10 years of Access. I having a problem with an invoicing application that runs for 6 years now. Invoice/numbers where disapering in the last 3 months, not often but sometimes 1 or 2. Apparantly a new (unexperianced) user was making some invoices and after discussing the issue with her I discovered this. She created a new invoice. When printing I programaticaly give the invoice a number and save the record. She noticed a typo mistake in date and cancelled the print. The invoicenumber stays on the record. But instead of simply changing the date... She clicks undo-save record in the edit menu or toolbar!!! And the record comes back to the situation just before I added the invoicenumber and some credit date stuff... It's the first time I ever noticed a user using undo saved record... How can I turn this off? Its in Access 97. Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Lambert.Heenan at AIG.com Wed Dec 3 09:52:18 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 3 Dec 2003 10:52:18 -0500 Subject: [AccessD] Disable undo function from VBA. Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7A65@xlivmbx12.aig.com> Does the application use any other menu options? If not then just hide the menubar. Lambert > -----Original Message----- > From: Erwin Craps [SMTP:Erwin.Craps at ithelps.be] > Sent: Wednesday, December 03, 2003 10:40 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Disable undo function from VBA. > > > I discovered a problem I never had to solve in my +/- 10 years of > Access. > > I having a problem with an invoicing application that runs for 6 years > now. > Invoice/numbers where disapering in the last 3 months, not often but > sometimes 1 or 2. > > Apparantly a new (unexperianced) user was making some invoices and after > discussing the issue with her I discovered this. > > She created a new invoice. > When printing I programaticaly give the invoice a number and save the > record. > She noticed a typo mistake in date and cancelled the print. > The invoicenumber stays on the record. > But instead of simply changing the date... > She clicks undo-save record in the edit menu or toolbar!!! > > And the record comes back to the situation just before I added the > invoicenumber and some credit date stuff... > > It's the first time I ever noticed a user using undo saved record... > How can I turn this off? > > Its in Access 97. > > > > > Erwin Craps > > Zaakvoerder > > www.ithelps.be/jonathan > > > > This E-mail is confidential, may be legally privileged, and is for the > intended recipient only. Access, disclosure, copying, distribution, or > reliance on any of it by anyone else is prohibited and may be a criminal > offence. Please delete if obtained in error and E-mail confirmation to > the sender. > > IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg > > www.ithelps.be * www.boxoffice.be > * www.stadleuven.be > > > IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven > > IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: > Info at ithelps.be > > Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: > Staff at boxoffice.be > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 3 10:18:04 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Dec 2003 08:18:04 -0800 Subject: [AccessD] VBA and/or Visual Studio Tools for Office? Message-ID: Forget it, Erwin. That restriction is a function of the VBE and Access is still bound to VBA, not .Net. Furthermore, having multiple developers working in the same project, or someone making design changes in an active database is a VERY BAD idea that finally got eliminated in Access 2000 and later. I, for one, applauded. I had too much experience in earlier versions making design changes and then discovering that a user still had the file open and had closed it *after* I saved. Guess who won? I dislike having to redo work several times. Charlotte Foust -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 03, 2003 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? Euh no... I mean with an Access MDB or ADP Erwin. -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Haslett, Andrew Verzonden: woensdag 3 december 2003 13:03 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] VBA and/or Visual Studio Tools for Office? ?? Do you mean source control? There are quite a few around. Visual Sourcesafe of course. Borland also has an addin which allows realtime communication and sharing within VS.Net. Pretty cool really. -----Original Message----- From: Erwin Craps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, 3 December 2003 6:12 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? One little question. Will Visual studio allow us back to work with more then one developer on the same project? Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stuart Sanders Verzonden: woensdag 3 december 2003 7:40 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] VBA and/or Visual Studio Tools for Office? That made me want to puke Stuart > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, > Mark S. (Newport News) > Sent: Tuesday, 02 December, 2003 9:17 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Coolness factor? ...someone at M$ has a sense of humor. > > > > Mark > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, December 02, 2003 3:08 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] VBA and/or Visual Studio Tools for Office? > > > Hi all > > Here MS tries to list pros and cons for these two environments: > http://msdn.microsoft.com/library/en-us/dno2k3ta/html/odc_OFCompareVBA6a ndVS TO.asp /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 3 10:19:53 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Dec 2003 08:19:53 -0800 Subject: [AccessD] Edit Field Property via Code Message-ID: The simplest way to handle it is to send an empty table with the new structure and code to migrate the data into that structure. However, if the table is involved in relationships, that may not be as simple as it seems. Charlotte Foust -----Original Message----- From: Selina Iddon [mailto:selina at easydatabases.com.au] Sent: Wednesday, December 03, 2003 5:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Edit Field Property via Code Good Evening Everyone I have several databases being used across town and I need to send out an update which will increase an existing text field size 15 characters to be 25 characters. I can add fields, but cannot figure out how to edit them. If someone could help I would truely appreciate it. Thanks heaps Selina _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 3 10:21:55 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 3 Dec 2003 08:21:55 -0800 Subject: [AccessD] Does Query Exist In Access Queries Message-ID: Dim qdf As DAO.Querydef Set qdf = CurrentDb.Querydefs( Qdf.SQL = "SELECT * FROM Whatever..." Set qdf = Nothing Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, December 03, 2003 3:58 AM To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Does Query Exist In Access Queries lol (laughs out loud), didn't know you could do that.....how would I go about doing that ? Paul Database Designer/Developer (thinking of becoming a road sweeper) Message date : Dec 03 2003, 11:49 AM >From : Gustav Brock To : Access Developers discussion and problem solving Copy to : Subject : Re: [AccessD] Does Query Exist In Access Queries Hi Paul So why not just replace the .SQL property? /gustav > I delete it to replace it with a similar query of the same name, based > on user selection..... _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Dec 3 10:38:10 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 3 Dec 2003 08:38:10 -0800 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA Message-ID: <00db01c3b9bb$d698d8f0$6501a8c0@HAL9002> Dear List: Does anyone know the syntax for turning off the Windows In Taskbar setting through code? MTIA, Rocky Smolin Beach Access Software From rl_stewart at highstream.net Wed Dec 3 10:39:50 2003 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 03 Dec 2003 10:39:50 -0600 Subject: [AccessD] Re: Does Query Exist In Access Queries In-Reply-To: <200312031618.hB3GIgc11830@databaseadvisors.com> Message-ID: <5.1.0.14.2.20031203103751.048a8e78@pop3.highstream.net> Paul, open the querydef set qdf = currentdb.querydefs("TheQueryName") replace the sql statement qdf.sql = "The SQL String you want" close the querydef qdf.close Robert At 10:18 AM 12/3/2003 -0600, you wrote: >Date: Wed, 3 Dec 2003 12:57:40 +0100 (CET) >From: paul.hartland at fsmail.net >Subject: Re: Re: [AccessD] Does Query Exist In Access Queries >To: Access Developers discussion and problem solving > >Message-ID: <3999006.1070452660273.JavaMail.www at wwinf3005> >Content-Type: text/plain; charset=iso-8859-1 > >lol (laughs out loud), didn't know you could do that.....how would I go >about doing that ? >Paul >Database Designer/Developer (thinking of becoming a road sweeper) From starkey at wanadoo.nl Wed Dec 3 10:51:35 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Wed, 3 Dec 2003 17:51:35 +0100 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF6DE0@stekelbes.ithelps.local> Message-ID: Hi that's a funny one huh?:-) I looked this up in the Help: As soon as you begin editing another record, apply or remove a filter, or switch to another window, you can't use these methods for correcting changes. Unless you get rid of this menubar-option and disable the Ctrl-Z (Autokeys) you should think about one of the above. Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps Sent: woensdag 3 december 2003 16:40 To: accessd at databaseadvisors.com Subject: [AccessD] Disable undo function from VBA. I discovered a problem I never had to solve in my +/- 10 years of Access. I having a problem with an invoicing application that runs for 6 years now. Invoice/numbers where disapering in the last 3 months, not often but sometimes 1 or 2. Apparantly a new (unexperianced) user was making some invoices and after discussing the issue with her I discovered this. She created a new invoice. When printing I programaticaly give the invoice a number and save the record. She noticed a typo mistake in date and cancelled the print. The invoicenumber stays on the record. But instead of simply changing the date... She clicks undo-save record in the edit menu or toolbar!!! And the record comes back to the situation just before I added the invoicenumber and some credit date stuff... It's the first time I ever noticed a user using undo saved record... How can I turn this off? Its in Access 97. Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 3-12-2003 17:51:35 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From john at winhaven.net Wed Dec 3 11:13:53 2003 From: john at winhaven.net (John Bartow) Date: Wed, 3 Dec 2003 11:13:53 -0600 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA In-Reply-To: <00db01c3b9bb$d698d8f0$6501a8c0@HAL9002> Message-ID: Rocky, Dev's got the answer: http://www.mvps.org/access/api/api0019.htm HTH JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, December 03, 2003 10:38 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Off Windows In Taskbar Through VBA > > > Dear List: > > Does anyone know the syntax for turning off the Windows In > Taskbar setting through code? > > MTIA, > > Rocky Smolin > Beach Access Software > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From stephen at bondsoftware.co.nz Wed Dec 3 11:28:58 2003 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Thu, 04 Dec 2003 06:28:58 +1300 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA Message-ID: <70F3D727890C784291D8433E9C418F29088548@server.bondsoftware.co.nz> Access.Application.SetOption "ShowWindowsInTaskbar", False Stephen Bond > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, 4 December 2003 5:38 a.m. > To: AccessD at databaseadvisors.com > Subject: [AccessD] Turn Off Windows In Taskbar Through VBA > > > Dear List: > > Does anyone know the syntax for turning off the Windows In > Taskbar setting through code? > > MTIA, > > Rocky Smolin > Beach Access Software > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Wed Dec 3 11:30:19 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 3 Dec 2003 12:30:19 -0500 (EST) Subject: [AccessD] check weekday In-Reply-To: <6338663084.20031202191552@cactus.dk> References: <6338663084.20031202191552@cactus.dk> Message-ID: <19836.12.3.132.98.1070472619.squirrel@heck.bay9.com> is there a shorter way of doing this ? dtEdate = Format(Now() - 3, "mm-dd") If WeekDay(dtEdate, vbSaturday) Then dtEdate = dtEdate - 1 ElseIf WeekDay(dtEdate, vbSunday) Then dtEdate = dtEdate - 2 ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From bchacc at san.rr.com Wed Dec 3 11:59:22 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 3 Dec 2003 09:59:22 -0800 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA References: <70F3D727890C784291D8433E9C418F29088548@server.bondsoftware.co.nz> Message-ID: <00f501c3b9c7$2f0038c0$6501a8c0@HAL9002> Thank you Stephen. Rocky ----- Original Message ----- From: "Stephen Bond" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 9:28 AM Subject: RE: [AccessD] Turn Off Windows In Taskbar Through VBA > Access.Application.SetOption "ShowWindowsInTaskbar", False > > Stephen Bond > > > -----Original Message----- > > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > > Sent: Thursday, 4 December 2003 5:38 a.m. > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > > > Dear List: > > > > Does anyone know the syntax for turning off the Windows In > > Taskbar setting through code? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From john at winhaven.net Wed Dec 3 13:02:17 2003 From: john at winhaven.net (John Bartow) Date: Wed, 3 Dec 2003 13:02:17 -0600 Subject: [AccessD] Database Properties Message-ID: How do I set the File's Database Properties via code? Title, Subject, Author, etc. TIA JB From DWUTKA at marlow.com Wed Dec 3 13:06:23 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 3 Dec 2003 13:06:23 -0600 Subject: [AccessD] check weekday Message-ID: <2F8793082E00D4119A1700B0D0216BF80222761E@main2.marlow.com> What's with changing the start of the week from Saturday to Sunday? The second argument of WeekDay tells it where to consider the first day of the week. If you are trying to set a date to Mon - Fri, and you want the date to be Friday if it turns out to be Sat or Sun, then you could do this: Dim dtMyDate As Date dtMyDate=Date() If WeekDay(dtMyDate,2)>5 Then dtMyDate=dtMyDate-WeekDay(dtMyDate,7) That should do it.... Drew -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Wednesday, December 03, 2003 11:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] check weekday is there a shorter way of doing this ? dtEdate = Format(Now() - 3, "mm-dd") If WeekDay(dtEdate, vbSaturday) Then dtEdate = dtEdate - 1 ElseIf WeekDay(dtEdate, vbSunday) Then dtEdate = dtEdate - 2 ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Wed Dec 3 13:09:33 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 3 Dec 2003 11:09:33 -0800 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA References: Message-ID: <010b01c3b9d0$fcb36fe0$6501a8c0@HAL9002> John: As he usually does. But I like to avoid the API calls where possible. And I can't remember why. Rocky ----- Original Message ----- From: "John Bartow" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 9:13 AM Subject: RE: [AccessD] Turn Off Windows In Taskbar Through VBA > Rocky, > Dev's got the answer: > http://www.mvps.org/access/api/api0019.htm > > HTH > JB > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Wednesday, December 03, 2003 10:38 AM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > > > Dear List: > > > > Does anyone know the syntax for turning off the Windows In > > Taskbar setting through code? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Wed Dec 3 13:14:20 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Wed, 3 Dec 2003 14:14:20 -0500 (EST) Subject: [AccessD] check weekday In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222761E@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF80222761E@main2.marlow.com> Message-ID: <10455.12.3.132.98.1070478860.squirrel@heck.bay9.com> thanks a lot, I'll try it > What's with changing the start of the week from Saturday to Sunday? The > second argument of WeekDay tells it where to consider the first day of > the week. If you are trying to set a date to Mon - Fri, and you want > the date to be Friday if it turns out to be Sat or Sun, then you could > do this: > > Dim dtMyDate As Date > dtMyDate=Date() > If WeekDay(dtMyDate,2)>5 Then dtMyDate=dtMyDate-WeekDay(dtMyDate,7) > > That should do it.... > > Drew > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Wednesday, December 03, 2003 11:30 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] check weekday > > > is there a shorter way of doing this ? > > dtEdate = Format(Now() - 3, "mm-dd") > > If WeekDay(dtEdate, vbSaturday) Then > dtEdate = dtEdate - 1 > ElseIf WeekDay(dtEdate, vbSunday) Then > dtEdate = dtEdate - 2 > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From wdhindman at bellsouth.net Wed Dec 3 13:19:57 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 3 Dec 2003 14:19:57 -0500 Subject: [AccessD] Database Properties References: Message-ID: <00f001c3b9d2$705adea0$6101a8c0@dejpolsys> www.colbyconsulting.com has a sample mdb for setting application properties. William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "John Bartow" To: "_DBA-Access" Sent: Wednesday, December 03, 2003 2:02 PM Subject: [AccessD] Database Properties > How do I set the File's Database Properties via code? > > Title, Subject, Author, etc. > > TIA > JB > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Wed Dec 3 13:21:42 2003 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Wed, 03 Dec 2003 13:21:42 -0600 Subject: [AccessD] Re: check weekday In-Reply-To: <200312031800.hB3I0Qc10971@databaseadvisors.com> Message-ID: <5.1.0.14.2.20031203130345.02a8dc20@pop3.highstream.net> IIf(Weekday(Now()-3,[vbsaturday]),Now()-4,IIf(Weekday(Now()-3,[vbsunday]),Now()-5,Now()-3)) Watch for line wrap, but that is the shortest I think I can make it. ;-) At 12:00 PM 12/3/2003 -0600, you wrote: >Date: Wed, 3 Dec 2003 12:30:19 -0500 (EST) >From: >Subject: [AccessD] check weekday >To: >Message-ID: <19836.12.3.132.98.1070472619.squirrel at heck.bay9.com> >Content-Type: text/plain; charset=iso-8859-1 > >is there a shorter way of doing this ? > >dtEdate = Format(Now() - 3, "mm-dd") > >If WeekDay(dtEdate, vbSaturday) Then > dtEdate = dtEdate - 1 >ElseIf WeekDay(dtEdate, vbSunday) Then > dtEdate = dtEdate - 2 From clh at christopherhawkins.com Wed Dec 3 13:33:34 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 3 Dec 2003 12:33:34 -0700 Subject: [AccessD] Bolding a single word in a label? Message-ID: <62570-220031233193334906@christopherhawkins.com> Greetings. I am building a report. I have one particular bit where it would be reeeeeeally convenient to be able to make one particular word in a label be bold. I don't relish the idea of breaking the sentence up into multiple labels, plus I'm curious to see if such a thing is even possible. Who amongst you has done this? I know you're out there someplace... -Christopher- From john at winhaven.net Wed Dec 3 13:39:15 2003 From: john at winhaven.net (John Bartow) Date: Wed, 3 Dec 2003 13:39:15 -0600 Subject: [AccessD] Database Properties In-Reply-To: <00f001c3b9d2$705adea0$6101a8c0@dejpolsys> Message-ID: Thanks William but I don't mean either of these: Application.SetOption "Project Name" DAO.Database.Properties ("Apptitle") I mean the File | Database Properties - Title JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William > Hindman > Sent: Wednesday, December 03, 2003 1:20 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Database Properties > > > www.colbyconsulting.com has a sample mdb for setting application > properties. > > William Hindman > Government is not reason, government is not persuasion, > government is force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "John Bartow" > To: "_DBA-Access" > Sent: Wednesday, December 03, 2003 2:02 PM > Subject: [AccessD] Database Properties > > > > How do I set the File's Database Properties via code? > > > > Title, Subject, Author, etc. > > > > TIA > > JB > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From gustav at cactus.dk Wed Dec 3 12:37:21 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 3 Dec 2003 19:37:21 +0100 Subject: [AccessD] Edit Field Property via Code In-Reply-To: References: Message-ID: <17139967800.20031203193721@cactus.dk> Hi Charlotte > The simplest way to handle it is to send an empty table with the new > structure and code to migrate the data into that structure. However, if > the table is involved in relationships, that may not be as simple as it > seems. You can read the relationships of the old table, copy the data to the new table, create relationships for the new table, delete the old table, then rename the new table. Of course, as Andy notes, if you are working at the limits of a database everything gets more difficult. /gustav From gustav at cactus.dk Wed Dec 3 13:59:29 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 3 Dec 2003 20:59:29 +0100 Subject: [AccessD] Bolding a single word in a label? In-Reply-To: <62570-220031233193334906@christopherhawkins.com> References: <62570-220031233193334906@christopherhawkins.com> Message-ID: <8344894965.20031203205929@cactus.dk> Hi Christopher Have a look: http://www.lebans.com/Report.htm#MixBold string /gustav > I am building a report. I have one particular bit where it would be > reeeeeeally convenient to be able to make one particular word in a > label be bold. I don't relish the idea of breaking the sentence up > into multiple labels, plus I'm curious to see if such a thing is even > possible. From john at winhaven.net Wed Dec 3 14:49:00 2003 From: john at winhaven.net (John Bartow) Date: Wed, 3 Dec 2003 14:49:00 -0600 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA In-Reply-To: <010b01c3b9d0$fcb36fe0$6501a8c0@HAL9002> Message-ID: Rocky, I hear you, but I generally forget to vcheck his site unless someone reminds me :o) Also, A97 doesn't have the "ShowWindowsInTaskbar" option though so its the only way I know how to do it and be consistant. If you're in 2k or above then you don't need it. JB PS: Did you get your TOC troubles solved? > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Wednesday, December 03, 2003 1:10 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Turn Off Windows In Taskbar Through VBA > > > John: > > As he usually does. But I like to avoid the API calls where > possible. And > I can't remember why. > > Rocky > > ----- Original Message ----- > From: "John Bartow" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 03, 2003 9:13 AM > Subject: RE: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > Rocky, > > Dev's got the answer: > > http://www.mvps.org/access/api/api0019.htm > > > > HTH > > JB > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Rocky Smolin - > > > Beach Access Software > > > Sent: Wednesday, December 03, 2003 10:38 AM > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > > > > > > Dear List: > > > > > > Does anyone know the syntax for turning off the Windows In > > > Taskbar setting through code? > > > > > > MTIA, > > > > > > Rocky Smolin > > > Beach Access Software > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From selina at easydatabases.com.au Wed Dec 3 15:19:11 2003 From: selina at easydatabases.com.au (Selina Iddon) Date: Thu, 4 Dec 2003 07:19:11 +1000 Subject: [AccessD] Edit Field Property via Code References: <20031203135457.0D913250915@smithers.nildram.co.uk> Message-ID: <001301c3b9e3$18cc1ad0$6465000a@venus> Thanks Andy and William Cheers Selina ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 10:54 PM Subject: Re: [AccessD] Edit Field Property via Code > Hi Selina > Whilst developing the BEU (which sounds like something you may want to take > a look at if you do this sort of thing a lot - exactly what it was designed > for, see http://www.databaseadvisors.com/downloads.htm) we found that > modifying field lengths was not supported via code. However you can do it > with an ALTER TABLE command in latewr versions of Access. I think it's W2K > onwards that allows it, I just know for sure that A97 doesn't. But that's > where to look. > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: [AccessD] Edit Field Property via Code > Date: 03/12/03 03:42 > > > Good Evening Everyone > I have several databases being used across town and I need to send out an > update which will increase an existing text field size 15 characters to be > 25 characters. I can add fields, but cannot figure out how to edit them. > If someone could help I would truely appreciate it. > Thanks heaps > Selina > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Wed Dec 3 15:45:09 2003 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 3 Dec 2003 22:45:09 +0100 Subject: [AccessD] Format Valuta Message-ID: <000801c3b9e6$e1ece040$f3c581d5@pedro> Hello Group, in an If statement i want to format a currency field so that the Euro sign is shown in an unbound textbox. I tried: If chbUitz = True Then Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") works as a control source. Why doesnt it work now? TIA Pedro Janssen From bchacc at san.rr.com Wed Dec 3 15:59:51 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Wed, 3 Dec 2003 13:59:51 -0800 Subject: [AccessD] Turn Off Windows In Taskbar Through VBA References: Message-ID: <016b01c3b9e8$c6d56190$6501a8c0@HAL9002> TOC: I had two approaches both of which would have worked. But getting the title onto the page was so frustrating that I gave up. For the present. There's a 'Reports Appendix' entry in the TOC with a page number and the reports are numbered consecutively. So I figure if I refer to 'Report 26 - Work-In-Process' in the manual it shouldn't be any harder to find by just turning to the Reports Appendix itself than going to the TOC and finding what page 'Report 26- Work-In-Process' and then going to that page. Anyway, it's hard to get through the day without at least one good rationalization. So there's mine for today. Rocky ----- Original Message ----- From: "John Bartow" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 12:49 PM Subject: RE: [AccessD] Turn Off Windows In Taskbar Through VBA > Rocky, > I hear you, but I generally forget to vcheck his site unless someone reminds > me :o) > > Also, A97 doesn't have the "ShowWindowsInTaskbar" option though so its the > only way I know how to do it and be consistant. > > If you're in 2k or above then you don't need it. > > JB > PS: Did you get your TOC troubles solved? > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Wednesday, December 03, 2003 1:10 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > > > John: > > > > As he usually does. But I like to avoid the API calls where > > possible. And > > I can't remember why. > > > > Rocky > > > > ----- Original Message ----- > > From: "John Bartow" > > To: "Access Developers discussion and problem solving" > > > > Sent: Wednesday, December 03, 2003 9:13 AM > > Subject: RE: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > > > > Rocky, > > > Dev's got the answer: > > > http://www.mvps.org/access/api/api0019.htm > > > > > > HTH > > > JB > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > > Rocky Smolin - > > > > Beach Access Software > > > > Sent: Wednesday, December 03, 2003 10:38 AM > > > > To: AccessD at databaseadvisors.com > > > > Subject: [AccessD] Turn Off Windows In Taskbar Through VBA > > > > > > > > > > > > Dear List: > > > > > > > > Does anyone know the syntax for turning off the Windows In > > > > Taskbar setting through code? > > > > > > > > MTIA, > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Lambert.Heenan at AIG.com Wed Dec 3 16:01:09 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 3 Dec 2003 17:01:09 -0500 Subject: [AccessD] Format Valuta Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7A73@xlivmbx12.aig.com> Any reason that you don't just set the textbox's Format property in the form's design view? > -----Original Message----- > From: Pedro Janssen [SMTP:pedro at plex.nl] > Sent: Wednesday, December 03, 2003 4:45 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Format Valuta > > Hello Group, > > in an If statement i want to format a currency field so that the Euro sign > is shown in an unbound textbox. > > I tried: > > If chbUitz = True Then > Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") > > Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") > works as a control source. > Why doesnt it work now? > > TIA > > > Pedro Janssen > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DMcAfee at haascnc.com Wed Dec 3 16:18:01 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Wed, 3 Dec 2003 14:18:01 -0800 Subject: [AccessD] Format Valuta Message-ID: <657FB70438B7D311AF320090279C1801026D7D4D@EXCHMAIL> In a db that I distribute to my European distributors, I simply set the field format to Euro. The following works in debug, so I couldn't see why you couldn't use it in a query: ? Format("333.03","EUR##000.00") For your example: Me.txtPrijs1 = Format([Forms]![frmExample]![txtTest], "EUR##000.00") HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Wednesday, December 03, 2003 1:45 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Format Valuta Hello Group, in an If statement i want to format a currency field so that the Euro sign is shown in an unbound textbox. I tried: If chbUitz = True Then Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") works as a control source. Why doesnt it work now? TIA Pedro Janssen From pedro at plex.nl Wed Dec 3 16:17:32 2003 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 3 Dec 2003 23:17:32 +0100 Subject: [AccessD] Format Valuta References: <000801c3b9e6$e1ece040$f3c581d5@pedro> Message-ID: <000b01c3b9eb$407ef0e0$f3c581d5@pedro> Hello Thanks for the answers already, but suddenly i remembert a similar question from me a few months ago. Gustav Brock then suggested ........ , "currency"). I tried this and it works. What i don't understand, why is "Valuta" working on a unbound textbox as control source, but doesn't work in the if statement in code???? Pedro ----- Original Message ----- From: "Pedro Janssen" To: Sent: Wednesday, December 03, 2003 10:45 PM Subject: [AccessD] Format Valuta > Hello Group, > > in an If statement i want to format a currency field so that the Euro sign is shown in an unbound textbox. > > I tried: > > If chbUitz = True Then > Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") > > Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") > works as a control source. > Why doesnt it work now? > > TIA > > > Pedro Janssen > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > From pedro at plex.nl Wed Dec 3 16:18:57 2003 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 3 Dec 2003 23:18:57 +0100 Subject: [AccessD] Format Valuta References: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7A73@xlivmbx12.aig.com> Message-ID: <001501c3b9eb$72c45b30$f3c581d5@pedro> When i set the textbox Format property i get no Euro sign as result. Pedro ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 03, 2003 11:01 PM Subject: RE: [AccessD] Format Valuta > Any reason that you don't just set the textbox's Format property in the > form's design view? > > > -----Original Message----- > > From: Pedro Janssen [SMTP:pedro at plex.nl] > > Sent: Wednesday, December 03, 2003 4:45 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Format Valuta > > > > Hello Group, > > > > in an If statement i want to format a currency field so that the Euro sign > > is shown in an unbound textbox. > > > > I tried: > > > > If chbUitz = True Then > > Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") > > > > Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") > > works as a control source. > > Why doesnt it work now? > > > > TIA > > > > > > Pedro Janssen > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From DMcAfee at haascnc.com Wed Dec 3 16:33:53 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Wed, 3 Dec 2003 14:33:53 -0800 Subject: [AccessD] Format Valuta Message-ID: <657FB70438B7D311AF320090279C1801026D7D4E@EXCHMAIL> The "EUR##000.00" is wrong, the clipboard modified it, I didnt catch it until my message came through. it should read as: ? Format("333.03","EUR##000.00") -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David McAfee Sent: Wednesday, December 03, 2003 2:18 PM To: 'Access Developers discussion and problem solving' Cc: 'pedro at plex.nl' Subject: RE: [AccessD] Format Valuta In a db that I distribute to my European distributors, I simply set the field format to Euro. The following works in debug, so I couldn't see why you couldn't use it in a query: ? Format("333.03","EUR##000.00") For your example: Me.txtPrijs1 = Format([Forms]![frmExample]![txtTest], "EUR##000.00") HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Wednesday, December 03, 2003 1:45 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Format Valuta Hello Group, in an If statement i want to format a currency field so that the Euro sign is shown in an unbound textbox. I tried: If chbUitz = True Then Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") works as a control source. Why doesnt it work now? TIA Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DMcAfee at haascnc.com Wed Dec 3 16:34:44 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Wed, 3 Dec 2003 14:34:44 -0800 Subject: [AccessD] Format Valuta Message-ID: <657FB70438B7D311AF320090279C1801026D7D4F@EXCHMAIL> What version are you using? IIRC, A97 didn't support it but A2K does (not sure about later versions) David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Wednesday, December 03, 2003 2:19 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Format Valuta When i set the textbox Format property i get no Euro sign as result. Pedro ----- Original Message ----- From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 03, 2003 11:01 PM Subject: RE: [AccessD] Format Valuta > Any reason that you don't just set the textbox's Format property in the > form's design view? > > > -----Original Message----- > > From: Pedro Janssen [SMTP:pedro at plex.nl] > > Sent: Wednesday, December 03, 2003 4:45 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Format Valuta > > > > Hello Group, > > > > in an If statement i want to format a currency field so that the Euro sign > > is shown in an unbound textbox. > > > > I tried: > > > > If chbUitz = True Then > > Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") > > > > Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") > > works as a control source. > > Why doesnt it work now? > > > > TIA > > > > > > Pedro Janssen > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DMcAfee at haascnc.com Wed Dec 3 16:50:43 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Wed, 3 Dec 2003 14:50:43 -0800 Subject: [AccessD] Format Valuta Message-ID: <657FB70438B7D311AF320090279C1801026D7D50@EXCHMAIL> lol! Outlook must be the one modifying the Euro symbol, I'm trying this time by sending the mail in HTML format. Format("333.03","EUR##000.00") -----Original Message----- From: accessd-bounces at databaseadvisors.com [ mailto:accessd-bounces at databaseadvisors.com ]On Behalf Of David McAfee Sent: Wednesday, December 03, 2003 2:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Format Valuta The "EUR##000.00" is wrong, the clipboard modified it, I didn't catch it until my message came through. it should read as: ? Format("333.03","EUR##000.00") -----Original Message----- From: accessd-bounces at databaseadvisors.com [ mailto:accessd-bounces at databaseadvisors.com ]On Behalf Of David McAfee Sent: Wednesday, December 03, 2003 2:18 PM To: 'Access Developers discussion and problem solving' Cc: 'pedro at plex.nl' Subject: RE: [AccessD] Format Valuta In a db that I distribute to my European distributors, I simply set the field format to Euro. The following works in debug, so I couldn't see why you couldn't use it in a query: ? Format("333.03","EUR##000.00") For your example: Me.txtPrijs1 = Format([Forms]![frmExample]![txtTest], "EUR##000.00") HTH David McAfee -----Original Message----- From: accessd-bounces at databaseadvisors.com [ mailto:accessd-bounces at databaseadvisors.com ]On Behalf Of Pedro Janssen Sent: Wednesday, December 03, 2003 1:45 PM To: AccessD at databaseadvisors.com Subject: [AccessD] Format Valuta Hello Group, in an If statement i want to format a currency field so that the Euro sign is shown in an unbound textbox. I tried: If chbUitz = True Then Me!txtPrijs1 = Format([Forms]![frmExample]![txtTest], "Valuta") Normally, = Format([Forms]![frmExample]![txtTest], "Valuta") works as a control source. Why doesnt it work now? TIA Pedro Janssen _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Wed Dec 3 22:39:12 2003 From: askolits at ot.com (John Skolits) Date: Wed, 3 Dec 2003 23:39:12 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar In-Reply-To: <20115079.1070362831314.JavaMail.www@wwinf3005> Message-ID: When you run Replication Manager, it starts the synchronizer. It then places the Synchronizer Icon in the taskbar as a button. I want to put that button as an icon only in the area located in the lower right hand corner of the desktop near the clock. What's this area called? Is there a registry key that puts items there? How can I put the synchronizer icon there when it's running? Thanks, John Skolits From askolits at ot.com Wed Dec 3 22:56:41 2003 From: askolits at ot.com (John Skolits) Date: Wed, 3 Dec 2003 23:56:41 -0500 Subject: [AccessD] Sagekey software - opinions please In-Reply-To: Message-ID: I've also have good success with the Sagekey scripts. The applications I deploy uses many dlls and ocx's. They integrates with Excel, outlook/outlook express and ODBC connections to SQL Server. The apps are installed on practically all the MS platforms. And I have yet to run into any major issues with the Sage scripts. If I had a problem it was usually my error (I didn't have latest Access Service Release installed, latest version of Internet Explorer loaded or the latest MDAC version) And yes, they do have excellent support. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, December 02, 2003 11:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sagekey software - opinions please We use it over a wide variety of platforms, including WinXP both for 97 apps and for XP apps. It's a wonderful product and their support is excellent. However, someone in your organization will have to become familiar with the SageKey scripts because you will undoubtedly need to tweak them occasionally. Charlotte Foust -----Original Message----- From: connie.kamrowski at agric.nsw.gov.au [mailto:connie.kamrowski at agric.nsw.gov.au] Sent: Monday, December 01, 2003 7:22 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sagekey software - opinions please Hi all, We are looking at Sagekey software at the moment for use in our corporation which operates on a WAN with both win 98 and winXP machines. I am using the sagekey for access97 software. Just wondering if anyone has used sagekey to deploy access97 apps over win98 and winXP machines. Any thoughts and issues you encountered would be appreciated. Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at eunet.yu Thu Dec 4 00:40:48 2003 From: viner at eunet.yu (Ervin Brindza) Date: Thu, 4 Dec 2003 07:40:48 +0100 Subject: [AccessD] Disable undo function from VBA. References: <46B976F2B698FF46A4FE7636509B22DF6DE0@stekelbes.ithelps.local> Message-ID: <00b301c3ba31$9c65ffc0$0100a8c0@razvoj> > It's the first time I ever noticed a user using undo saved record... > How can I turn this off? Erwin, the: DoCmd.RunCommand acCmdSave DoCmd.Close DoCmd.OpenForm YourFormName works for me :) E. From viner at eunet.yu Thu Dec 4 01:38:32 2003 From: viner at eunet.yu (Ervin Brindza) Date: Thu, 4 Dec 2003 08:38:32 +0100 Subject: [AccessD] Reserved error (-1517);there is no message for this error. Message-ID: <002a01c3ba39$a3a1d4a0$0100a8c0@razvoj> Access97 suddenly my combo boxes repulse the work, with an above error message. Thanks God I have very fresh back up, but maybe somebody some info for next generations... Ervin From gustav at cactus.dk Thu Dec 4 02:15:42 2003 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 4 Dec 2003 09:15:42 +0100 Subject: [AccessD] Format Valuta In-Reply-To: <000b01c3b9eb$407ef0e0$f3c581d5@pedro> References: <000801c3b9e6$e1ece040$f3c581d5@pedro> <000b01c3b9eb$407ef0e0$f3c581d5@pedro> Message-ID: <1162774639.20031204091542@cactus.dk> Hi Pedro > Hello Thanks for the answers already, > but suddenly i remembert a similar question from me a few months ago. > Gustav Brock then suggested ........ , "currency"). > I tried this and it works. > What i don't understand, why is "Valuta" working on a unbound textbox as > control source, but doesn't work in the if statement in code???? That's because you probably run not the US version but a localized version of Access. In the GUI localized wording is used while code must always be in US English. /gustav From martyconnelly at shaw.ca Thu Dec 4 02:23:44 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Dec 2003 00:23:44 -0800 Subject: [AccessD] Reserved error (-1517);there is no message for this error. References: <002a01c3ba39$a3a1d4a0$0100a8c0@razvoj> Message-ID: <3FCEEF10.5040207@shaw.ca> Have a look at Tony Toews site Looks like a cache link problem http://www.granite.ab.ca/access/reservederror1517.htm and http://www.granite.ab.ca/access/ Ervin Brindza wrote: >Access97 >suddenly my combo boxes repulse the work, with an above error message. Thanks God I have very fresh back up, but maybe somebody some info for next generations... >Ervin >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada 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: [AccessD] 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 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: [AccessD] [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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 4 04:38:09 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Dec 2003 11:38:09 +0100 Subject: [AccessD] Why is using "=" faster than "LIKE" in Dlookup or elsewhere? Message-ID: <46B976F2B698FF46A4FE7636509B22DF6DE4@stekelbes.ithelps.local> I was just dooing some stuff when I noticed this. Using the = sign is much much faster in retrieving the ID than using LIKE in the line below. using "=" is instantly, using "LIKE" is something between half a second and a second. DLookup("HTML_LID", "HTML_PageTable", "[ReceiveDateAndFileInArchiveDir]=" & Chr(34) & oItem.ReceivedTime & Chr(8) & oItem.EntryID & Chr(34)) Correct me if I'm wrong but is the reason that "=" uses a bitcompare and "LIKE" a databasecompare? meaning using "=" "a" <> "A" using "LIKE" "a" = "A" Erwin Craps Zaakvoerder www.ithelps.be/jonathan This E-mail is confidential, may be legally privileged, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence. Please delete if obtained in error and E-mail confirmation to the sender. IT Helps - I.T. Help Center *** Box Office Belgium & Luxembourg www.ithelps.be * www.boxoffice.be * www.stadleuven.be IT Helps bvba* ** Mercatorpad 3 ** 3000 Leuven IT Helps * Phone: +32 16 296 404 * Fax: +32 16 296 405 E-mail: Info at ithelps.be Box Office ** Fax: +32 16 296 406 ** Box Office E-mail: Staff at boxoffice.be From Erwin.Craps at ithelps.be Thu Dec 4 04:41:53 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Dec 2003 11:41:53 +0100 Subject: [AccessD] Format Valuta Message-ID: <46B976F2B698FF46A4FE7636509B22DF728E@stekelbes.ithelps.local> Ah I can tell you that.... There is a difference in reserved words in international versions of Access. Valuta is the reserved word in another access language version (dutch, french etc). Currency is the reserved word in VBA....works in all version. Stuff to watch out for. I'm not even sure if you use "Valuta" on a textbox that this will work if you use the database in another language version of Access.... Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: donderdag 4 december 2003 9:16 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Format Valuta Hi Pedro > Hello Thanks for the answers already, > but suddenly i remembert a similar question from me a few months ago. > Gustav Brock then suggested ........ , "currency"). > I tried this and it works. > What i don't understand, why is "Valuta" working on a unbound textbox > as control source, but doesn't work in the if statement in code???? That's because you probably run not the US version but a localized version of Access. In the GUI localized wording is used while code must always be in US English. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Dec 4 04:55:34 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 11:55:34 +0100 (CET) Subject: [AccessD] Access Toolbars Message-ID: <11269511.1070535334454.JavaMail.www@wwinf3004> To all, For the life of me I can?t see how to hide an Access toolbar via VBA code, I?m pretty sure you can do it. Basically I want to hide all the built in Access toolbars when the user logs into the application, and only display my custom ones. Could somebody please save my brainache and tell e how to do this . Thanks in advance (once more forever in debt to the list) 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 05:11:54 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 12:11:54 +0100 (CET) Subject: [AccessD] AccessXP and Server 2003 Message-ID: <16814712.1070536314718.JavaMail.www@wwinf3004> Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From andy at minstersystems.co.uk Thu Dec 4 05:26:55 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Dec 2003 11:26:55 -0000 Subject: [AccessD] Access Toolbars In-Reply-To: <11269511.1070535334454.JavaMail.www@wwinf3004> Message-ID: <01bd01c3ba59$862df3c0$b274d0d5@minster33c3r25> Paul DoCmd.ShowToolbar "xxx", acToolbarNo HTH Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 04 December 2003 10:56 > To: accessd > Subject: [AccessD] Access Toolbars > > > To all, > > For the life of me I can?t see how to hide an Access toolbar > via VBA code, I?m pretty sure you can do it. Basically I > want to hide all the built in Access toolbars when the user > logs into the application, and only display my custom ones. > > Could somebody please save my brainache and tell e how to do this . > > Thanks in advance (once more forever in debt to the list) > > Paul Hartland > Database Designer/Developer. > Freeserve AnyTime - HALF PRICE for the first 3 months - Save > ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > From stuart at lexacorp.com.pg Thu Dec 4 05:31:12 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 04 Dec 2003 21:31:12 +1000 Subject: [AccessD] Why is using "=" faster than "LIKE" in Dlookup or elsewhere? In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF6DE4@stekelbes.ithelps.local> Message-ID: <3FCFA7A0.12268.158A37@localhost> On 4 Dec 2003 at 11:38, Erwin Craps - IT Helps wrote: > I was just dooing some stuff when I noticed this. > > Using the = sign is much much faster in retrieving the ID than using > LIKE in the line below. > using "=" is instantly, using "LIKE" is something between half a second > and a second. > > DLookup("HTML_LID", "HTML_PageTable", > "[ReceiveDateAndFileInArchiveDir]=" & Chr(34) & oItem.ReceivedTime & > Chr(8) & oItem.EntryID & Chr(34)) > > > Correct me if I'm wrong but is the reason that "=" uses a bitcompare and > "LIKE" a databasecompare? > > meaning > using "=" > "a" <> "A" > > using "LIKE" > "a" = "A" > Both "=" and "Like" can use binary or database compare so quite frequently "a" ="A" as well. The difference is that "=" does a straight comparison of strings, "Like" can use wildcards and limited regular expressions, so there is a lot of overhead in parsing the comparison string, whether you are actually using these extended capabilities or not. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From starkey at wanadoo.nl Thu Dec 4 05:42:24 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Thu, 4 Dec 2003 12:42:24 +0100 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: <00b301c3ba31$9c65ffc0$0100a8c0@razvoj> Message-ID: Correct me if I'm wrong but wouldn't this imply that you close and open the form every time a new value in a record is changed?:-) Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Ervin Brindza Sent: donderdag 4 december 2003 07:41 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. > It's the first time I ever noticed a user using undo saved record... > How can I turn this off? Erwin, the: DoCmd.RunCommand acCmdSave DoCmd.Close DoCmd.OpenForm YourFormName works for me :) E. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 12:42:24 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From starkey at wanadoo.nl Thu Dec 4 05:47:59 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Thu, 4 Dec 2003 12:47:59 +0100 Subject: [AccessD] Format Valuta In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF728E@stekelbes.ithelps.local> Message-ID: In addition from a developers point of view it would be best to use a naming convention like leszinsky orso. Eg. your textbox Currency would be named txtCurrency... I believe there even is a naming convention (referral) on the Access Developers website but I'm not sure:-) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: donderdag 4 december 2003 11:42 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Format Valuta Ah I can tell you that.... There is a difference in reserved words in international versions of Access. Valuta is the reserved word in another access language version (dutch, french etc). Currency is the reserved word in VBA....works in all version. Stuff to watch out for. I'm not even sure if you use "Valuta" on a textbox that this will work if you use the database in another language version of Access.... Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: donderdag 4 december 2003 9:16 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Format Valuta Hi Pedro > Hello Thanks for the answers already, > but suddenly i remembert a similar question from me a few months ago. > Gustav Brock then suggested ........ , "currency"). > I tried this and it works. > What i don't understand, why is "Valuta" working on a unbound textbox > as control source, but doesn't work in the if statement in code???? That's because you probably run not the US version but a localized version of Access. In the GUI localized wording is used while code must always be in US English. /gustav _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 12:47:59 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From starkey at wanadoo.nl Thu Dec 4 06:00:53 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Thu, 4 Dec 2003 13:00:53 +0100 Subject: [AccessD] [dba-VB] Creating a desktop shortcut via Visual Basic 6.0 In-Reply-To: <28452598.1070528565580.JavaMail.www@wwinf3006> Message-ID: Hi Paul, I found this code on the inet: (it needs a reference to the filesystem object (Windows scripting)) Set wShortcut = wShell.CreateShortcut(wShell.SpecialFolders.Item(0) & "\" & App.Title & ".lnk") wShortcut.TargetPath = App.Path & "\" & App.EXEName & ".exe" wShortcut.Save Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: donderdag 4 december 2003 10:03 To: dba-vb Cc: accessd Subject: [AccessD] [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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 13:00:53 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From Erwin.Craps at ithelps.be Thu Dec 4 06:10:29 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Dec 2003 13:10:29 +0100 Subject: [AccessD] Why is using "=" faster than "LIKE" in Dlookup orelsewhere? Message-ID: <46B976F2B698FF46A4FE7636509B22DF6DE5@stekelbes.ithelps.local> Aha.... Better take a look at al my slow running code... This would explain why I noticed a long time ago that I had a huge diference in run time of a function that runs trough a large recordset. At a moment I found out that Findfirst runs very much slower than Dlookup. I tought it came from having multiple parameters but what you are saying would clearly explain my experiances from 2 years ago. I probably would have mixed "=" and "like" in my tests. Makes all sense now, it did took me two years.... He he -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Stuart McLachlan Verzonden: donderdag 4 december 2003 12:31 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Why is using "=" faster than "LIKE" in Dlookup orelsewhere? On 4 Dec 2003 at 11:38, Erwin Craps - IT Helps wrote: > I was just dooing some stuff when I noticed this. > > Using the = sign is much much faster in retrieving the ID than using > LIKE in the line below. using "=" is instantly, using "LIKE" is > something between half a second and a second. > > DLookup("HTML_LID", "HTML_PageTable", > "[ReceiveDateAndFileInArchiveDir]=" & Chr(34) & oItem.ReceivedTime & > Chr(8) & oItem.EntryID & Chr(34)) > > > Correct me if I'm wrong but is the reason that "=" uses a bitcompare > and "LIKE" a databasecompare? > > meaning > using "=" > "a" <> "A" > > using "LIKE" > "a" = "A" > Both "=" and "Like" can use binary or database compare so quite frequently "a" ="A" as well. The difference is that "=" does a straight comparison of strings, "Like" can use wildcards and limited regular expressions, so there is a lot of overhead in parsing the comparison string, whether you are actually using these extended capabilities or not. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 4 06:11:21 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Dec 2003 13:11:21 +0100 Subject: [AccessD] AccessXP and Server 2003 Message-ID: <46B976F2B698FF46A4FE7636509B22DF7290@stekelbes.ithelps.local> noop -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens paul.hartland at fsmail.net Verzonden: donderdag 4 december 2003 12:12 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] AccessXP and Server 2003 Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From viner at eunet.yu Thu Dec 4 06:34:51 2003 From: viner at eunet.yu (Ervin Brindza) Date: Thu, 4 Dec 2003 13:34:51 +0100 Subject: [AccessD] Disable undo function from VBA. References: Message-ID: <004f01c3ba63$23103820$0100a8c0@razvoj> ----- Original Message ----- From: "StaRKeY" To: "Access Developers discussion and problem solving" Sent: 04 December, 2003 12:42 PM Subject: RE: [AccessD] Disable undo function from VBA. > Correct me if I'm wrong but wouldn't this imply that you close and open the > form every time a new value in a record is changed?:-) > Erwin wrote: "When printing I programaticaly give the invoice a number and save the record." So, I think to close the form, only in the OnClick event of a command button. And that have to be rarely... And after the printing I suppose that the invoice is finished so the code can be even simpler: DoCmd.RunCommand acCmdSave DoCmd.Close but Erwin will decide :) Ervin From tinanfields at torchlake.com Thu Dec 4 06:43:04 2003 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 04 Dec 2003 07:43:04 -0500 Subject: [AccessD] Access - VB.Net conflict Message-ID: <3FCF2BD8.70005@torchlake.com> Hi All, A couple of weeks ago, I started to lead a lesson on using Access Pivot Table view, but couldn't, because the drop areas didn't show. Switched to the Pivot Chart view, where the drop areas did show, but would not accept any fields. After some searching, our IT team discovered that this conflict exists only on the computers that have VB.Net installed. While they are working out the solution to the conflict, my class has been moved down the hall to a room where VB.Net is not installed. Had anyone else come across this conflict? I will try to stay on top of how the conflict gets resolved and come back to this list with the answer when we have it. Tina From michael.mattys at adelphia.net Thu Dec 4 06:57:16 2003 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Thu, 4 Dec 2003 07:57:16 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar References: Message-ID: <023e01c3ba66$25ed3900$6401a8c0@default> John, The area is Systray. You need to look up the api Shell_NotifyIcon Dev Ashish might even have it for Access. Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 11:39 PM Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > When you run Replication Manager, it starts the synchronizer. It then places > the Synchronizer Icon in the taskbar as a button. I want to put that button > as an icon only in the area located in the lower right hand corner of the > desktop near the clock. > > What's this area called? > Is there a registry key that puts items there? > How can I put the synchronizer icon there when it's running? > > Thanks, > > John Skolits > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 4 06:58:07 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 4 Dec 2003 13:58:07 +0100 Subject: [AccessD] Disable undo function from VBA. Message-ID: <46B976F2B698FF46A4FE7636509B22DF6DE6@stekelbes.ithelps.local> I'm busy testing some stuff, like using the me.recordset and edit/update the fields instead of the controls on a form. I also looked at the undo event of the form, but that doesn't work neither... What I really would like to have is some kind of "Clear the undo cache" function. I'll let you know what. Closing form and opening again is not an option for me. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza Verzonden: donderdag 4 december 2003 13:35 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] Disable undo function from VBA. ----- Original Message ----- From: "StaRKeY" To: "Access Developers discussion and problem solving" Sent: 04 December, 2003 12:42 PM Subject: RE: [AccessD] Disable undo function from VBA. > Correct me if I'm wrong but wouldn't this imply that you close and > open the > form every time a new value in a record is changed?:-) > Erwin wrote: "When printing I programaticaly give the invoice a number and save the record." So, I think to close the form, only in the OnClick event of a command button. And that have to be rarely... And after the printing I suppose that the invoice is finished so the code can be even simpler: DoCmd.RunCommand acCmdSave DoCmd.Close but Erwin will decide :) Ervin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Thu Dec 4 07:11:42 2003 From: askolits at ot.com (John Skolits) Date: Thu, 4 Dec 2003 08:11:42 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar In-Reply-To: <023e01c3ba66$25ed3900$6401a8c0@default> Message-ID: I always thought the area on the bottom left, next to the 'Start' menu icon was the systray. Is that area then the IconTray or something like that? I'll check out Dev's site. Thanks! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R Mattys Sent: Thursday, December 04, 2003 7:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the taskbar John, The area is Systray. You need to look up the api Shell_NotifyIcon Dev Ashish might even have it for Access. Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 03, 2003 11:39 PM Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > When you run Replication Manager, it starts the synchronizer. It then places > the Synchronizer Icon in the taskbar as a button. I want to put that button > as an icon only in the area located in the lower right hand corner of the > desktop near the clock. > > What's this area called? > Is there a registry key that puts items there? > How can I put the synchronizer icon there when it's running? > > Thanks, > > John Skolits > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Dec 4 07:23:58 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 14:23:58 +0100 (CET) Subject: [AccessD] Making Labels Visible & Invisible Message-ID: <6000268.1070544238367.JavaMail.www@wwinf3002> To all, I have a group of labels on a form called lblComment1 through to lblComment15, and what I want to do is in the OnCurrentEvent make them all invisible. I don?t really want to have to type Me.lblComment1.Visible = False etc for every label Is there a way I can do this in a loop, or make the labels into an array and loop through them that way. Thanks in advance for any help on this. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From michael.mattys at adelphia.net Thu Dec 4 07:35:24 2003 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Thu, 4 Dec 2003 08:35:24 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar References: Message-ID: <025601c3ba6b$799d8820$6401a8c0@default> Yep, it's there http://www.mvps.org/access/api/api0045.htm Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 8:11 AM Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar > I always thought the area on the bottom left, next to the 'Start' menu icon > was the systray. Is that area then the IconTray or something like that? > > I'll check out Dev's site. > > Thanks! > > John > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, December 04, 2003 7:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the > taskbar > > > John, > > The area is Systray. > You need to look up the api Shell_NotifyIcon > Dev Ashish might even have it for Access. > > Michael R. Mattys > Try MattysMapLib for MapPoint at > www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John Skolits" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 03, 2003 11:39 PM > Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > > > > When you run Replication Manager, it starts the synchronizer. It then > places > > the Synchronizer Icon in the taskbar as a button. I want to put that > button > > as an icon only in the area located in the lower right hand corner of the > > desktop near the clock. > > > > What's this area called? > > Is there a registry key that puts items there? > > How can I put the synchronizer icon there when it's running? > > > > Thanks, > > > > John Skolits > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 4 07:35:43 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 05:35:43 -0800 Subject: [AccessD] Access Toolbars References: <01bd01c3ba59$862df3c0$b274d0d5@minster33c3r25> Message-ID: <001e01c3ba6b$84765380$6501a8c0@HAL9002> Paul: I also use Me.MenuBar = "=1" to make a 'clean screen' but that's the menu bar. Rocky Smolin Beach Access Software ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Thursday, December 04, 2003 3:26 AM Subject: RE: [AccessD] Access Toolbars > Paul > > DoCmd.ShowToolbar "xxx", acToolbarNo > > HTH > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > paul.hartland at fsmail.net > > Sent: 04 December 2003 10:56 > > To: accessd > > Subject: [AccessD] Access Toolbars > > > > > > To all, > > > > For the life of me I can't see how to hide an Access toolbar > > via VBA code, I'm pretty sure you can do it. Basically I > > want to hide all the built in Access toolbars when the user > > logs into the application, and only display my custom ones. > > > > Could somebody please save my brainache and tell e how to do this... > > > > Thanks in advance (once more forever in debt to the list) > > > > Paul Hartland > > Database Designer/Developer. > > Freeserve AnyTime - HALF PRICE for the first 3 months - Save > > ?7.50 a month > > www.freeserve.com/anytime > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Thu Dec 4 07:36:48 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 4 Dec 2003 13:36:48 -0000 Subject: [AccessD] Making Labels Visible & Invisible In-Reply-To: <6000268.1070544238367.JavaMail.www@wwinf3002> Message-ID: <01f901c3ba6b$ab1ff090$b274d0d5@minster33c3r25> Paul For intC=1 to 15 me("lblComment" & intc).Visible=False Next HTH Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 04 December 2003 13:24 > To: accessd > Subject: [AccessD] Making Labels Visible & Invisible > > > To all, > > I have a group of labels on a form called lblComment1 through > to lblComment15, and what I want to do is in the > OnCurrentEvent make them all invisible. I don?t really want > to have to type > > Me.lblComment1.Visible = False > > etc for every label > > Is there a way I can do this in a loop, or make the labels > into an array and loop through them that way. > > Thanks in advance for any help on this. > > Paul Hartland > Freeserve AnyTime - HALF PRICE for the first 3 months - Save > ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > From Alun.Garraway at otto.de Thu Dec 4 07:40:08 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Thu, 4 Dec 2003 14:40:08 +0100 Subject: AW: [AccessD] Making Labels Visible & Invisible Message-ID: hi try something like this.... For i = 1 To n Me("MtTextbox" & i).Visible = False Next i hth alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von paul.hartland at fsmail.net Gesendet: Donnerstag, 4. Dezember 2003 14:24 An: accessd Betreff: [AccessD] Making Labels Visible & Invisible To all, I have a group of labels on a form called lblComment1 through to lblComment15, and what I want to do is in the OnCurrentEvent make them all invisible. I don't really want to have to type Me.lblComment1.Visible = False etc for every label......... Is there a way I can do this in a loop, or make the labels into an array and loop through them that way. Thanks in advance for any help on this. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 4 07:48:18 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 08:48:18 -0500 Subject: [AccessD] Making Labels Visible & Invisible In-Reply-To: <6000268.1070544238367.JavaMail.www@wwinf3002> Message-ID: Sure, do something like (NOT compiled / tested) Dim colLabel As Collection Function CollectLabels() Set colLabel = New Collection colLabel.Add CL_Client_Label colLabel.Add Product_Label colLabel.Add Label85 colLabel.Add Label116 End Function Private Sub Form_Open(Cancel As Integer) CollectLabels end sub Function SetLblVisible(col As Collection, blnVisible As Boolean) Dim obj As Object For Each obj In col obj.Visible = blnVisible Next obj End Function Private Sub Command131_Click() Static blnVisible As Boolean SetLblVisible colLabel, blnVisible blnVisible = Not blnVisible End Sub The form Open collects all the labels into a collection. The button passes the collection and a boolean value for the visible property into a function which iterates the collection and sets the object's visible property to whatever you pass in. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Thursday, December 04, 2003 8:24 AM To: accessd Subject: [AccessD] Making Labels Visible & Invisible To all, I have a group of labels on a form called lblComment1 through to lblComment15, and what I want to do is in the OnCurrentEvent make them all invisible. I don?t really want to have to type Me.lblComment1.Visible = False etc for every label Is there a way I can do this in a loop, or make the labels into an array and loop through them that way. Thanks in advance for any help on this. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Dec 4 08:16:14 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 4 Dec 2003 14:16:14 -0000 Subject: [AccessD] MSDE References: Message-ID: <002d01c3ba71$2d3318a0$9111758f@aine> Theres always some confusion about the performance of MSDE. This is an extraxt from a MS document I came across this morning whcih explains how the software is restricted. As can be seen the limits refer to the number of operations not the number of users. The Microsoft SQL Server 2000 workload governor is designed to limit the performance of an instance of the database engine any time more than eight operations are active at the same time. An instance of the SQL Server 2000 database engine is one copy of the database software that operates as an operating system service. The operations counted by the workload governor include: a.. Processing a request to open an inbound connection and login. b.. Processing a batch of one or more Transact-SQL statements received over an inbound connection. c.. Processing a distributed transaction operation, such as a prepare-to-commit or rollback operation. d.. Processing a request to log off and close an inbound connection. a.. Periodic system-generated operations such as shrinking a database if the database has the AUTO_SHRINK option turned on, completing the deletion of rows from the base level of indexes, or populating the SQL Server performance counters in the System Monitor. b.. Instances of SQL Server 2000 Personal Edition will also periodically generate system operations to process any full-text indexes referenced by the databases managed by the instance. SQL Server 2000 Desktop Engine (MSDE 2000) does not support full-text indexes. Like all versions of SQL Server 2000, SQL Server 2000 Personal Edition and MSDE 2000 allow 32,767 connections to an instance of the database engine. There is no limit for the number of connections that can be executing operations at the same time. The only effect of the workload governor is that it starts slowing down the database engine when more than eight operations are actively running at the same time. Once it has been activated, the workload governor limits performance by stalling a user connection for a few milliseconds each time the connection requests a logical read or write on any of the pages in the data files of a database. (The governor does not affect log files.) The database engine waits before every data page reference as long as there are more than eight active concurrent operations. When the number of active operations is eight or lower, the database engine does not wait before scheduling any reads or writes. When the workload governor is active, it equally affects all connections; it is not limited to slowing down only the connections that activated the governor. The length of the wait implemented by the governor is constant (it does not vary depending on how many operations are active beyond the limit of eight). The workload governor operates at the level of an instance of the database engine, not at the level of a database. Each instance can have up to 32,767 databases. The workload governor is activated when there are more than eight active concurrent operations in the instance, even if each operation is working in a different database. From askolits at ot.com Thu Dec 4 08:24:21 2003 From: askolits at ot.com (John Skolits) Date: Thu, 4 Dec 2003 09:24:21 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar In-Reply-To: <025601c3ba6b$799d8820$6401a8c0@default> Message-ID: Thanks, I did find it but I still wonder what that area in the lower left of the desktop is called and how it's handled. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R Mattys Sent: Thursday, December 04, 2003 8:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the taskbar Yep, it's there http://www.mvps.org/access/api/api0045.htm Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 8:11 AM Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar > I always thought the area on the bottom left, next to the 'Start' menu icon > was the systray. Is that area then the IconTray or something like that? > > I'll check out Dev's site. > > Thanks! > > John > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, December 04, 2003 7:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the > taskbar > > > John, > > The area is Systray. > You need to look up the api Shell_NotifyIcon > Dev Ashish might even have it for Access. > > Michael R. Mattys > Try MattysMapLib for MapPoint at > www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John Skolits" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 03, 2003 11:39 PM > Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > > > > When you run Replication Manager, it starts the synchronizer. It then > places > > the Synchronizer Icon in the taskbar as a button. I want to put that > button > > as an icon only in the area located in the lower right hand corner of the > > desktop near the clock. > > > > What's this area called? > > Is there a registry key that puts items there? > > How can I put the synchronizer icon there when it's running? > > > > Thanks, > > > > John Skolits > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Thu Dec 4 08:28:05 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 4 Dec 2003 08:28:05 -0600 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1CD@TAPPEEXCH01> That would be the "Quick Launch" section, and is managed by storing file shortcuts in the following directory: c:\Documents and Settings\\Application Data\Microsoft\Internet Explorer\Quick Launch -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Thursday, December 04, 2003 8:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar Thanks, I did find it but I still wonder what that area in the lower left of the desktop is called and how it's handled. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R Mattys Sent: Thursday, December 04, 2003 8:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the taskbar Yep, it's there http://www.mvps.org/access/api/api0045.htm Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 8:11 AM Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar > I always thought the area on the bottom left, next to the 'Start' menu icon > was the systray. Is that area then the IconTray or something like that? > > I'll check out Dev's site. > > Thanks! > > John > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, December 04, 2003 7:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the > taskbar > > > John, > > The area is Systray. > You need to look up the api Shell_NotifyIcon > Dev Ashish might even have it for Access. > > Michael R. Mattys > Try MattysMapLib for MapPoint at > www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John Skolits" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 03, 2003 11:39 PM > Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > > > > When you run Replication Manager, it starts the synchronizer. It then > places > > the Synchronizer Icon in the taskbar as a button. I want to put that > button > > as an icon only in the area located in the lower right hand corner of the > > desktop near the clock. > > > > What's this area called? > > Is there a registry key that puts items there? > > How can I put the synchronizer icon there when it's running? > > > > Thanks, > > > > John Skolits > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 jcolby at colbyconsulting.com Thu Dec 4 08:34:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 09:34:45 -0500 Subject: [AccessD] MSDE In-Reply-To: <002d01c3ba71$2d3318a0$9111758f@aine> Message-ID: Martin, That is a great explanation and the first time I have seen such detail as to how the governor actually functions. Thanks for that. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Thursday, December 04, 2003 9:16 AM To: Access Developers discussion and problem solving Subject: [AccessD] MSDE Theres always some confusion about the performance of MSDE. This is an extraxt from a MS document I came across this morning whcih explains how the software is restricted. As can be seen the limits refer to the number of operations not the number of users. The Microsoft SQL Server 2000 workload governor is designed to limit the performance of an instance of the database engine any time more than eight operations are active at the same time. An instance of the SQL Server 2000 database engine is one copy of the database software that operates as an operating system service. The operations counted by the workload governor include: a.. Processing a request to open an inbound connection and login. b.. Processing a batch of one or more Transact-SQL statements received over an inbound connection. c.. Processing a distributed transaction operation, such as a prepare-to-commit or rollback operation. d.. Processing a request to log off and close an inbound connection. a.. Periodic system-generated operations such as shrinking a database if the database has the AUTO_SHRINK option turned on, completing the deletion of rows from the base level of indexes, or populating the SQL Server performance counters in the System Monitor. b.. Instances of SQL Server 2000 Personal Edition will also periodically generate system operations to process any full-text indexes referenced by the databases managed by the instance. SQL Server 2000 Desktop Engine (MSDE 2000) does not support full-text indexes. Like all versions of SQL Server 2000, SQL Server 2000 Personal Edition and MSDE 2000 allow 32,767 connections to an instance of the database engine. There is no limit for the number of connections that can be executing operations at the same time. The only effect of the workload governor is that it starts slowing down the database engine when more than eight operations are actively running at the same time. Once it has been activated, the workload governor limits performance by stalling a user connection for a few milliseconds each time the connection requests a logical read or write on any of the pages in the data files of a database. (The governor does not affect log files.) The database engine waits before every data page reference as long as there are more than eight active concurrent operations. When the number of active operations is eight or lower, the database engine does not wait before scheduling any reads or writes. When the workload governor is active, it equally affects all connections; it is not limited to slowing down only the connections that activated the governor. The length of the wait implemented by the governor is constant (it does not vary depending on how many operations are active beyond the limit of eight). The workload governor operates at the level of an instance of the database engine, not at the level of a database. Each instance can have up to 32,767 databases. The workload governor is activated when there are more than eight active concurrent operations in the instance, even if each operation is working in a different database. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Dec 4 08:35:15 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 4 Dec 2003 09:35:15 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7A77@xlivmbx12.aig.com> It's called the "System Tray" > -----Original Message----- > From: John Skolits [SMTP:askolits at ot.com] > Sent: Thursday, December 04, 2003 9:24 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the > taskbar > > Thanks, I did find it but I still wonder what that area in the lower left > of > the desktop is called and how it's handled. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, December 04, 2003 8:35 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the > taskbar > > > Yep, it's there > http://www.mvps.org/access/api/api0045.htm > > > Michael R. Mattys > Try MattysMapLib for MapPoint at > www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John Skolits" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 04, 2003 8:11 AM > Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar > > > > I always thought the area on the bottom left, next to the 'Start' menu > icon > > was the systray. Is that area then the IconTray or something like that? > > > > I'll check out Dev's site. > > > > Thanks! > > > > John > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > > Mattys > > Sent: Thursday, December 04, 2003 7:57 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the > > taskbar > > > > > > John, > > > > The area is Systray. > > You need to look up the api Shell_NotifyIcon > > Dev Ashish might even have it for Access. > > > > Michael R. Mattys > > Try MattysMapLib for MapPoint at > > www.mattysconsulting.com > > > > > > > > ----- Original Message ----- > > From: "John Skolits" > > To: "Access Developers discussion and problem solving" > > > > Sent: Wednesday, December 03, 2003 11:39 PM > > Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > > > > > > > When you run Replication Manager, it starts the synchronizer. It then > > places > > > the Synchronizer Icon in the taskbar as a button. I want to put that > > button > > > as an icon only in the area located in the lower right hand corner of > the > > > desktop near the clock. > > > > > > What's this area called? > > > Is there a registry key that puts items there? > > > How can I put the synchronizer icon there when it's running? > > > > > > Thanks, > > > > > > John Skolits > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Dec 4 08:43:53 2003 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 4 Dec 2003 09:43:53 -0500 Subject: [AccessD] MSDE References: <002d01c3ba71$2d3318a0$9111758f@aine> Message-ID: <002901c3ba75$15778440$240110ac@SUSANONE> Wonder why they're explaining it all now? Susan H. > Theres always some confusion about the performance of MSDE. This is an > extraxt from a MS document I came across this morning whcih explains how the > software is restricted. As can be seen the limits refer to the number of > operations not the number of users. > From askolits at ot.com Thu Dec 4 09:11:53 2003 From: askolits at ot.com (John Skolits) Date: Thu, 4 Dec 2003 10:11:53 -0500 Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE1CD@TAPPEEXCH01> Message-ID: Cool, good thing to know. Thanks, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Thursday, December 04, 2003 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar That would be the "Quick Launch" section, and is managed by storing file shortcuts in the following directory: c:\Documents and Settings\\Application Data\Microsoft\Internet Explorer\Quick Launch -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Thursday, December 04, 2003 8:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar Thanks, I did find it but I still wonder what that area in the lower left of the desktop is called and how it's handled. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R Mattys Sent: Thursday, December 04, 2003 8:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the taskbar Yep, it's there http://www.mvps.org/access/api/api0045.htm Michael R. Mattys Try MattysMapLib for MapPoint at www.mattysconsulting.com ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 8:11 AM Subject: RE: [AccessD] Moving The Synchronizer Icon/button off the taskbar > I always thought the area on the bottom left, next to the 'Start' menu icon > was the systray. Is that area then the IconTray or something like that? > > I'll check out Dev's site. > > Thanks! > > John > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael R > Mattys > Sent: Thursday, December 04, 2003 7:57 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Moving The Synchronizer Icon/button off the > taskbar > > > John, > > The area is Systray. > You need to look up the api Shell_NotifyIcon > Dev Ashish might even have it for Access. > > Michael R. Mattys > Try MattysMapLib for MapPoint at > www.mattysconsulting.com > > > > ----- Original Message ----- > From: "John Skolits" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 03, 2003 11:39 PM > Subject: [AccessD] Moving The Synchronizer Icon/button off the taskbar > > > > When you run Replication Manager, it starts the synchronizer. It then > places > > the Synchronizer Icon in the taskbar as a button. I want to put that > button > > as an icon only in the area located in the lower right hand corner of the > > desktop near the clock. > > > > What's this area called? > > Is there a registry key that puts items there? > > How can I put the synchronizer icon there when it's running? > > > > Thanks, > > > > John Skolits > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Dec 4 09:22:59 2003 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 Dec 2003 15:22:59 +0000 Subject: [AccessD] Scrolling back to previous Record Message-ID: Hello All, In A97 I tried disabling the mouse wheel...apparently not very well...then the user uses arrow keys to navigate records. What is the best way to prevent the user from Moving to a previously saved record? Thanks, Mark A. Matte _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com From clh at christopherhawkins.com Thu Dec 4 09:58:46 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 4 Dec 2003 08:58:46 -0700 Subject: [AccessD] Capturing the application's Close event Message-ID: <100190-220031244155846980@christopherhawkins.com> Hola! I have inherited an Access application (those words alone should alert you that nothing good is going to follow in this message) that is exhibiting strange behavior when the user exits by clicking the Close button on the Access shell. I'd like to be able to capture and stop the Close process when the user attempts to exit this way. I have Googled, but to no avail. Anyone know how to do this? -Christopher- From mikedorism at adelphia.net Thu Dec 4 10:02:10 2003 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 4 Dec 2003 11:02:10 -0500 Subject: [AccessD] Scrolling back to previous Record In-Reply-To: Message-ID: <000001c3ba7f$f9b97640$8b194244@hargrove.internal> Set the Form's Cycle property (found on the Other tab) to "Current Record". Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, December 04, 2003 10:23 AM To: accessd at databaseadvisors.com Subject: [AccessD] Scrolling back to previous Record Hello All, In A97 I tried disabling the mouse wheel...apparently not very well...then the user uses arrow keys to navigate records. What is the best way to prevent the user from Moving to a previously saved record? Thanks, Mark A. Matte _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 4 10:08:05 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 11:08:05 -0500 Subject: [AccessD] Capturing the application's Close event In-Reply-To: <100190-220031244155846980@christopherhawkins.com> Message-ID: One way to do this is to: 1) Create a global blnAllowClose 2) Open a form hidden. 3) In the form OnClose place a Cancel = blnAllowClose 4) Set blnAllowClose = false when the form opens. 5) In your app, in the button or whatever you use to close the database, set blnAllowClose = true It turns out that Access can't close when an object remains open. By setting up the hidden form and not allowing it to close until your global variable says it can, you have effectively prevented the form from closing, which prevents ACCESS from closing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Thursday, December 04, 2003 10:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the application's Close event Hola! I have inherited an Access application (those words alone should alert you that nothing good is going to follow in this message) that is exhibiting strange behavior when the user exits by clicking the Close button on the Access shell. I'd like to be able to capture and stop the Close process when the user attempts to exit this way. I have Googled, but to no avail. Anyone know how to do this? -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Thu Dec 4 10:12:06 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 04 Dec 2003 08:12:06 -0800 Subject: [AccessD] MSDE References: <002901c3ba75$15778440$240110ac@SUSANONE> Message-ID: <3FCF5CD6.3030703@shaw.ca> You can track the amount of throttling going on through DBCC and logs I once tracked this and kept a log in an access table. There is more here or SQL BOL search on ( DBCC CONCURRENCYVIOLATION ) Watch out below for yellow on white tips (kind of hard to read http://www.betav.com/Files/Content/Whitepapers/msde_files/msde.htm To track the throttling you can use something like SP below with DBCC or turn it on in the SQL log, it gives you the number of times you have exceed the 5 connection limit. This dumps the records to database table. Concurrency violations since 2003-01-21 12:20:43.747 1 2 3 4 5 6 7 8 9 10-100 >100 0 0 0 0 0 0 0 0 0 0 0 Concurrency violations will be written to the SQL Server error log. ALTER PROCEDURE StoredProcedureDBCCworks /* ( @parameter1 datatype = default value, @parameter2 datatype OUTPUT ) */ AS SET NOCOUNT ON -- Create the table to accept the results or use #tracestatus #indicates temptable If NOT EXISTS (SELECT * FROM SYSOBJECTS WHERE ID = OBJECT_ID('DBCCtracestatus ') AND sysstat & 0xf=3) DROP TABLE DBCCtracestatus BEGIN CREATE TABLE DBCCtracestatus ( maint varchar(4096), TraceFlag INT, Status INT ) END -- Marty Connelly Victoria, B.C. Canada From Alun.Garraway at otto.de Thu Dec 4 10:21:33 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Thu, 4 Dec 2003 17:21:33 +0100 Subject: AW: [AccessD] Capturing the application's Close event Message-ID: I think the hidden form must also be the first you open, because Access closes the forms in the order they opened when shutting down. alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John W. Colby Gesendet: Donnerstag, 4. Dezember 2003 17:08 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Capturing the application's Close event One way to do this is to: 1) Create a global blnAllowClose 2) Open a form hidden. 3) In the form OnClose place a Cancel = blnAllowClose 4) Set blnAllowClose = false when the form opens. 5) In your app, in the button or whatever you use to close the database, set blnAllowClose = true It turns out that Access can't close when an object remains open. By setting up the hidden form and not allowing it to close until your global variable says it can, you have effectively prevented the form from closing, which prevents ACCESS from closing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Thursday, December 04, 2003 10:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the application's Close event Hola! I have inherited an Access application (those words alone should alert you that nothing good is going to follow in this message) that is exhibiting strange behavior when the user exits by clicking the Close button on the Access shell. I'd like to be able to capture and stop the Close process when the user attempts to exit this way. I have Googled, but to no avail. Anyone know how to do this? -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 4 10:32:03 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 08:32:03 -0800 Subject: [AccessD] AccessXP and Server 2003 Message-ID: You question says Windows 2000 servers but your subject line says Server 2003. Which one are you asking about? Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 3:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessXP and Server 2003 Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Thu Dec 4 10:34:47 2003 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 4 Dec 2003 09:34:47 -0700 Subject: AW: [AccessD] Capturing the application's Close event Message-ID: <107390-220031244163447242@christopherhawkins.com> I had forgotten about that. That might be the clue I need to debug this problem without having to worry about the application's Close event. Thanks Alun! You too, John. -C- ---- Original Message ---- From: Alun.Garraway at otto.de To: accessd at databaseadvisors.com, Subject: RE: AW: [AccessD] Capturing the application's Close event Date: Thu, 4 Dec 2003 17:21:33 +0100 >I think the hidden form must also be the first you open, >because Access closes the forms in the order they opened when >shutting down. > >alun > >-----Urspr?ngliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John W. >Colby >Gesendet: Donnerstag, 4. Dezember 2003 17:08 >An: Access Developers discussion and problem solving >Betreff: RE: [AccessD] Capturing the application's Close event > > > >One way to do this is to: > >1) Create a global blnAllowClose >2) Open a form hidden. >3) In the form OnClose place a > > Cancel = blnAllowClose > >4) Set blnAllowClose = false when the form opens. >5) In your app, in the button or whatever you use to close the >database, set >blnAllowClose = true > >It turns out that Access can't close when an object remains open. By >setting up the hidden form and not allowing it to close until your >global >variable says it can, you have effectively prevented the form from >closing, >which prevents ACCESS from closing. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher >Hawkins >Sent: Thursday, December 04, 2003 10:59 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Capturing the application's Close event > > >Hola! > >I have inherited an Access application (those words alone should >alert you that nothing good is going to follow in this message) that >is exhibiting strange behavior when the user exits by clicking the >Close button on the Access shell. > >I'd like to be able to capture and stop the Close process when the >user attempts to exit this way. I have Googled, but to no avail. > >Anyone know how to do this? > >-Christopher- > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From jcolby at colbyconsulting.com Thu Dec 4 10:33:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 11:33:45 -0500 Subject: [AccessD] Capturing the application's Close event In-Reply-To: Message-ID: Nope, all the others can close because there is nothing to prevent them from closing. The one that can't close will fail to close and the database will stay open. Of course you touch on a point, everything except this form (and the database itself) WILL close, so any open forms, reports, menu form etc will close. What I do (yes, I use this technique) is actually allow the form to close, but before it closes I call my cleanup code which closes all open objects such as classes, recordsets etc. IOW, I just do cleanup, then go ahead and allow the close. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Garraway, Alun Sent: Thursday, December 04, 2003 11:22 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Capturing the application's Close event I think the hidden form must also be the first you open, because Access closes the forms in the order they opened when shutting down. alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John W. Colby Gesendet: Donnerstag, 4. Dezember 2003 17:08 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Capturing the application's Close event One way to do this is to: 1) Create a global blnAllowClose 2) Open a form hidden. 3) In the form OnClose place a Cancel = blnAllowClose 4) Set blnAllowClose = false when the form opens. 5) In your app, in the button or whatever you use to close the database, set blnAllowClose = true It turns out that Access can't close when an object remains open. By setting up the hidden form and not allowing it to close until your global variable says it can, you have effectively prevented the form from closing, which prevents ACCESS from closing. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Thursday, December 04, 2003 10:59 AM To: accessd at databaseadvisors.com Subject: [AccessD] Capturing the application's Close event Hola! I have inherited an Access application (those words alone should alert you that nothing good is going to follow in this message) that is exhibiting strange behavior when the user exits by clicking the Close button on the Access shell. I'd like to be able to capture and stop the Close process when the user attempts to exit this way. I have Googled, but to no avail. Anyone know how to do this? -Christopher- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Dec 4 10:37:16 2003 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 04 Dec 2003 16:37:16 +0000 Subject: [AccessD] Scrolling back to previous Record Message-ID: Thanks, But this did not prevent it. Thanks, Mark >From: "Mike & Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: RE: [AccessD] Scrolling back to previous Record >Date: Thu, 4 Dec 2003 11:02:10 -0500 > >Set the Form's Cycle property (found on the Other tab) to "Current Record". > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, December 04, 2003 10:23 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Scrolling back to previous Record > > >Hello All, > >In A97 I tried disabling the mouse wheel...apparently not very well...then >the user uses arrow keys to navigate records. What is the best way to >prevent the user from Moving to a previously saved record? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Browse styles for all ages, from the latest looks to cozy weekend wear at >MSN Shopping. And check out the beauty products! http://shopping.msn.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Take advantage of our best MSN Dial-up offer of the year ? six months @$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup From paul.hartland at fsmail.net Thu Dec 4 10:46:46 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 4 Dec 2003 17:46:46 +0100 (CET) Subject: [AccessD] AccessXP and Server 2003 Message-ID: <11256527.1070556406291.JavaMail.www@wwinf3006> Sorry......getting into the weekend mood, I mean't server 2000 Message date : Dec 04 2003, 04:34 PM >From : Charlotte Foust To : Access Developers discussion and problem solving Copy to : Subject : RE: [AccessD] AccessXP and Server 2003 You question says Windows 2000 servers but your subject line says Server 2003. Which one are you asking about? Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 3:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessXP and Server 2003 Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From cfoust at infostatsystems.com Thu Dec 4 11:41:25 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 09:41:25 -0800 Subject: [AccessD] AccessXP and Server 2003 Message-ID: I've heard of and seen problems with AXP on Win2k Server, but I haven't personally had that experience. Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: Re: RE: [AccessD] AccessXP and Server 2003 Sorry......getting into the weekend mood, I mean't server 2000 Message date : Dec 04 2003, 04:34 PM >From : Charlotte Foust To : Access Developers discussion and problem solving Copy to : Subject : RE: [AccessD] AccessXP and Server 2003 You question says Windows 2000 servers but your subject line says Server 2003. Which one are you asking about? Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 3:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessXP and Server 2003 Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 4 11:44:45 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 09:44:45 -0800 Subject: [AccessD] Scrolling back to previous Record Message-ID: Try Stephan Lebans' site: http://www.lebans.com/mousewheelonoff.htm Charlotte Foust -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Thursday, December 04, 2003 8:37 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Scrolling back to previous Record Thanks, But this did not prevent it. Thanks, Mark >From: "Mike & Doris Manning" >Reply-To: Access Developers discussion and problem >solving >To: "'Access Developers discussion and problem >solving'" >Subject: RE: [AccessD] Scrolling back to previous Record >Date: Thu, 4 Dec 2003 11:02:10 -0500 > >Set the Form's Cycle property (found on the Other tab) to "Current >Record". > >Doris Manning >Database Administrator >Hargrove Inc. >www.hargroveinc.com > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >Sent: Thursday, December 04, 2003 10:23 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Scrolling back to previous Record > > >Hello All, > >In A97 I tried disabling the mouse wheel...apparently not very >well...then the user uses arrow keys to navigate records. What is the >best way to prevent the user from Moving to a previously saved record? > >Thanks, > >Mark A. Matte > >_________________________________________________________________ >Browse styles for all ages, from the latest looks to cozy weekend wear >at MSN Shopping. And check out the beauty products! >http://shopping.msn.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Take advantage of our best MSN Dial-up offer of the year - six months @$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 4 11:51:32 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 09:51:32 -0800 Subject: [AccessD] Corrupted Database Message-ID: <00ac01c3ba8f$40d90540$6501a8c0@HAL9002> Dear List: User of a client has backed up her database OVER her open database (third hand report but I think it's true). Now Access gives 'Unrecognized Database Format' when trying to open it (surprise, surprise). I think this db is hosed beyond repair. Any last ditch ideas anybody? (tried jetcomp - it says 'can't compact this version') Rocky From cfoust at infostatsystems.com Thu Dec 4 12:11:09 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 10:11:09 -0800 Subject: [AccessD] Corrupted Database Message-ID: Um ... How could she back up her database over an open database? The mind boggles. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, December 04, 2003 9:52 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Corrupted Database Dear List: User of a client has backed up her database OVER her open database (third hand report but I think it's true). Now Access gives 'Unrecognized Database Format' when trying to open it (surprise, surprise). I think this db is hosed beyond repair. Any last ditch ideas anybody? (tried jetcomp - it says 'can't compact this version') Rocky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Thu Dec 4 12:19:54 2003 From: tortise at paradise.net.nz (Tortise) Date: Fri, 05 Dec 2003 07:19:54 +1300 Subject: [AccessD] Corrupted Database References: Message-ID: <00e701c3ba93$3757b6c0$1e00a8c0@cheqsoft.local> Access 2003 has a live backup utility within it. Closes the db backups up, reopens. If she saved backup to same file...??? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 7:11 AM Subject: RE: [AccessD] Corrupted Database Um ... How could she back up her database over an open database? The mind boggles. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, December 04, 2003 9:52 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Corrupted Database Dear List: User of a client has backed up her database OVER her open database (third hand report but I think it's true). Now Access gives 'Unrecognized Database Format' when trying to open it (surprise, surprise). I think this db is hosed beyond repair. Any last ditch ideas anybody? (tried jetcomp - it says 'can't compact this version') Rocky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Thu Dec 4 12:27:50 2003 From: tortise at paradise.net.nz (Tortise) Date: Fri, 05 Dec 2003 07:27:50 +1300 Subject: [AccessD] AccessXP and Server 2003 References: Message-ID: <00f401c3ba94$52fc79f0$1e00a8c0@cheqsoft.local> I am finding I can only open one instance of particular A2K databases in W2003ES and Access 2003. Whether this is the same problem is unclear, however if anyone has any tips how to allow multiple (same) versions of a database to open on the same desktop I'd be grateful. Failing that I am going to have to code multiple same forms open in the database, although this looks like it might be a little easier to do then when I last had a go....(Reference: info on Microsoft how to do this and a working example there also) I also find the shortcuts keys are unreliable in this environment. (e.g. Ctrl-Alt-Q, Ctrl-Alt-J on desktop shortcuts) They seem to get confused between different version of access open.... I am not sure which is the culprit either! (W2003ES or A2k3?) Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 5:32 AM Subject: RE: [AccessD] AccessXP and Server 2003 You question says Windows 2000 servers but your subject line says Server 2003. Which one are you asking about? Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 3:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessXP and Server 2003 Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 4 12:44:21 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 10:44:21 -0800 Subject: [AccessD] Corrupted Database Message-ID: No version was specified in the message. Charlotte Foust -----Original Message----- From: Tortise [mailto:tortise at paradise.net.nz] Sent: Thursday, December 04, 2003 10:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Corrupted Database Access 2003 has a live backup utility within it. Closes the db backups up, reopens. If she saved backup to same file...??? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 7:11 AM Subject: RE: [AccessD] Corrupted Database Um ... How could she back up her database over an open database? The mind boggles. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, December 04, 2003 9:52 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Corrupted Database Dear List: User of a client has backed up her database OVER her open database (third hand report but I think it's true). Now Access gives 'Unrecognized Database Format' when trying to open it (surprise, surprise). I think this db is hosed beyond repair. Any last ditch ideas anybody? (tried jetcomp - it says 'can't compact this version') Rocky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Thu Dec 4 13:06:59 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: 04 Dec 2003 19:06:59 +0000 Subject: [AccessD] AccessXP and Server 2003 Message-ID: My first reply to this was that it was the same here and it was. I then did it again and it worked fine. Two instances of Access open running the same copy of the database. Martin On Dec 4 2003, Tortise wrote: > I am finding I can only open one instance of particular A2K databases in > W2003ES and Access 2003. Whether this is the same problem is unclear, > however if anyone has any tips how to allow multiple (same) versions of a > database to open on the same desktop I'd be grateful. Failing that I am > going to have to code multiple same forms open in the database, although > this looks like it might be a little easier to do then when I last had a > go....(Reference: info on Microsoft how to do this and a working example > there also) I also find the shortcuts keys are unreliable in this > environment. (e.g. Ctrl-Alt-Q, Ctrl-Alt-J on desktop shortcuts) They seem > to get confused between different version of access open.... I am not > sure which is the culprit either! (W2003ES or A2k3?) > > Kind regards, Dr David Hingston Director Chequers Software Limited > Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - > For safe and efficient PC use - www.breakreminder.com TimesOwn - > International Time Zone Calculator a click away - > http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste > storage and web form filler - http://www.cheqsoft.com/clipboard.html > MP3Detective - MP3 Player manager - > http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and > friendly Internet searching - have you tried it? http://www.E2Go.com/ > ----- Original Message ----- > From: Charlotte Foust > To: Access Developers discussion and problem solving > Sent: Friday, December 05, 2003 5:32 AM > Subject: RE: [AccessD] AccessXP and Server 2003 > > > You question says Windows 2000 servers but your subject line says > Server 2003. Which one are you asking about? > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Thursday, December 04, 2003 3:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] AccessXP and Server 2003 > > > Has anyone encountered any problems running Win XP Professional & > Office XP on desktops with Windows 2000 servers ? > > > > > > Message date : Dec 03 2003, 02:36 PM > >From : Perry Harold > To : 'Access Developers discussion and problem solving' > Copy to : > Subject : [AccessD] AccessXP and Server 2003 > Has anyone had any problems with users being able to open a .mdb after > moving the database to Windows Server 2003? I have set the permissions > for both the folders and the database for full control individually for > each of the 5 users involved. Three are able to use the database but two > can't. Unless I missed an intermediate step each user was set up exactly > the same way. > > Using my VB6 application the error is "Could not use "; file in use". > Opening with AccessXP "Could not lock file" > > > The database was on a NT 4.0 server before and there was no problem in > the connection being made and multiple users were no problem. > > The resident drive was mapped on the NT box and is mapped the same way > on the 2003 box. > > Any suggestions are welcomed. > > Perry Harold > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Martin WP Reid Analyst Information Services Queens University Belfast From tortise at paradise.net.nz Thu Dec 4 13:36:26 2003 From: tortise at paradise.net.nz (Tortise) Date: Fri, 05 Dec 2003 08:36:26 +1300 Subject: [AccessD] AccessXP and Server 2003 References: Message-ID: <014c01c3ba9d$e85c49e0$1e00a8c0@cheqsoft.local> mm Martin could you please confirm your Access and OS versions? Is it reliable? From what you've said it is 50% reliable. Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 8:06 AM Subject: Re: [AccessD] AccessXP and Server 2003 My first reply to this was that it was the same here and it was. I then did it again and it worked fine. Two instances of Access open running the same copy of the database. Martin On Dec 4 2003, Tortise wrote: > I am finding I can only open one instance of particular A2K databases in > W2003ES and Access 2003. Whether this is the same problem is unclear, > however if anyone has any tips how to allow multiple (same) versions of a > database to open on the same desktop I'd be grateful. Failing that I am > going to have to code multiple same forms open in the database, although > this looks like it might be a little easier to do then when I last had a > go....(Reference: info on Microsoft how to do this and a working example > there also) I also find the shortcuts keys are unreliable in this > environment. (e.g. Ctrl-Alt-Q, Ctrl-Alt-J on desktop shortcuts) They seem > to get confused between different version of access open.... I am not > sure which is the culprit either! (W2003ES or A2k3?) > > Kind regards, Dr David Hingston Director Chequers Software Limited > Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - > For safe and efficient PC use - www.breakreminder.com TimesOwn - > International Time Zone Calculator a click away - > http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste > storage and web form filler - http://www.cheqsoft.com/clipboard.html > MP3Detective - MP3 Player manager - > http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and > friendly Internet searching - have you tried it? http://www.E2Go.com/ > ----- Original Message ----- > From: Charlotte Foust > To: Access Developers discussion and problem solving > Sent: Friday, December 05, 2003 5:32 AM > Subject: RE: [AccessD] AccessXP and Server 2003 > > > You question says Windows 2000 servers but your subject line says > Server 2003. Which one are you asking about? > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Thursday, December 04, 2003 3:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] AccessXP and Server 2003 > > > Has anyone encountered any problems running Win XP Professional & > Office XP on desktops with Windows 2000 servers ? > > > > > > Message date : Dec 03 2003, 02:36 PM > >From : Perry Harold > To : 'Access Developers discussion and problem solving' > Copy to : > Subject : [AccessD] AccessXP and Server 2003 > Has anyone had any problems with users being able to open a .mdb after > moving the database to Windows Server 2003? I have set the permissions > for both the folders and the database for full control individually for > each of the 5 users involved. Three are able to use the database but two > can't. Unless I missed an intermediate step each user was set up exactly > the same way. > > Using my VB6 application the error is "Could not use "; file in use". > Opening with AccessXP "Could not lock file" > > > The database was on a NT 4.0 server before and there was no problem in > the connection being made and multiple users were no problem. > > The resident drive was mapped on the NT box and is mapped the same way > on the 2003 box. > > Any suggestions are welcomed. > > Perry Harold > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Martin WP Reid Analyst Information Services Queens University Belfast _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 4 14:34:55 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 12:34:55 -0800 Subject: [AccessD] Corrupted Database References: Message-ID: <003801c3baa6$13de5060$6501a8c0@HAL9002> Users are soooo inventive. Rocky ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 10:11 AM Subject: RE: [AccessD] Corrupted Database > Um ... How could she back up her database over an open database? The > mind boggles. > > Charlotte Foust > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, December 04, 2003 9:52 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Corrupted Database > > > Dear List: > > User of a client has backed up her database OVER her open database > (third hand report but I think it's true). Now Access gives > 'Unrecognized Database Format' when trying to open it (surprise, > surprise). I think this db is hosed beyond repair. > > Any last ditch ideas anybody? > > (tried jetcomp - it says 'can't compact this version') > > Rocky > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pharold at proftesting.com Thu Dec 4 14:35:46 2003 From: pharold at proftesting.com (Perry Harold) Date: Thu, 4 Dec 2003 15:35:46 -0500 Subject: [AccessD] AccessXP and Server 2003 In-Reply-To: Message-ID: <002201c3baa6$321e7460$082da8c0@D58BT131> I have reached a solution with my problem of the A2K mdb not being available to some users after a move to a Win 2003 Server. The mdb now resides on a 2003 Server. Users can either access through A2K or through a VB6 application that builds registration tables of candidates for several certification exams to be administered on various dates through the year. Everything worked great on the previous NT 4.0 Server with users from either WinXP or Win98SE but lack of storage and slow speed were starting to create bottlenecks. I moved the mdb to a share folder on the newer, faster and much bigger Win 2003E Server. I had set "Security Permissions" on the share folder for all the authorized users which I thought would be sufficient to allow full access for each user. After digging deeper I found that I had also set "Share Permissions" for the 3 users (don't remember specifically why) who were able to access the mdb both through AXP, A2K and with my VB6 application. If none of those 3 had the mdb open, other users could open the mdb but had "Read Privileges Only". After I returned to the server settings for the share and allowed the other users to also have "Share Permissions" all users are now able to access the mdb without being locked out and concurrent instances are running. Since it works now I haven't tried to see if the "Share Permissions" alone are sufficient - that's for a slower registration period. ** - Since we went from 4.0 to 2003 I have no exposure to Win 2000 Server but presume that some of the same permissions may need to be set within Win 2000 Server as well. ** - One user has a new machine which has Access 2003, so there are some other security issues to look into with that new setup which haven't been presented in earlier versions of Access - something about "Possible Dangerous Expressions". By allowing it to block whatever the "Possibles" are the user now has full access to the mdb and we'll look into the "Possibles" and how to allow for them in the future. I have a small shop where I'm both the Network and Development Department so I get to be involved in learning how to handle these things from both sides. Both pluses and minuses in this type of setup. Thanks to the couple of people who helped off-list. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Thursday, December 04, 2003 2:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessXP and Server 2003 My first reply to this was that it was the same here and it was. I then did it again and it worked fine. Two instances of Access open running the same copy of the database. Martin On Dec 4 2003, Tortise wrote: > I am finding I can only open one instance of particular A2K databases > in > W2003ES and Access 2003. Whether this is the same problem is unclear, > however if anyone has any tips how to allow multiple (same) versions of a > database to open on the same desktop I'd be grateful. Failing that I am > going to have to code multiple same forms open in the database, although > this looks like it might be a little easier to do then when I last had a > go....(Reference: info on Microsoft how to do this and a working example > there also) I also find the shortcuts keys are unreliable in this > environment. (e.g. Ctrl-Alt-Q, Ctrl-Alt-J on desktop shortcuts) They seem > to get confused between different version of access open.... I am not > sure which is the culprit either! (W2003ES or A2k3?) > > Kind regards, Dr David Hingston Director Chequers Software Limited > Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - > For safe and efficient PC use - www.breakreminder.com TimesOwn - > International Time Zone Calculator a click away - > http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste > storage and web form filler - http://www.cheqsoft.com/clipboard.html > MP3Detective - MP3 Player manager - > http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and > friendly Internet searching - have you tried it? http://www.E2Go.com/ > ----- Original Message ----- > From: Charlotte Foust > To: Access Developers discussion and problem solving > Sent: Friday, December 05, 2003 5:32 AM > Subject: RE: [AccessD] AccessXP and Server 2003 > > > You question says Windows 2000 servers but your subject line says > Server 2003. Which one are you asking about? > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Thursday, December 04, 2003 3:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] AccessXP and Server 2003 > > > Has anyone encountered any problems running Win XP Professional & > Office XP on desktops with Windows 2000 servers ? > > > > > > Message date : Dec 03 2003, 02:36 PM > >From : Perry Harold > To : 'Access Developers discussion and problem solving' > Copy to : > Subject : [AccessD] AccessXP and Server 2003 > Has anyone had any problems with users being able to open a .mdb > after > moving the database to Windows Server 2003? I have set the permissions > for both the folders and the database for full control individually for > each of the 5 users involved. Three are able to use the database but two > can't. Unless I missed an intermediate step each user was set up exactly > the same way. > > Using my VB6 application the error is "Could not use "; file in > use". > Opening with AccessXP "Could not lock file" > > > The database was on a NT 4.0 server before and there was no problem > in > the connection being made and multiple users were no problem. > > The resident drive was mapped on the NT box and is mapped the same > way > on the 2003 box. > > Any suggestions are welcomed. > > Perry Harold > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Martin WP Reid Analyst Information Services Queens University Belfast _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 4 14:36:05 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 12:36:05 -0800 Subject: [AccessD] Corrupted Database References: <00e701c3ba93$3757b6c0$1e00a8c0@cheqsoft.local> Message-ID: <004401c3baa6$3d525810$6501a8c0@HAL9002> Don't know the version but I doubt it's 2003. It's a military installation and since the computer is not a weapons system it's probably a couple of versions behind. Rocky ----- Original Message ----- From: "Tortise" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 10:19 AM Subject: Re: [AccessD] Corrupted Database Access 2003 has a live backup utility within it. Closes the db backups up, reopens. If she saved backup to same file...??? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 7:11 AM Subject: RE: [AccessD] Corrupted Database Um ... How could she back up her database over an open database? The mind boggles. Charlotte Foust -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, December 04, 2003 9:52 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Corrupted Database Dear List: User of a client has backed up her database OVER her open database (third hand report but I think it's true). Now Access gives 'Unrecognized Database Format' when trying to open it (surprise, surprise). I think this db is hosed beyond repair. Any last ditch ideas anybody? (tried jetcomp - it says 'can't compact this version') Rocky _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Thu Dec 4 14:38:26 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 12:38:26 -0800 Subject: [AccessD] Disable undo function from VBA. References: <46B976F2B698FF46A4FE7636509B22DF6DE6@stekelbes.ithelps.local> Message-ID: <005601c3baa6$91a987d0$6501a8c0@HAL9002> What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and edit/update > the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo cache" > function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave > DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jdemarco at hshhp.org Thu Dec 4 14:45:34 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 4 Dec 2003 15:45:34 -0500 Subject: [AccessD] ADO Collect Collection Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F99A@TTNEXCHSRV1.hshhp.com> One of our developer's stumbled across this while doing some research. Has anyone heard of it or used it? The ADO Recorset object exposes a hidden, undocumented member: the Collect property. This property is functionally similar to the Field's Value property, but it's faster because it doesn't need a reference (explicit or implicit) to the Field object. You can use this property by passing a numeric index or a field's name, as in: Dim rs As New ADODecordset rs.Open "authors", "DSN=pubs" 'reference by field's name firstName = rs.Collect("au_fname") ' reference by field's index rs.Collect(2) = "John Doe" Under ADO 2.5, the Collect property appears to be about 30% faster than the standard way to refer to a field's value Jim DeMarco Director Product Development Hudson Health Plan *********************************************************************************** "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 jcolby at colbyconsulting.com Thu Dec 4 14:46:04 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 15:46:04 -0500 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: <005601c3baa6$91a987d0$6501a8c0@HAL9002> Message-ID: Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and edit/update > the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo cache" > function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave > DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From starkey at wanadoo.nl Thu Dec 4 15:01:34 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Thu, 4 Dec 2003 22:01:34 +0100 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: Message-ID: Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and edit/update > the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo cache" > function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave > DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From jcolby at colbyconsulting.com Thu Dec 4 15:26:07 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 16:26:07 -0500 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: Message-ID: Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and edit/update > the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo cache" > function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave > DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 4 15:50:44 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 13:50:44 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From starkey at wanadoo.nl Thu Dec 4 16:03:36 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Thu, 4 Dec 2003 23:03:36 +0100 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: Message-ID: John, check this: in Access 2000, pick any existing table in a database, open the table and add a new record. Move the cursor to a new or other record and have a look at the menubar 'Edit' -> 'Undo Saved Record (Ctrl-Z)'. Despite you saved the new record this option still enables you to undo the addition. I posted a referral to Access help about this feature earlier, that information should enable one to figure out a solution under the given circumstances. I imagine Erwin could also build a copy of the existing menubar he uses without this 'Undo' button and have the Ctrl-Z turn into a beep using the autokeys macro. Ohwell, almost friday here = almost weekend!:-) Have a nice dinner, Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 22:26 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and edit/update > the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo cache" > function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave > DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 23:03:35 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From cfoust at infostatsystems.com Thu Dec 4 16:02:18 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 14:02:18 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: Does that option show up in the forms' menubar? I don't ever recall seeing it there, and users should NOT be working directly in tables. If they are, they should be pummeled soundly until they break the habit. And the developer should be scolded for enabling that behavior. Charlotte Foust -----Original Message----- From: StaRKeY [mailto:starkey at wanadoo.nl] Sent: Thursday, December 04, 2003 2:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. John, check this: in Access 2000, pick any existing table in a database, open the table and add a new record. Move the cursor to a new or other record and have a look at the menubar 'Edit' -> 'Undo Saved Record (Ctrl-Z)'. Despite you saved the new record this option still enables you to undo the addition. I posted a referral to Access help about this feature earlier, that information should enable one to figure out a solution under the given circumstances. I imagine Erwin could also build a copy of the existing menubar he uses without this 'Undo' button and have the Ctrl-Z turn into a beep using the autokeys macro. Ohwell, almost friday here = almost weekend!:-) Have a nice dinner, Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 22:26 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 23:03:35 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Dec 4 16:06:25 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 4 Dec 2003 17:06:25 -0500 Subject: [AccessD] Disable undo function from VBA. References: Message-ID: <005e01c3bab2$dc3dab80$6101a8c0@dejpolsys> ...pummel the developer ...scold the user ...makes for better client relations :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 5:02 PM Subject: RE: [AccessD] Disable undo function from VBA. > Does that option show up in the forms' menubar? I don't ever recall > seeing it there, and users should NOT be working directly in tables. If > they are, they should be pummeled soundly until they break the habit. > And the developer should be scolded for enabling that behavior. > > Charlotte Foust > > -----Original Message----- > From: StaRKeY [mailto:starkey at wanadoo.nl] > Sent: Thursday, December 04, 2003 2:04 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > John, > > check this: in Access 2000, pick any existing table in a database, open > the table and add a new record. Move the cursor to a new or other record > and have a look at the menubar 'Edit' -> 'Undo Saved Record (Ctrl-Z)'. > Despite you saved the new record this option still enables you to undo > the addition. I posted a referral to Access help about this feature > earlier, that information should enable one to figure out a solution > under the given circumstances. > > I imagine Erwin could also build a copy of the existing menubar he uses > without this 'Undo' button and have the Ctrl-Z turn into a beep using > the autokeys macro. > > Ohwell, almost friday here = almost weekend!:-) > > Have a nice dinner, > Eric > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: donderdag 4 december 2003 22:26 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > Eric, > > I'm not sure what you are referring to. Dirty is a property of a form. > It is set when the record is first modified and cleared when the save > occurs. If you set it false in code, it saves the record. > > Of all that I am sure because I use it. > > Now what exactly is "Undo saved record"? I know of no such thing in > Access. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY > Sent: Thursday, December 04, 2003 4:02 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > Have you checked this John?:-) > > I ask because I played with a table, adding a new record, hop onto > another old/new record and the undo saved record feature still worked. > Isn't dirty true if the record isn't saved yet? > > > Regards, > Eric Starkenburg > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > Sent: donderdag 4 december 2003 21:46 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > Setting dirty to false saves the record so there would definitely be no > undo available after that! > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Thursday, December 04, 2003 3:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Disable undo function from VBA. > > > What happens if you set dirty to false? Then wouldn't the undo fail > ('undo not available at this time' or some such error which you could > trap)? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 04, 2003 4:58 AM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > I'm busy testing some stuff, like using the me.recordset and > > edit/update the fields instead of the controls on a form. > > > > I also looked at the undo event of the form, but that doesn't work > > neither... > > > > What I really would like to have is some kind of "Clear the undo > > cache" function. > > > > I'll let you know what. > > Closing form and opening again is not an option for me. > > > > Erwin > > > > > > -----Oorspronkelijk bericht----- > > Van: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > > Verzonden: donderdag 4 december 2003 13:35 > > Aan: Access Developers discussion and problem solving > > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > > > > > ----- Original Message ----- > > From: "StaRKeY" > > To: "Access Developers discussion and problem solving" > > > > Sent: 04 December, 2003 12:42 PM > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > > open > > the > > > form every time a new value in a record is changed?:-) > > > > > Erwin wrote: > > "When printing I programaticaly give the invoice a number and save the > > > record." So, I think to close the form, only in the OnClick event of a > > > command button. And that have to be rarely... And after the printing I > > > suppose that the invoice is finished so the code can be even simpler: > > DoCmd.RunCommand acCmdSave DoCmd.Close > > > > but Erwin will decide :) > > Ervin > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --- > avast! Antivirus: Outbound message clean. > Virus Database (VPS): 2-12-2003 > Tested on: 4-12-2003 22:01:32 > avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --- > avast! Antivirus: Outbound message clean. > Virus Database (VPS): 2-12-2003 > Tested on: 4-12-2003 23:03:35 > avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DMcAfee at haascnc.com Thu Dec 4 16:27:18 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Thu, 4 Dec 2003 14:27:18 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: <657FB70438B7D311AF320090279C1801026D7D56@EXCHMAIL> And the developer should be scolded for enabling that behavior. Charlotte Foust Charlotte, I think the developer IS TRYING to disable this behavior ;) From cfoust at infostatsystems.com Thu Dec 4 16:39:56 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 14:39:56 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: If the application is already in a production environment and the users are allowed to access the tables directly, it's too late! Charlotte Foust -----Original Message----- From: David McAfee [mailto:DMcAfee at haascnc.com] Sent: Thursday, December 04, 2003 2:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Disable undo function from VBA. And the developer should be scolded for enabling that behavior. Charlotte Foust Charlotte, I think the developer IS TRYING to disable this behavior ;) From cfoust at infostatsystems.com Thu Dec 4 16:40:34 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 14:40:34 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: Ah, but I'm on the developers side. If only we could get a better class of users ... Charlotte Foust -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, December 04, 2003 2:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. ...pummel the developer ...scold the user ...makes for better client relations :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 5:02 PM Subject: RE: [AccessD] Disable undo function from VBA. > Does that option show up in the forms' menubar? I don't ever recall > seeing it there, and users should NOT be working directly in tables. > If they are, they should be pummeled soundly until they break the > habit. And the developer should be scolded for enabling that behavior. > > Charlotte Foust > > -----Original Message----- > From: StaRKeY [mailto:starkey at wanadoo.nl] > Sent: Thursday, December 04, 2003 2:04 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > John, > > check this: in Access 2000, pick any existing table in a database, > open the table and add a new record. Move the cursor to a new or other > record and have a look at the menubar 'Edit' -> 'Undo Saved Record > (Ctrl-Z)'. Despite you saved the new record this option still enables > you to undo the addition. I posted a referral to Access help about > this feature earlier, that information should enable one to figure out > a solution under the given circumstances. > > I imagine Erwin could also build a copy of the existing menubar he > uses without this 'Undo' button and have the Ctrl-Z turn into a beep > using the autokeys macro. > > Ohwell, almost friday here = almost weekend!:-) > > Have a nice dinner, > Eric > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. > Colby > Sent: donderdag 4 december 2003 22:26 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > Eric, > > I'm not sure what you are referring to. Dirty is a property of a > form. It is set when the record is first modified and cleared when the > save occurs. If you set it false in code, it saves the record. > > Of all that I am sure because I use it. > > Now what exactly is "Undo saved record"? I know of no such thing in > Access. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY > Sent: Thursday, December 04, 2003 4:02 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > Have you checked this John?:-) > > I ask because I played with a table, adding a new record, hop onto > another old/new record and the undo saved record feature still worked. > Isn't dirty true if the record isn't saved yet? > > > Regards, > Eric Starkenburg > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. > Colby > Sent: donderdag 4 december 2003 21:46 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Disable undo function from VBA. > > > Setting dirty to false saves the record so there would definitely be > no undo available after that! > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > - Beach Access Software > Sent: Thursday, December 04, 2003 3:38 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Disable undo function from VBA. > > > What happens if you set dirty to false? Then wouldn't the undo fail > ('undo not available at this time' or some such error which you could > trap)? > > Rocky > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 04, 2003 4:58 AM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > I'm busy testing some stuff, like using the me.recordset and > > edit/update the fields instead of the controls on a form. > > > > I also looked at the undo event of the form, but that doesn't work > > neither... > > > > What I really would like to have is some kind of "Clear the undo > > cache" function. > > > > I'll let you know what. > > Closing form and opening again is not an option for me. > > > > Erwin > > > > > > -----Oorspronkelijk bericht----- > > Van: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > > Verzonden: donderdag 4 december 2003 13:35 > > Aan: Access Developers discussion and problem solving > > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > > > > > ----- Original Message ----- > > From: "StaRKeY" > > To: "Access Developers discussion and problem solving" > > > > Sent: 04 December, 2003 12:42 PM > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > > open > > the > > > form every time a new value in a record is changed?:-) > > > > > Erwin wrote: > > "When printing I programaticaly give the invoice a number and save > > the > > > record." So, I think to close the form, only in the OnClick event of > > a > > > command button. And that have to be rarely... And after the printing > > I > > > suppose that the invoice is finished so the code can be even > > simpler: DoCmd.RunCommand acCmdSave DoCmd.Close > > > > but Erwin will decide :) > > Ervin > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --- > avast! Antivirus: Outbound message clean. > Virus Database (VPS): 2-12-2003 > Tested on: 4-12-2003 22:01:32 > avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > --- > avast! Antivirus: Outbound message clean. > Virus Database (VPS): 2-12-2003 > Tested on: 4-12-2003 23:03:35 > avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Dec 4 17:24:16 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 4 Dec 2003 18:24:16 -0500 Subject: [AccessD] Disable undo function from VBA. References: Message-ID: <009601c3babd$bfc79820$6101a8c0@dejpolsys> ...oh I quite agree ...but being an independent, I'm realistic about the results of publicly pummeling even the lowest class of user ...personally, I'd rather pay JC to take him/her for a plane ride ...Colbyizing a user is a much more satisfying ...and permanent ...solution :))) ...had one just today that I would have gladly bought TWO tickets for :) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 5:40 PM Subject: RE: [AccessD] Disable undo function from VBA. > Ah, but I'm on the developers side. If only we could get a better class > of users ... > > Charlotte Foust > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Thursday, December 04, 2003 2:06 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Disable undo function from VBA. > > > ...pummel the developer ...scold the user ...makes for better client > relations :) > > William Hindman > Government is not reason, government is not persuasion, government is > force. It is a dangerous servant." G. Washington > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, December 04, 2003 5:02 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Does that option show up in the forms' menubar? I don't ever recall > > seeing it there, and users should NOT be working directly in tables. > > If they are, they should be pummeled soundly until they break the > > habit. And the developer should be scolded for enabling that behavior. > > > > Charlotte Foust > > > > -----Original Message----- > > From: StaRKeY [mailto:starkey at wanadoo.nl] > > Sent: Thursday, December 04, 2003 2:04 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > John, > > > > check this: in Access 2000, pick any existing table in a database, > > open the table and add a new record. Move the cursor to a new or other > > > record and have a look at the menubar 'Edit' -> 'Undo Saved Record > > (Ctrl-Z)'. Despite you saved the new record this option still enables > > you to undo the addition. I posted a referral to Access help about > > this feature earlier, that information should enable one to figure out > > > a solution under the given circumstances. > > > > I imagine Erwin could also build a copy of the existing menubar he > > uses without this 'Undo' button and have the Ctrl-Z turn into a beep > > using the autokeys macro. > > > > Ohwell, almost friday here = almost weekend!:-) > > > > Have a nice dinner, > > Eric > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. > > Colby > > Sent: donderdag 4 december 2003 22:26 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > Eric, > > > > I'm not sure what you are referring to. Dirty is a property of a > > form. It is set when the record is first modified and cleared when the > > > save occurs. If you set it false in code, it saves the record. > > > > Of all that I am sure because I use it. > > > > Now what exactly is "Undo saved record"? I know of no such thing in > > Access. > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY > > Sent: Thursday, December 04, 2003 4:02 PM > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > Have you checked this John?:-) > > > > I ask because I played with a table, adding a new record, hop onto > > another old/new record and the undo saved record feature still worked. > > > Isn't dirty true if the record isn't saved yet? > > > > > > Regards, > > Eric Starkenburg > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. > > Colby > > Sent: donderdag 4 december 2003 21:46 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > Setting dirty to false saves the record so there would definitely be > > no undo available after that! > > > > John W. Colby > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > > > - Beach Access Software > > Sent: Thursday, December 04, 2003 3:38 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Disable undo function from VBA. > > > > > > What happens if you set dirty to false? Then wouldn't the undo fail > > ('undo not available at this time' or some such error which you could > > trap)? > > > > Rocky > > > > ----- Original Message ----- > > From: "Erwin Craps - IT Helps" > > To: "Access Developers discussion and problem solving" > > > > Sent: Thursday, December 04, 2003 4:58 AM > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > > I'm busy testing some stuff, like using the me.recordset and > > > edit/update the fields instead of the controls on a form. > > > > > > I also looked at the undo event of the form, but that doesn't work > > > neither... > > > > > > What I really would like to have is some kind of "Clear the undo > > > cache" function. > > > > > > I'll let you know what. > > > Closing form and opening again is not an option for me. > > > > > > Erwin > > > > > > > > > -----Oorspronkelijk bericht----- > > > Van: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > > > Verzonden: donderdag 4 december 2003 13:35 > > > Aan: Access Developers discussion and problem solving > > > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > > > > > > > > > ----- Original Message ----- > > > From: "StaRKeY" > > > To: "Access Developers discussion and problem solving" > > > > > > Sent: 04 December, 2003 12:42 PM > > > Subject: RE: [AccessD] Disable undo function from VBA. > > > > > > > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > > > > open > > > the > > > > form every time a new value in a record is changed?:-) > > > > > > > Erwin wrote: > > > "When printing I programaticaly give the invoice a number and save > > > the > > > > > record." So, I think to close the form, only in the OnClick event of > > > > a > > > > > command button. And that have to be rarely... And after the printing > > > > I > > > > > suppose that the invoice is finished so the code can be even > > > simpler: DoCmd.RunCommand acCmdSave DoCmd.Close > > > > > > but Erwin will decide :) > > > Ervin > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > --- > > avast! Antivirus: Outbound message clean. > > Virus Database (VPS): 2-12-2003 > > Tested on: 4-12-2003 22:01:32 > > avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > --- > > avast! Antivirus: Outbound message clean. > > Virus Database (VPS): 2-12-2003 > > Tested on: 4-12-2003 23:03:35 > > avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jcolby at colbyconsulting.com Thu Dec 4 18:23:17 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 19:23:17 -0500 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: Message-ID: WOW. Constantly amazed, though that would explain it. I occasionally edit records directly in tables myself but my users are NEVER allowed in tables. Thus I just never noticed that. Does it apply if you have edited the record via a form, or only through the table? Through a query? Through a recordset? What happens if a second record was edited? Multi-level undo? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Dec 4 18:38:05 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 4 Dec 2003 16:38:05 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: I never use it myself or let my users near the tables, so I don't have any answers. I don't know about multi-level, but you can move to a different record and the undo will undo the edited one. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 4:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. WOW. Constantly amazed, though that would explain it. I occasionally edit records directly in tables myself but my users are NEVER allowed in tables. Thus I just never noticed that. Does it apply if you have edited the record via a form, or only through the table? Through a query? Through a recordset? What happens if a second record was edited? Multi-level undo? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DMcAfee at haascnc.com Thu Dec 4 18:49:01 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Thu, 4 Dec 2003 16:49:01 -0800 Subject: [AccessD] Disable undo function from VBA. Message-ID: <657FB70438B7D311AF320090279C1801026D7D58@EXCHMAIL> Not that I ever do this either... :P but... undo is not multi level. As Charlotte said, you can move to any record, but you can only undo the last change. both tables and queries (non snap shot of course) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. I never use it myself or let my users near the tables, so I don't have any answers. I don't know about multi-level, but you can move to a different record and the undo will undo the edited one. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 4:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. WOW. Constantly amazed, though that would explain it. I occasionally edit records directly in tables myself but my users are NEVER allowed in tables. Thus I just never noticed that. Does it apply if you have edited the record via a form, or only through the table? Through a query? Through a recordset? What happens if a second record was edited? Multi-level undo? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Thu Dec 4 20:06:53 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Dec 2003 13:06:53 +1100 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: <000d01c3bad4$73f0f470$41619a89@DDICK> Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren From d.dick at uws.edu.au Thu Dec 4 20:12:16 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 5 Dec 2003 13:12:16 +1100 Subject: [AccessD] Fw: Runtime version of 2003 (Crap) Message-ID: <001301c3bad5$348556e0$41619a89@DDICK> Just found this Now I'm off to deal with this piece of crap Microsoft SHYTE Re the Error Accessing File. Network Connection May have been lost message http://advisor.com/Articles.nsf/nl/12022 AAAARRRRGGGGHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ----- Original Message ----- From: "Darren DICK" To: "AccessD List" Sent: Friday, December 05, 2003 1:06 PM Subject: A2K: Runtime version of 2003 (Crap) > Hello all > I recently installed the runtime version of Access 2003. > > This piece of crap has taken over and now all my access apps open in a 2003 shell. > I keep getting error messages about the potential damage the code within the dB can cause > and am prompted each time I open a dB if I wish to continue or cancel > > I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. > I have re-installed Office and Access 2000 - Still no joy. > So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) > > On top of all that I getting very strange errors each time I open a db or try to view the code > for an even or control. Error message as follows. > (This message would appear even before I deleted the folder - yes I have re-booted many times) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Microsoft Visual Basic (Msgbox Caption) > Error Accessing File. Network Connection May have been lost > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > > Many thanks in advance > > Darren > > From jcolby at colbyconsulting.com Thu Dec 4 21:48:09 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 22:48:09 -0500 Subject: [AccessD] the value of Access constants Message-ID: I need to know the value of the constants acFormatSNP, acFormatRTF etc. If I go to the debug window and input: ?acFormatSNP I get: Snapshot Format (*.snp) I need the actual integer (or long?) value of the constant so I can store it in a lookup table and allow selecting the kind of report I want using the docmd.outputto. Does anyone know how to see the actual numeric value of this thing? John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Thu Dec 4 22:02:48 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Dec 2003 14:02:48 +1000 Subject: [AccessD] the value of Access constants In-Reply-To: Message-ID: <3FD09008.11.2D6913@localhost> On 4 Dec 2003 at 22:48, John W. Colby wrote: > I need to know the value of the constants acFormatSNP, acFormatRTF etc. If > I go to the debug window and input: > > ?acFormatSNP > > I get: > > Snapshot Format (*.snp) > > I need the actual integer (or long?) value of the constant so I can store it > in a lookup table and allow selecting the kind of report I want using the > docmd.outputto. > > Does anyone know how to see the actual numeric value of this thing? > Doesn't have one. It's a text constant, not a numeric. acFormatSNP = "Snapshot Format (*.snp)" Open the VBA Object Browser Window and look at Access.Constants All the acFormatxxx constants are listed as string values. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From connie.kamrowski at agric.nsw.gov.au Thu Dec 4 22:04:05 2003 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Fri, 5 Dec 2003 15:04:05 +1100 Subject: [AccessD] Password Security Message-ID: I am building an Access 97 front-end Database application which will link to a SQL server 2000 database. The application will run inside Citrix Metaframe 1.8 on a windows NT box with service pack 5.0. There are existing security tables in a previously constructed database which will be integrated to provide the basis for the username and password authentication. Our Security guru's have issues with the levels of security around the password. One of these guys suggested we use a Microsoft passfilt dll to provide additional levels of password security by demanding pre defined password restrictions. Thats OK for him to say I have not used this functionality in windows previously. Does anyone know If I can call this dll from Windows NT whilst running an access97 database inside citrix metaframe ........ or an alternative solution. Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jcolby at colbyconsulting.com Thu Dec 4 22:06:16 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 23:06:16 -0500 Subject: [AccessD] Alternatives to docmd.outputto Message-ID: I just noticed that this method of creating a file from a report doesn't have a property for filters for the report. I have a reporting system that builds up a complex filter then opens the report and applies the filter. Obviously I can't do this with the docmd.outputto. Any alternatives that will allow me to (for example) output a normal report (with the filter applied) to a rtf/snapshot/excel file etc.? John W. Colby www.ColbyConsulting.com From jcolby at colbyconsulting.com Thu Dec 4 22:10:00 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 4 Dec 2003 23:10:00 -0500 Subject: [AccessD] the value of Access constants In-Reply-To: <3FD09008.11.2D6913@localhost> Message-ID: Well... that makes it easy. So if you want to feed the text, you have to feed that whole string - "Snapshot Format (*.snp)"? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, December 04, 2003 11:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] the value of Access constants On 4 Dec 2003 at 22:48, John W. Colby wrote: > I need to know the value of the constants acFormatSNP, acFormatRTF etc. If > I go to the debug window and input: > > ?acFormatSNP > > I get: > > Snapshot Format (*.snp) > > I need the actual integer (or long?) value of the constant so I can store it > in a lookup table and allow selecting the kind of report I want using the > docmd.outputto. > > Does anyone know how to see the actual numeric value of this thing? > Doesn't have one. It's a text constant, not a numeric. acFormatSNP = "Snapshot Format (*.snp)" Open the VBA Object Browser Window and look at Access.Constants All the acFormatxxx constants are listed as string values. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Thu Dec 4 22:11:22 2003 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Fri, 5 Dec 2003 15:11:22 +1100 Subject: [AccessD] Password Security Message-ID: oops NT 4.0 with SP5 that is Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange Ph: 02 6391 3250 Fax:02 6391 3290 connie.kamrowski at agric.ns w.gov.au To: Access Developers discussion and problem solving Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] Password Security 05/12/2003 03:04 PM Please respond to Access Developers discussion and problem solving I am building an Access 97 front-end Database application which will link to a SQL server 2000 database. The application will run inside Citrix Metaframe 1.8 on a windows NT box with service pack 5.0. There are existing security tables in a previously constructed database which will be integrated to provide the basis for the username and password authentication. Our Security guru's have issues with the levels of security around the password. One of these guys suggested we use a Microsoft passfilt dll to provide additional levels of password security by demanding pre defined password restrictions. Thats OK for him to say I have not used this functionality in windows previously. Does anyone know If I can call this dll from Windows NT whilst running an access97 database inside citrix metaframe ........ or an alternative solution. Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange Ph: 02 6391 3250 Fax:02 6391 3290 This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From stuart at lexacorp.com.pg Thu Dec 4 22:27:56 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Dec 2003 14:27:56 +1000 Subject: [AccessD] Alternatives to docmd.outputto In-Reply-To: Message-ID: <3FD095EC.7648.446C5B@localhost> On 4 Dec 2003 at 23:06, John W. Colby wrote: > I just noticed that this method of creating a file from a report doesn't > have a property for filters for the report. I have a reporting system that > builds up a complex filter then opens the report and applies the filter. > Obviously I can't do this with the docmd.outputto. Any alternatives that > will allow me to (for example) output a normal report (with the filter > applied) to a rtf/snapshot/excel file etc.? > I've never been able to. As a workround, I've done this sort of thing before: 1. Create a Static Function: Static Function RecordSourceStore (Optional SourceString As String) As String Dim strTemp As String If SourceString > "" Then strTemp = SourceString End If rsource = strTemp End Function 2. Where you build your filter, build the full SQL string instead and set the static variable: strSource = "Select * from myTable Where " & strFilter strSource = RecordSourceStore(strSource) 3. Set the Report recordsource in the report On_Open event Me.RecordSource = RecordSourceStore() -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Dec 4 22:28:54 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 05 Dec 2003 14:28:54 +1000 Subject: [AccessD] the value of Access constants In-Reply-To: References: <3FD09008.11.2D6913@localhost> Message-ID: <3FD09626.3331.454DB8@localhost> Yes. On 4 Dec 2003 at 23:10, John W. Colby wrote: > Well... that makes it easy. So if you want to feed the text, you have to > feed that whole string - "Snapshot Format (*.snp)"? > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart > McLachlan > Sent: Thursday, December 04, 2003 11:03 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] the value of Access constants > > > On 4 Dec 2003 at 22:48, John W. Colby wrote: > > > I need to know the value of the constants acFormatSNP, acFormatRTF etc. > If > > I go to the debug window and input: > > > > ?acFormatSNP > > > > I get: > > > > Snapshot Format (*.snp) > > > > I need the actual integer (or long?) value of the constant so I can store > it > > in a lookup table and allow selecting the kind of report I want using the > > docmd.outputto. > > > > Does anyone know how to see the actual numeric value of this thing? > > > > Doesn't have one. It's a text constant, not a numeric. > acFormatSNP = "Snapshot Format (*.snp)" > > Open the VBA Object Browser Window and look at Access.Constants > All the acFormatxxx constants are listed as string values. > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From bchacc at san.rr.com Thu Dec 4 22:57:26 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 20:57:26 -0800 Subject: [AccessD] You Can't Carry Out This Action At This Time Message-ID: <00e901c3baec$471da840$6501a8c0@HAL9002> Dear List: Suddenly, without warning, a (bound) (dang) form begins to give me this message: You Can't Carry Out This Action At This Time when I try to save the record (using:DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70), for the second time. First time works OK. After the first save I also get it when I try to close the form - DoCmd.Close. Before the first save everything's OK. I also can't navigate - next record, previous record, etc. all tell me You Can't Carry Out This Action At This Time. At this point I have to close the entire app. Any idea why this is happening? It's making me nutz. MTIA, Rocky Smolin Beach Access Software From bchacc at san.rr.com Thu Dec 4 23:10:20 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 4 Dec 2003 21:10:20 -0800 Subject: [AccessD] You Can't Carry Out This Action At This Time-Solved? References: <00e901c3baec$471da840$6501a8c0@HAL9002> Message-ID: <00ef01c3baee$14ec0220$6501a8c0@HAL9002> So I took the usual route to solving an access problem - fiddle around at random until you get the behavior you're looking for (kind of like raising kids). Turns out that after the save command, DoCmd.DoMenuItem, etc., I had a Me.Requery. I commented that out and everything began to work OK. Does anyone know why? Trying to close the app or various objects in the app,like forms that were still open, I got other messages implying that code was still running. Did this Me.Requery set up some kind of loop? Thanks for any insight, Rocky Smolin Beach Access Software ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Thursday, December 04, 2003 8:57 PM Subject: [AccessD] You Can't Carry Out This Action At This Time Dear List: Suddenly, without warning, a (bound) (dang) form begins to give me this message: You Can't Carry Out This Action At This Time when I try to save the record (using:DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70), for the second time. First time works OK. After the first save I also get it when I try to close the form - DoCmd.Close. Before the first save everything's OK. I also can't navigate - next record, previous record, etc. all tell me You Can't Carry Out This Action At This Time. At this point I have to close the entire app. Any idea why this is happening? It's making me nutz. MTIA, Rocky Smolin Beach Access Software _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Dec 5 01:23:51 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 5 Dec 2003 08:23:51 +0100 Subject: [AccessD] Disable undo function from VBA. Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF80@stekelbes.ithelps.local> Hum Please note that this "undo saved record" behavior I experiance is in both A97 and AXP. And in a FORM. I'll try the dirty form, but as it wlll save the record I don't believe this will solve the problem. Even dooing a me.recordset.edit, fields ("")="jkj";.update does not seem to help, but I'm not totaly out of that due to lack of time. I find this pretty heavy stuff.... The undo event neither helps. Undo event (form) only seems to occur when a field is undood. Not when clicking "undo saved record". Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David McAfee Verzonden: vrijdag 5 december 2003 1:49 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Disable undo function from VBA. Not that I ever do this either... :P but... undo is not multi level. As Charlotte said, you can move to any record, but you can only undo the last change. both tables and queries (non snap shot of course) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. I never use it myself or let my users near the tables, so I don't have any answers. I don't know about multi-level, but you can move to a different record and the undo will undo the edited one. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 4:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. WOW. Constantly amazed, though that would explain it. I occasionally edit records directly in tables myself but my users are NEVER allowed in tables. Thus I just never noticed that. Does it apply if you have edited the record via a form, or only through the table? Through a query? Through a recordset? What happens if a second record was edited? Multi-level undo? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Dec 5 02:53:37 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 5 Dec 2003 08:53:37 -0000 Subject: [AccessD] AccessXP and Server 2003 References: <014c01c3ba9d$e85c49e0$1e00a8c0@cheqsoft.local> Message-ID: <001b01c3bb0d$45ff6400$9111758f@aine> Using Windows Server 2003 - Recent Build. Microsoft Access 2003 - Latest Build Dont think we can say 50% when it has not been fully tested (<: I tryed it the first time by double clicking the shortcut to a database. Didnt work. Second time I opened Access first and then the File Open to get the database and it worked OK. Didnt bother trying it again last night as my cable is out and was trying to get that fixed. Martin ----- Original Message ----- From: "Tortise" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 7:36 PM Subject: Re: [AccessD] AccessXP and Server 2003 mm Martin could you please confirm your Access and OS versions? Is it reliable? From what you've said it is 50% reliable. Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Martin Reid To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 8:06 AM Subject: Re: [AccessD] AccessXP and Server 2003 My first reply to this was that it was the same here and it was. I then did it again and it worked fine. Two instances of Access open running the same copy of the database. Martin On Dec 4 2003, Tortise wrote: > I am finding I can only open one instance of particular A2K databases in > W2003ES and Access 2003. Whether this is the same problem is unclear, > however if anyone has any tips how to allow multiple (same) versions of a > database to open on the same desktop I'd be grateful. Failing that I am > going to have to code multiple same forms open in the database, although > this looks like it might be a little easier to do then when I last had a > go....(Reference: info on Microsoft how to do this and a working example > there also) I also find the shortcuts keys are unreliable in this > environment. (e.g. Ctrl-Alt-Q, Ctrl-Alt-J on desktop shortcuts) They seem > to get confused between different version of access open.... I am not > sure which is the culprit either! (W2003ES or A2k3?) > > Kind regards, Dr David Hingston Director Chequers Software Limited > Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - > For safe and efficient PC use - www.breakreminder.com TimesOwn - > International Time Zone Calculator a click away - > http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste > storage and web form filler - http://www.cheqsoft.com/clipboard.html > MP3Detective - MP3 Player manager - > http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and > friendly Internet searching - have you tried it? http://www.E2Go.com/ > ----- Original Message ----- > From: Charlotte Foust > To: Access Developers discussion and problem solving > Sent: Friday, December 05, 2003 5:32 AM > Subject: RE: [AccessD] AccessXP and Server 2003 > > > You question says Windows 2000 servers but your subject line says > Server 2003. Which one are you asking about? > > Charlotte Foust > > -----Original Message----- > From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] > Sent: Thursday, December 04, 2003 3:12 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] AccessXP and Server 2003 > > > Has anyone encountered any problems running Win XP Professional & > Office XP on desktops with Windows 2000 servers ? > > > > > > Message date : Dec 03 2003, 02:36 PM > >From : Perry Harold > To : 'Access Developers discussion and problem solving' > Copy to : > Subject : [AccessD] AccessXP and Server 2003 > Has anyone had any problems with users being able to open a .mdb after > moving the database to Windows Server 2003? I have set the permissions > for both the folders and the database for full control individually for > each of the 5 users involved. Three are able to use the database but two > can't. Unless I missed an intermediate step each user was set up exactly > the same way. > > Using my VB6 application the error is "Could not use "; file in use". > Opening with AccessXP "Could not lock file" > > > The database was on a NT 4.0 server before and there was no problem in > the connection being made and multiple users were no problem. > > The resident drive was mapped on the NT box and is mapped the same way > on the 2003 box. > > Any suggestions are welcomed. > > Perry Harold > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a > month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Martin WP Reid Analyst Information Services Queens University Belfast _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Fri Dec 5 06:44:24 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 5 Dec 2003 07:44:24 -0500 Subject: [AccessD] Alternatives to docmd.outputto In-Reply-To: <3FD095EC.7648.446C5B@localhost> Message-ID: Yea, I was afraid of that. I guess it's not that much of a stretch after all, just adding select * from sometable where and tack on the filter. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, December 04, 2003 11:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Alternatives to docmd.outputto On 4 Dec 2003 at 23:06, John W. Colby wrote: > I just noticed that this method of creating a file from a report doesn't > have a property for filters for the report. I have a reporting system that > builds up a complex filter then opens the report and applies the filter. > Obviously I can't do this with the docmd.outputto. Any alternatives that > will allow me to (for example) output a normal report (with the filter > applied) to a rtf/snapshot/excel file etc.? > I've never been able to. As a workround, I've done this sort of thing before: 1. Create a Static Function: Static Function RecordSourceStore (Optional SourceString As String) As String Dim strTemp As String If SourceString > "" Then strTemp = SourceString End If rsource = strTemp End Function 2. Where you build your filter, build the full SQL string instead and set the static variable: strSource = "Select * from myTable Where " & strFilter strSource = RecordSourceStore(strSource) 3. Set the Report recordsource in the report On_Open event Me.RecordSource = RecordSourceStore() -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Dec 5 08:28:01 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 5 Dec 2003 15:28:01 +0100 Subject: [AccessD] Disable undo function from VBA. Message-ID: <46B976F2B698FF46A4FE7636509B22DF6DE7@stekelbes.ithelps.local> I came up with this With Me.Recordset .Edit .Fields("Description") = Time 'just for test (and other fields .Update End With DoCmd.RunCommand acCmdSaveRecord It looks a bit redundant but you all know that me.description is a reference to the control on the form and Me.Recordset.fields("Description") is a direct reference to the recordset. The dirty thing does not work, because I already did a accmdsaverecord, so you cant save twice. Unless there is a clear_the_undo_cache command, this is the best I can come up with. I don't wanna create my own menu/toolbars have been busy in the past with that and I hate it... I have to make them tree times in different languages.... Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Erwin Craps - IT Helps Verzonden: vrijdag 5 december 2003 8:24 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Disable undo function from VBA. Hum Please note that this "undo saved record" behavior I experiance is in both A97 and AXP. And in a FORM. I'll try the dirty form, but as it wlll save the record I don't believe this will solve the problem. Even dooing a me.recordset.edit, fields ("")="jkj";.update does not seem to help, but I'm not totaly out of that due to lack of time. I find this pretty heavy stuff.... The undo event neither helps. Undo event (form) only seems to occur when a field is undood. Not when clicking "undo saved record". Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David McAfee Verzonden: vrijdag 5 december 2003 1:49 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Disable undo function from VBA. Not that I ever do this either... :P but... undo is not multi level. As Charlotte said, you can move to any record, but you can only undo the last change. both tables and queries (non snap shot of course) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. I never use it myself or let my users near the tables, so I don't have any answers. I don't know about multi-level, but you can move to a different record and the undo will undo the edited one. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 4:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. WOW. Constantly amazed, though that would explain it. I occasionally edit records directly in tables myself but my users are NEVER allowed in tables. Thus I just never noticed that. Does it apply if you have edited the record via a form, or only through the table? Through a query? Through a recordset? What happens if a second record was edited? Multi-level undo? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Fri Dec 5 10:30:30 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 5 Dec 2003 11:30:30 -0500 Subject: [AccessD] Alternatives to docmd.outputto In-Reply-To: Message-ID: Stuart, I got that working. Thanks, John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, December 04, 2003 11:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Alternatives to docmd.outputto On 4 Dec 2003 at 23:06, John W. Colby wrote: > I just noticed that this method of creating a file from a report doesn't > have a property for filters for the report. I have a reporting system that > builds up a complex filter then opens the report and applies the filter. > Obviously I can't do this with the docmd.outputto. Any alternatives that > will allow me to (for example) output a normal report (with the filter > applied) to a rtf/snapshot/excel file etc.? > I've never been able to. As a workround, I've done this sort of thing before: 1. Create a Static Function: Static Function RecordSourceStore (Optional SourceString As String) As String Dim strTemp As String If SourceString > "" Then strTemp = SourceString End If rsource = strTemp End Function 2. Where you build your filter, build the full SQL string instead and set the static variable: strSource = "Select * from myTable Where " & strFilter strSource = RecordSourceStore(strSource) 3. Set the Report recordsource in the report On_Open event Me.RecordSource = RecordSourceStore() -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Fri Dec 5 10:37:26 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 08:37:26 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Fri Dec 5 10:49:37 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 5 Dec 2003 11:49:37 -0500 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) In-Reply-To: Message-ID: Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 5 10:58:24 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 08:58:24 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Fri Dec 5 11:10:15 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 5 Dec 2003 12:10:15 -0500 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) In-Reply-To: Message-ID: I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 5 11:18:38 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 09:18:38 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: You mean as opposed to a class action lawsuit for not providing adequate security? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Fri Dec 5 11:41:45 2003 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Fri, 05 Dec 2003 11:41:45 -0600 Subject: [AccessD] Re: Alternatives to docmd.outputto In-Reply-To: <200312050429.hB54Tov13499@databaseadvisors.com> Message-ID: <5.1.0.14.2.20031205113931.02a2e100@pop3.highstream.net> John, Use a 2 query system. Query_01 has your basic SQL Statement without the WHERE clause. Query_02 is the one you replace the SQL Statement in with one you build. The report is based on the Query_02. This will work very fast. Robert At 10:29 PM 12/4/2003 -0600, you wrote: >Date: Thu, 4 Dec 2003 23:06:16 -0500 >From: "John W. Colby" >Subject: [AccessD] Alternatives to docmd.outputto >To: "AccessD" >Message-ID: >Content-Type: text/plain; charset="iso-8859-1" > >I just noticed that this method of creating a file from a report doesn't >have a property for filters for the report. I have a reporting system that >builds up a complex filter then opens the report and applies the filter. >Obviously I can't do this with the docmd.outputto. Any alternatives that >will allow me to (for example) output a normal report (with the filter >applied) to a rtf/snapshot/excel file etc.? > >John W. Colby >www.ColbyConsulting.com From jcolby at colbyconsulting.com Fri Dec 5 11:49:53 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 5 Dec 2003 12:49:53 -0500 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) In-Reply-To: Message-ID: If you truly think that SP3 has anything at ALL to do with enhancing security (other than Microsoft's) you are delusional. SP3 does nothing to prevent a virus from running on your machine. It does nothing to prevent Access from using VBA to form a virus and scramble the user's data, or watch for passwords and credit card numbers and email them out to an address NOT in the address book. On the other hand, it absolutely does trash an application that my client paid me to write for them. It prevents using Outlook automation to send mail in many instances. IOW, it does NOTHING AT all to enhance the security of my client, while causing a perfectly valid application to stop working. I mean a class action lawsuit for doing nothing to enhance security while screwing up valid applications, trashing code modules then hiding the fact that they were causing these problems, denying that anything was wrong, and causing me to waste a TON of time trying to figure out why my applications were corrupting form modules, then having the BALLS to force me to come begging them to give me a fix to the problem that they already had and weren't telling anyone they had. I mean THAT kind of class action lawsuit. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) You mean as opposed to a class action lawsuit for not providing adequate security? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 5 11:56:59 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 09:56:59 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: I hope you feel better now that you've got that out of your system. Don't blame it on SP3. Those "enhancements" came in with security patches along the way. They just happened to be rolled up into SP3 as well. Now wipe the foam off your mouth and play nicely. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 9:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) If you truly think that SP3 has anything at ALL to do with enhancing security (other than Microsoft's) you are delusional. SP3 does nothing to prevent a virus from running on your machine. It does nothing to prevent Access from using VBA to form a virus and scramble the user's data, or watch for passwords and credit card numbers and email them out to an address NOT in the address book. On the other hand, it absolutely does trash an application that my client paid me to write for them. It prevents using Outlook automation to send mail in many instances. IOW, it does NOTHING AT all to enhance the security of my client, while causing a perfectly valid application to stop working. I mean a class action lawsuit for doing nothing to enhance security while screwing up valid applications, trashing code modules then hiding the fact that they were causing these problems, denying that anything was wrong, and causing me to waste a TON of time trying to figure out why my applications were corrupting form modules, then having the BALLS to force me to come begging them to give me a fix to the problem that they already had and weren't telling anyone they had. I mean THAT kind of class action lawsuit. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) You mean as opposed to a class action lawsuit for not providing adequate security? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Fri Dec 5 12:19:56 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 05 Dec 2003 10:19:56 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) In-Reply-To: References: Message-ID: <3FD0CC4C.2030109@verizon.net> I have this little function that uses BLAT to email, this is what I've been using so I don't meet up with the problematic issues of SPx or SRx for Office... It's available at the following URL... http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tapia,Francsico -- -Francisco John W. Colby wrote: >If you truly think that SP3 has anything at ALL to do with enhancing >security (other than Microsoft's) you are delusional. SP3 does nothing to >prevent a virus from running on your machine. It does nothing to prevent >Access from using VBA to form a virus and scramble the user's data, or watch >for passwords and credit card numbers and email them out to an address NOT >in the address book. > >On the other hand, it absolutely does trash an application that my client >paid me to write for them. It prevents using Outlook automation to send >mail in many instances. > >IOW, it does NOTHING AT all to enhance the security of my client, while >causing a perfectly valid application to stop working. > >I mean a class action lawsuit for doing nothing to enhance security while >screwing up valid applications, trashing code modules then hiding the fact >that they were causing these problems, denying that anything was wrong, and >causing me to waste a TON of time trying to figure out why my applications >were corrupting form modules, then having the BALLS to force me to come >begging them to give me a fix to the problem that they already had and >weren't telling anyone they had. > >I mean THAT kind of class action lawsuit. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 12:19 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >You mean as opposed to a class action lawsuit for not providing adequate >security? > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 9:10 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. NOT >installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to send >mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage the >code within the dB can cause and am prompted each time I open a dB if I >wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ > > From Christian.Brock at hoffman.army.mil Fri Dec 5 12:28:31 2003 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria) Date: Fri, 5 Dec 2003 13:28:31 -0500 Subject: [AccessD] Merging from Access 2002 to Word 2002 Message-ID: I have just converted a database from 97 to 2002. The database was using automation to merge a single record to word document created from a template. It worked fine in 97, but now I keep getting various errors and dialog boxes like "Select table" even though the table is specified and "Confirm data conversion". I was using a query that had several inline formatting and concatenations in it. But even when I put all the data into a temp table, it still gives me problems. Does anyone have code that works for this? Christian Brock From mwp.reid at qub.ac.uk Thu Dec 4 13:02:05 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 4 Dec 2003 11:02:05 -0800 Subject: [AccessD] AccessXP and Server 2003 References: <00f401c3ba94$52fc79f0$1e00a8c0@cheqsoft.local> Message-ID: <000001c3bb61$a9376eb0$f00b6351@martin1> Been using Win 2003 Server for some time with Access 2003 Thats the first time I noticed that, Was the same here. WIll look into it Martin ----- Original Message ----- From: "Tortise" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 10:27 AM Subject: Re: [AccessD] AccessXP and Server 2003 I am finding I can only open one instance of particular A2K databases in W2003ES and Access 2003. Whether this is the same problem is unclear, however if anyone has any tips how to allow multiple (same) versions of a database to open on the same desktop I'd be grateful. Failing that I am going to have to code multiple same forms open in the database, although this looks like it might be a little easier to do then when I last had a go....(Reference: info on Microsoft how to do this and a working example there also) I also find the shortcuts keys are unreliable in this environment. (e.g. Ctrl-Alt-Q, Ctrl-Alt-J on desktop shortcuts) They seem to get confused between different version of access open.... I am not sure which is the culprit either! (W2003ES or A2k3?) Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Friday, December 05, 2003 5:32 AM Subject: RE: [AccessD] AccessXP and Server 2003 You question says Windows 2000 servers but your subject line says Server 2003. Which one are you asking about? Charlotte Foust -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 3:12 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] AccessXP and Server 2003 Has anyone encountered any problems running Win XP Professional & Office XP on desktops with Windows 2000 servers ? Message date : Dec 03 2003, 02:36 PM >From : Perry Harold To : 'Access Developers discussion and problem solving' Copy to : Subject : [AccessD] AccessXP and Server 2003 Has anyone had any problems with users being able to open a .mdb after moving the database to Windows Server 2003? I have set the permissions for both the folders and the database for full control individually for each of the 5 users involved. Three are able to use the database but two can't. Unless I missed an intermediate step each user was set up exactly the same way. Using my VB6 application the error is "Could not use "; file in use". Opening with AccessXP "Could not lock file" The database was on a NT 4.0 server before and there was no problem in the connection being made and multiple users were no problem. The resident drive was mapped on the NT box and is mapped the same way on the 2003 box. Any suggestions are welcomed. Perry Harold _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Dec 5 13:26:50 2003 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 5 Dec 2003 14:26:50 -0500 Subject: [AccessD] Wierd tabledefs problem. In-Reply-To: <916187228923D311A6FE00A0CC3FAA306C04A3@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB080@ADGSERVER> Hi all, We have some code that updates a BE table based upon a template table. This function has been working for about a million years. Anyway, after this function has updated some other tables, I go to update a particular table. When setting the tabledefs variable with Set tdfTarget = ldbTarget.TableDefs(lstrTableName) 'lstrTableName="Project" tdfTarget is Nothing after the assignment. Now, this function also will add the table if it does not exist in the BE. So when the above line fails, it proceeds to add the table to the BE tabledefs. Well, this fails because THE TABLE ALREADY EXISTS!!!! I can open a recordset against the particular table in the be using the ldbTarget variable. I can also do a "? ldbTarget.TableDefs("Project").name" in the immediate window and it tells me that it is not in the collection. But when I do a "? ldbTarget.TableDefs("Contracts").name", it prints out Contracts. Anyone have any ideas as to what may be going on? This is in Access 97 SP-2. I have compacted and repaired the BE, used JetComp on the BE and imported the BE into another MDB. Thanks, Bobby From bheid at appdevgrp.com Fri Dec 5 13:35:06 2003 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 5 Dec 2003 14:35:06 -0500 Subject: [AccessD] Wierd tabledefs problem. In-Reply-To: <916187228923D311A6FE00A0CC3FAA306CB4E6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB081@ADGSERVER> And that's supposed to be weird. LOL. Bobby From jcolby at colbyconsulting.com Fri Dec 5 13:39:16 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Fri, 5 Dec 2003 14:39:16 -0500 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) In-Reply-To: Message-ID: lol. I dont wanna! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 12:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I hope you feel better now that you've got that out of your system. Don't blame it on SP3. Those "enhancements" came in with security patches along the way. They just happened to be rolled up into SP3 as well. Now wipe the foam off your mouth and play nicely. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 9:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) If you truly think that SP3 has anything at ALL to do with enhancing security (other than Microsoft's) you are delusional. SP3 does nothing to prevent a virus from running on your machine. It does nothing to prevent Access from using VBA to form a virus and scramble the user's data, or watch for passwords and credit card numbers and email them out to an address NOT in the address book. On the other hand, it absolutely does trash an application that my client paid me to write for them. It prevents using Outlook automation to send mail in many instances. IOW, it does NOTHING AT all to enhance the security of my client, while causing a perfectly valid application to stop working. I mean a class action lawsuit for doing nothing to enhance security while screwing up valid applications, trashing code modules then hiding the fact that they were causing these problems, denying that anything was wrong, and causing me to waste a TON of time trying to figure out why my applications were corrupting form modules, then having the BALLS to force me to come begging them to give me a fix to the problem that they already had and weren't telling anyone they had. I mean THAT kind of class action lawsuit. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 12:19 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) You mean as opposed to a class action lawsuit for not providing adequate security? Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 9:10 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Fri Dec 5 13:40:11 2003 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Fri, 5 Dec 2003 11:40:11 -0800 (PST) Subject: [AccessD] Speed up Search Message-ID: <20031205194011.60718.qmail@web20416.mail.yahoo.com> I have a form that uses a linked SQL Server table. I have a name search that uses the recordsetclone in a DAO recordset to bookmark the postion and GoTo that record. I believe my problem is with the FindFirst. I have been advised to requery the form's recordset with a filter of the criteria in question. The only problem is that the user needs to scroll to the next record sometimes. If I filter, then the next record is no longer available. Any suggestions to having my cake and eating it to would be greatly appreciated. My code: If IsNull(cboFNAME) Or IsNull(cboLNAME) Then MsgBox "YOU ARE MISSING THE FIRST OR LAST NAME." Exit Sub End If Dim db As DAO.Database Dim rs As DAO.Recordset Set db = CurrentDb Set rs = Me.RecordsetClone rs.MoveLast rs.MoveFirst rs.FindFirst "LNAME = " & Chr(34) & cboLNAME & Chr(34) & " AND FNAME = " & Chr(34) & cboFNAME & Chr(34) If rs.NoMatch = False Then Me.Bookmark = rs.Bookmark End If cboLNAME = "" cboFNAME = "" cboLNAME.SetFocus Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Free Pop-Up Blocker - Get it now From john at winhaven.net Fri Dec 5 13:58:05 2003 From: john at winhaven.net (John Bartow) Date: Fri, 5 Dec 2003 13:58:05 -0600 Subject: [AccessD] Wierd tabledefs problem. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB080@ADGSERVER> Message-ID: Bobby, I've had a problem in the past using Project as a name in A97. Coul dbe a reserved word or something , I forget, but it is one of the reasons that compelled me to use Reddick's naming convention. I've never had a problem with tblProject :o) Just a thought JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid > Sent: Friday, December 05, 2003 1:27 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Wierd tabledefs problem. > > > Hi all, > > We have some code that updates a BE table based upon a template > table. This > function has been working for about a million years. > > Anyway, after this function has updated some other tables, I go > to update a > particular table. When setting the tabledefs variable with > > Set tdfTarget = ldbTarget.TableDefs(lstrTableName) > > 'lstrTableName="Project" > > tdfTarget is Nothing after the assignment. > > Now, this function also will add the table if it does not exist in the BE. > So when the above line fails, it proceeds to add the table to the BE > tabledefs. Well, this fails because THE TABLE ALREADY EXISTS!!!! > > I can open a recordset against the particular table in the be using the > ldbTarget variable. I can also do a "? > ldbTarget.TableDefs("Project").name" > in the immediate window and it tells me that it is not in the collection. > But when I do a "? ldbTarget.TableDefs("Contracts").name", it prints out > Contracts. > > Anyone have any ideas as to what may be going on? > > This is in Access 97 SP-2. I have compacted and repaired the BE, used > JetComp on the BE and imported the BE into another MDB. > > Thanks, > Bobby > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Fri Dec 5 14:04:06 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 12:04:06 -0800 Subject: [AccessD] Wierd tabledefs problem. Message-ID: Project has a specific meaning in Access 2000 and later, where the Visual Basic Editor is in use. Project refers to the VBA project. Charlotte Foust -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Wierd tabledefs problem. Bobby, I've had a problem in the past using Project as a name in A97. Coul dbe a reserved word or something , I forget, but it is one of the reasons that compelled me to use Reddick's naming convention. I've never had a problem with tblProject :o) Just a thought JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid > Sent: Friday, December 05, 2003 1:27 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Wierd tabledefs problem. > > > Hi all, > > We have some code that updates a BE table based upon a template table. > This function has been working for about a million years. > > Anyway, after this function has updated some other tables, I go to > update a particular table. When setting the tabledefs variable with > > Set tdfTarget = ldbTarget.TableDefs(lstrTableName) > > 'lstrTableName="Project" > > tdfTarget is Nothing after the assignment. > > Now, this function also will add the table if it does not exist in the > BE. So when the above line fails, it proceeds to add the table to the > BE tabledefs. Well, this fails because THE TABLE ALREADY EXISTS!!!! > > I can open a recordset against the particular table in the be using > the ldbTarget variable. I can also do a "? > ldbTarget.TableDefs("Project").name" > in the immediate window and it tells me that it is not in the > collection. But when I do a "? ldbTarget.TableDefs("Contracts").name", > it prints out Contracts. > > Anyone have any ideas as to what may be going on? > > This is in Access 97 SP-2. I have compacted and repaired the BE, used > JetComp on the BE and imported the BE into another MDB. > > Thanks, > Bobby > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bheid at appdevgrp.com Fri Dec 5 14:09:58 2003 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 5 Dec 2003 15:09:58 -0500 Subject: [AccessD] Wierd tabledefs problem. SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA306CB502@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB082@ADGSERVER> Thanks JB, but I just figured out what it was. A prior function had done something to that table and it was unavailable at that moment. DOH! I inherited this system, along with all of its $%@##@^% problems. LOL. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, December 05, 2003 2:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Wierd tabledefs problem. Bobby, I've had a problem in the past using Project as a name in A97. Coul dbe a reserved word or something , I forget, but it is one of the reasons that compelled me to use Reddick's naming convention. I've never had a problem with tblProject :o) Just a thought JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid > Sent: Friday, December 05, 2003 1:27 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Wierd tabledefs problem. > > > Hi all, > > We have some code that updates a BE table based upon a template table. > This function has been working for about a million years. > > Anyway, after this function has updated some other tables, I go to > update a particular table. When setting the tabledefs variable with > > Set tdfTarget = ldbTarget.TableDefs(lstrTableName) > > 'lstrTableName="Project" > > tdfTarget is Nothing after the assignment. > > Now, this function also will add the table if it does not exist in the > BE. So when the above line fails, it proceeds to add the table to the > BE tabledefs. Well, this fails because THE TABLE ALREADY EXISTS!!!! > > I can open a recordset against the particular table in the be using > the ldbTarget variable. I can also do a "? > ldbTarget.TableDefs("Project").name" > in the immediate window and it tells me that it is not in the > collection. But when I do a "? ldbTarget.TableDefs("Contracts").name", > it prints out Contracts. > > Anyone have any ideas as to what may be going on? > > This is in Access 97 SP-2. I have compacted and repaired the BE, used > JetComp on the BE and imported the BE into another MDB. > > Thanks, > Bobby > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Dec 5 14:17:01 2003 From: john at winhaven.net (John Bartow) Date: Fri, 5 Dec 2003 14:17:01 -0600 Subject: !RE: [AccessD] Wierd tabledefs problem. In-Reply-To: Message-ID: Charlotte, As I recall I am indebted to you for pointing that out to me way back when. Sometimes small oversights make for big problems! Thanks again! :o) JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > Foust > Sent: Friday, December 05, 2003 2:04 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Wierd tabledefs problem. > > > Project has a specific meaning in Access 2000 and later, where the > Visual Basic Editor is in use. Project refers to the VBA project. > > Charlotte Foust > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Friday, December 05, 2003 11:58 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Wierd tabledefs problem. > > > Bobby, > I've had a problem in the past using Project as a name in A97. Coul dbe > a reserved word or something , I forget, but it is one of the reasons > that compelled me to use Reddick's naming convention. > > I've never had a problem with tblProject :o) > > Just a thought > JB > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid > > Sent: Friday, December 05, 2003 1:27 PM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Wierd tabledefs problem. > > > > > > Hi all, > > > > We have some code that updates a BE table based upon a template table. > > > This function has been working for about a million years. > > > > Anyway, after this function has updated some other tables, I go to > > update a particular table. When setting the tabledefs variable with > > > > Set tdfTarget = ldbTarget.TableDefs(lstrTableName) > > > > 'lstrTableName="Project" > > > > tdfTarget is Nothing after the assignment. > > > > Now, this function also will add the table if it does not exist in the > > > BE. So when the above line fails, it proceeds to add the table to the > > BE tabledefs. Well, this fails because THE TABLE ALREADY EXISTS!!!! > > > > I can open a recordset against the particular table in the be using > > the ldbTarget variable. I can also do a "? > > ldbTarget.TableDefs("Project").name" > > in the immediate window and it tells me that it is not in the > > collection. But when I do a "? ldbTarget.TableDefs("Contracts").name", > > > it prints out Contracts. > > > > Anyone have any ideas as to what may be going on? > > > > This is in Access 97 SP-2. I have compacted and repaired the BE, used > > > JetComp on the BE and imported the BE into another MDB. > > > > Thanks, > > Bobby > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From starkey at wanadoo.nl Fri Dec 5 14:36:40 2003 From: starkey at wanadoo.nl (StaRKeY) Date: Fri, 5 Dec 2003 21:36:40 +0100 Subject: [AccessD] Disable undo function from VBA. In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF6DE7@stekelbes.ithelps.local> Message-ID: (Very big grin) Always nice to see developers being pummeled around with an Access issue:-) Erwin, I've seen solutions for 'problems' you couldn't imagine but despite the fact there might be a better solution... if it works it works! (Especially if time is breathing in your neck) Glad to hear you have a working solution. Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: vrijdag 5 december 2003 15:28 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. I came up with this With Me.Recordset .Edit .Fields("Description") = Time 'just for test (and other fields .Update End With DoCmd.RunCommand acCmdSaveRecord It looks a bit redundant but you all know that me.description is a reference to the control on the form and Me.Recordset.fields("Description") is a direct reference to the recordset. The dirty thing does not work, because I already did a accmdsaverecord, so you cant save twice. Unless there is a clear_the_undo_cache command, this is the best I can come up with. I don't wanna create my own menu/toolbars have been busy in the past with that and I hate it... I have to make them tree times in different languages.... Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Erwin Craps - IT Helps Verzonden: vrijdag 5 december 2003 8:24 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] Disable undo function from VBA. Hum Please note that this "undo saved record" behavior I experiance is in both A97 and AXP. And in a FORM. I'll try the dirty form, but as it wlll save the record I don't believe this will solve the problem. Even dooing a me.recordset.edit, fields ("")="jkj";.update does not seem to help, but I'm not totaly out of that due to lack of time. I find this pretty heavy stuff.... The undo event neither helps. Undo event (form) only seems to occur when a field is undood. Not when clicking "undo saved record". Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens David McAfee Verzonden: vrijdag 5 december 2003 1:49 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] Disable undo function from VBA. Not that I ever do this either... :P but... undo is not multi level. As Charlotte said, you can move to any record, but you can only undo the last change. both tables and queries (non snap shot of course) D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. I never use it myself or let my users near the tables, so I don't have any answers. I don't know about multi-level, but you can move to a different record and the undo will undo the edited one. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 4:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. WOW. Constantly amazed, though that would explain it. I occasionally edit records directly in tables myself but my users are NEVER allowed in tables. Thus I just never noticed that. Does it apply if you have edited the record via a form, or only through the table? Through a query? Through a recordset? What happens if a second record was edited? Multi-level undo? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Thursday, December 04, 2003 4:51 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. You'll see it in the edit menu from a table, John, if the full menus are available and you have edited a record. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Thursday, December 04, 2003 1:26 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Eric, I'm not sure what you are referring to. Dirty is a property of a form. It is set when the record is first modified and cleared when the save occurs. If you set it false in code, it saves the record. Of all that I am sure because I use it. Now what exactly is "Undo saved record"? I know of no such thing in Access. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of StaRKeY Sent: Thursday, December 04, 2003 4:02 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Have you checked this John?:-) I ask because I played with a table, adding a new record, hop onto another old/new record and the undo saved record feature still worked. Isn't dirty true if the record isn't saved yet? Regards, Eric Starkenburg -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: donderdag 4 december 2003 21:46 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Disable undo function from VBA. Setting dirty to false saves the record so there would definitely be no undo available after that! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, December 04, 2003 3:38 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Disable undo function from VBA. What happens if you set dirty to false? Then wouldn't the undo fail ('undo not available at this time' or some such error which you could trap)? Rocky ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Thursday, December 04, 2003 4:58 AM Subject: RE: [AccessD] Disable undo function from VBA. > I'm busy testing some stuff, like using the me.recordset and > edit/update the fields instead of the controls on a form. > > I also looked at the undo event of the form, but that doesn't work > neither... > > What I really would like to have is some kind of "Clear the undo > cache" function. > > I'll let you know what. > Closing form and opening again is not an option for me. > > Erwin > > > -----Oorspronkelijk bericht----- > Van: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] Namens Ervin Brindza > Verzonden: donderdag 4 december 2003 13:35 > Aan: Access Developers discussion and problem solving > Onderwerp: Re: [AccessD] Disable undo function from VBA. > > > > ----- Original Message ----- > From: "StaRKeY" > To: "Access Developers discussion and problem solving" > > Sent: 04 December, 2003 12:42 PM > Subject: RE: [AccessD] Disable undo function from VBA. > > > > Correct me if I'm wrong but wouldn't this imply that you close and > > open > the > > form every time a new value in a record is changed?:-) > > > Erwin wrote: > "When printing I programaticaly give the invoice a number and save the > record." So, I think to close the form, only in the OnClick event of a > command button. And that have to be rarely... And after the printing I > suppose that the invoice is finished so the code can be even simpler: > DoCmd.RunCommand acCmdSave DoCmd.Close > > but Erwin will decide :) > Ervin > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 2-12-2003 Tested on: 4-12-2003 22:01:32 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --- avast! Antivirus: Outbound message clean. Virus Database (VPS): 5-12-2003 Tested on: 5-12-2003 21:36:38 avast! is copyright (c) 2000-2003 ALWIL Software. http://www.avast.com From KIsmert at TexasSystems.com Fri Dec 5 14:09:17 2003 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 5 Dec 2003 14:09:17 -0600 Subject: [AccessD] Access Toolbars In-Reply-To: <11269511.1070535334454.JavaMail.www@wwinf3004> Message-ID: <003301c3bb6b$a9eafbb0$2a3ca8c0@TEXASSYSTEMS.COM> Paul, This is my second try. The first email didn't make it, somehow. Here are some routines I have written that may help. * ShowMenuBar hides/shows the main menu bar * ShowCommandBars displays all menu bars, and lets you search for a name * ShowCBarControls displays all controls for a specified menu bar Notes: * You will need a reference to the Microsoft Office Object Library, appropriate to the version you're using * These routines will work in almost any Office program. - Ken Public Sub ShowMenuBar(fVisible As Boolean) Dim cBar As Office.CommandBar Set cBar = CommandBars("Menu Bar") cBar.Visible = fVisible End Sub Public Sub ShowCommandBars(Optional strLike As String = "*") Dim strOut As String Dim cBar As Office.CommandBar If Right$(strLike, 1) <> "*" Then strLike = strLike & "*" End If strOut = "CommandBars" & IIf(strLike = "*", ": ", " Like '" & strLike & "':") & vbCr & vbCr For Each cBar In Application.CommandBars If cBar.Name Like strLike Then strOut = strOut & cBar.Name & "; Index:=" & cBar.Index & "; Type:=" & cBar.Type & vbCr End If Next MsgBox strOut End Sub Public Sub ShowCBarControls(CBarName As String) Dim strOut As String Dim ctl As Office.CommandBarControl Dim cBar As Office.CommandBar On Error GoTo HandleErr Set cBar = Application.CommandBars(CBarName) strOut = cBar.Name & " Controls: " & vbCr & vbCr For Each ctl In cBar.Controls strOut = strOut & ctl.Caption & "; ID-" & ctl.ID & "; Type-" & ctl.Type & vbCr Next Resume_ShowControls: MsgBox strOut Exit Sub HandleErr: strOut = "Commandbar '" & CBarName & "' not found." Resume Resume_ShowControls End Sub -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, December 04, 2003 4:56 AM To: accessd Subject: [AccessD] Access Toolbars To all, For the life of me I can?t see how to hide an Access toolbar via VBA code, I ?m pretty sure you can do it. Basically I want to hide all the built in Access toolbars when the user logs into the application, and only display my custom ones. Could somebody please save my brainache and tell e how to do this . Thanks in advance (once more forever in debt to the list) Paul Hartland Database Designer/Developer. Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytimeFrom paul.hartland at fsmail.net Thu Dec 4 05:12:00 2003 From DWUTKA at marlow.com Fri Dec 5 16:59:51 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 5 Dec 2003 16:59:51 -0600 Subject: [AccessD] Boy I'm glad it's Friday! Message-ID: <2F8793082E00D4119A1700B0D0216BF80222764A@main2.marlow.com> Cause this was just too hilarious to not share! http://www.satirewire.com/features/siliconpines/acf.shtml Drew From markamatte at hotmail.com Fri Dec 5 17:08:51 2003 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 05 Dec 2003 23:08:51 +0000 Subject: [AccessD] Scrolling back to previous Record Message-ID: Charlotte, I did...but found some problems with the sample...I sent the possible bug to the site. I found a temporary solution by setting the form to data entry...and using ME.Refresh after each save...so even if they try to scroll with the mouse...or any other way...the records aren't there to scroll. If you can think of any problems this may cause...please let me know. Thanks, Mark >From: "Charlotte Foust" >Reply-To: Access Developers discussion and problem >solving >To: "Access Developers discussion and problem >solving" >Subject: RE: [AccessD] Scrolling back to previous Record >Date: Thu, 4 Dec 2003 09:44:45 -0800 > >Try Stephan Lebans' site: http://www.lebans.com/mousewheelonoff.htm > >Charlotte Foust > >-----Original Message----- >From: Mark A Matte [mailto:markamatte at hotmail.com] >Sent: Thursday, December 04, 2003 8:37 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Scrolling back to previous Record > > > >Thanks, > >But this did not prevent it. > >Thanks, > >Mark > > >From: "Mike & Doris Manning" > >Reply-To: Access Developers discussion and problem > >solving > >To: "'Access Developers discussion and problem > >solving'" > >Subject: RE: [AccessD] Scrolling back to previous Record > >Date: Thu, 4 Dec 2003 11:02:10 -0500 > > > >Set the Form's Cycle property (found on the Other tab) to "Current > >Record". > > > >Doris Manning > >Database Administrator > >Hargrove Inc. > >www.hargroveinc.com > > > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > >Sent: Thursday, December 04, 2003 10:23 AM > >To: accessd at databaseadvisors.com > >Subject: [AccessD] Scrolling back to previous Record > > > > > >Hello All, > > > >In A97 I tried disabling the mouse wheel...apparently not very > >well...then the user uses arrow keys to navigate records. What is the > >best way to prevent the user from Moving to a previously saved record? > > > >Thanks, > > > >Mark A. Matte > > > >_________________________________________________________________ > >Browse styles for all ages, from the latest looks to cozy weekend wear > >at MSN Shopping. And check out the beauty products! > >http://shopping.msn.com > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Take advantage of our best MSN Dial-up offer of the year - six months >@$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Shop online for kids? toys by age group, price range, and toy category at MSN Shopping. No waiting for a clerk to help you! http://shopping.msn.com From DWUTKA at marlow.com Fri Dec 5 17:09:57 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 5 Dec 2003 17:09:57 -0600 Subject: [AccessD] Minor request.... Message-ID: <2F8793082E00D4119A1700B0D0216BF80222764D@main2.marlow.com> Folks, I know many people use their Out Of Office features of Outlook/Exchange, but could you please setup rules to prevent that feature from affecting list traffic? Drew From serbach at new.rr.com Fri Dec 5 17:15:49 2003 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 5 Dec 2003 17:15:49 -0600 Subject: [AccessD] Boy I'm glad it's Friday! Message-ID: <20031205171549.1772268962.serbach@new.rr.com> Drew, Decent site! I'm a "personal technology coach" for an 85 year-old gent. I think I'll print some of this up and give it to him. I'd ask him to print it except that, well, he hasn't replaced the color cartridge in his DeskJet because there's still ink in his black cartridge. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Message created with Bloomba Disclaimer: No tree was killed in the transmission of this message. However, several coulombs of electrons were temporarily inconvenienced. From DWUTKA at marlow.com Fri Dec 5 17:29:28 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 5 Dec 2003 17:29:28 -0600 Subject: [AccessD] Boy I'm glad it's Friday! Message-ID: <2F8793082E00D4119A1700B0D0216BF802227650@main2.marlow.com> LOL! Drew -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Friday, December 05, 2003 5:16 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Boy I'm glad it's Friday! Drew, Decent site! I'm a "personal technology coach" for an 85 year-old gent. I think I'll print some of this up and give it to him. I'd ask him to print it except that, well, he hasn't replaced the color cartridge in his DeskJet because there's still ink in his black cartridge. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Message created with Bloomba Disclaimer: No tree was killed in the transmission of this message. However, several coulombs of electrons were temporarily inconvenienced. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Fri Dec 5 17:35:48 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Fri, 05 Dec 2003 15:35:48 -0800 Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Message-ID: <249C1CB246997C48BB74963CCD361C1B07C927@pnlmse28.pnl.gov> Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov From cfoust at infostatsystems.com Fri Dec 5 17:43:49 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 15:43:49 -0800 Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Message-ID: Recognizing it isn't enough, even if it works. Remember, the operating system is on the hard drive, unless this is a secondary drive. Charlotte Foust -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 3:36 PM To: dba-tech at databaseadvisors.com; AccessD at databaseadvisors.com Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Dec 5 17:46:27 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 5 Dec 2003 17:46:27 -0600 Subject: [AccessD] Help with moving files from one hard drive to anot her (Cross posted) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227651@main2.marlow.com> Okay. Putting the old hard drive in the new machine is the best idea. BIG CATCH on that. The catch is he'll need an open IDE spot. What I HIGHLY recommend is that he open his new computer, take the connections from his CD-ROM and plug them into the old hard drive. Then boot up. Your computer should have 2 IDE ports, a primary and secondary. Off of those ports are your IDE cables, which have two connections for a master and a slave. You need to make sure you have only one master on each cable, and if there is a second device, that it's configured as a slave. Typically, a lot of prebuilt computers have the HD as a Master on the primary IDE, and the CD-Rom as the Master on the secondary IDE. That's why I suggested just swapping cables with the CD-ROM. Of course if there are two CD-Rom's, you'll need the one that is the master. As for plugging them 'together', to connect two computer directly through their NICs, you need a cross-over cable, not a normal Cat-5 cable. Drew P.S.--further discussion on this thread should move to the Tech list.... -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 5:36 PM To: dba-tech at databaseadvisors.com; AccessD at databaseadvisors.com Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Fri Dec 5 17:46:32 2003 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 06 Dec 2003 09:46:32 +1000 Subject: [AccessD] Minor request.... In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222764D@main2.marlow.com> Message-ID: <3FD1A578.11596.5B8E09@localhost> On 5 Dec 2003 at 17:09, Drew Wutka wrote: > Folks, I know many people use their Out Of Office features of > Outlook/Exchange, but could you please setup rules to prevent that feature > from affecting list traffic? > > Drew And before you do that, could I suggest you also take a look at http://www.informationweek.com/story/showArticle.jhtml?articleID=14700320 -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Kenneth.Stoker at pnl.gov Fri Dec 5 17:54:02 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Fri, 05 Dec 2003 15:54:02 -0800 Subject: [AccessD] Help with moving files from one hard drive to another(Cross posted) Message-ID: <249C1CB246997C48BB74963CCD361C1B014A02D6@pnlmse28.pnl.gov> No, Win98 is on the hard drive, not a secondary drive. So it sounds like there would be a conflict between the two hard drives trying to run their respective OS. So it sounds like that is not an option. Then, is connecting the two computers via their NICs an option or should I tell him to get ready for a long weekend swapping files with a floppy disk? Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, December 05, 2003 3:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) Recognizing it isn't enough, even if it works. Remember, the operating system is on the hard drive, unless this is a secondary drive. Charlotte Foust -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 3:36 PM To: dba-tech at databaseadvisors.com; AccessD at databaseadvisors.com Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 5 18:23:36 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 5 Dec 2003 16:23:36 -0800 Subject: [AccessD] Help with moving files from one hard drive to another(Cross posted) Message-ID: Not if you are putting the disk in as a second, non-boot drive. You need to follow this in the Tech list instead of here. Charlotte Foust -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 3:54 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) No, Win98 is on the hard drive, not a secondary drive. So it sounds like there would be a conflict between the two hard drives trying to run their respective OS. So it sounds like that is not an option. Then, is connecting the two computers via their NICs an option or should I tell him to get ready for a long weekend swapping files with a floppy disk? Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, December 05, 2003 3:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) Recognizing it isn't enough, even if it works. Remember, the operating system is on the hard drive, unless this is a secondary drive. Charlotte Foust -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 3:36 PM To: dba-tech at databaseadvisors.com; AccessD at databaseadvisors.com Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Dec 5 18:38:51 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 5 Dec 2003 18:38:51 -0600 Subject: [AccessD] Help with moving files from one hard drive to anoth er(Cross posted) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227652@main2.marlow.com> No, as long as the OS is on the Hard drive that is the primary master, no problem at all (the BIOS will use the first boot sector it finds.....) Drew -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 5:54 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) No, Win98 is on the hard drive, not a secondary drive. So it sounds like there would be a conflict between the two hard drives trying to run their respective OS. So it sounds like that is not an option. Then, is connecting the two computers via their NICs an option or should I tell him to get ready for a long weekend swapping files with a floppy disk? Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, December 05, 2003 3:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) Recognizing it isn't enough, even if it works. Remember, the operating system is on the hard drive, unless this is a secondary drive. Charlotte Foust -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 3:36 PM To: dba-tech at databaseadvisors.com; AccessD at databaseadvisors.com Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Fri Dec 5 21:34:18 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 05 Dec 2003 22:34:18 -0500 Subject: [AccessD] OT: Friday Message-ID: <3FD107EA.30322.17C6AC0@localhost> Some folks have too much talent AND time on their hands http://www.romanm.ch/ascii-movies.htm -- Bryan Carbonnell - carbonnb at sympatico.ca After any salary raise, you will have less money at the end of the month than you did before. From kathryn at bassett.net Fri Dec 5 23:28:36 2003 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 5 Dec 2003 21:28:36 -0800 Subject: [AccessD] Boy I'm glad it's Friday! In-Reply-To: <20031205171549.1772268962.serbach@new.rr.com> Message-ID: The lady I work for has a cousin who is 95 and absolutely loves technology. For Thanksgiving, he even set up his digital camera and did a one minute movie clip which he then sent her as an attachment. He started computers when he was in his late 80's, and outshines many 20somethings. Guess he'll not end up in this place. -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. > Erbach > Sent: 05 Dec 2003 3:16:PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Boy I'm glad it's Friday! > > > Drew, > > Decent site! I'm a "personal technology coach" for an 85 year-old gent. I think I'll > print some of this up and give it to him. I'd ask him to print it except that, well, > he hasn't replaced the color cartridge in his DeskJet because there's still ink in > his black cartridge. > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > Message created with Bloomba > > Disclaimer: No tree was killed in the transmission of this message. However, several > coulombs of electrons were temporarily inconvenienced. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Dec 6 10:29:25 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 06 Dec 2003 08:29:25 -0800 Subject: [AccessD] OT: Interesting Information In-Reply-To: Message-ID: HI All: Here is a couple of interesting subjects ranging from slightly to very OT 1. Here is something interesting. It seems that there is a Trojan variant out that can not be removed with any standard processes (Spybot wouldn't touch it) but some fellow have created a special program, which he distributes for free, that can remove it from your server or station. Take a look at this: http://www.spywareinfo.com/articles/cws/ 2. Microsoft is being...well Microsoft: http://news.independent.co.uk/digital/features/story.jsp?story=469639 and http://macdailynews.com/comments.php?id=P2268_0_1_0 . This might/well affect the way all applications are designed and delivered. Jim From accessd at shaw.ca Sat Dec 6 14:15:13 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 06 Dec 2003 12:15:13 -0800 Subject: [AccessD] The NEW Newsletter. In-Reply-To: <3FD1A578.11596.5B8E09@localhost> Message-ID: Hi All: A couple of important announcements!! The new newsletter is out! Go to www.databaseadvisors.com and follow the links. If there are any questions, comments or you would like to enter an article on particular favour subject of your own, drop a line to Susan Harkins at mailto:pubs-dir at databaseadvisors.com, final dates for submissions will be at the end of the month. The webring will soon be ready for 'prime-time' so all those List-members who would like more "Good" traffic to their site send your request to Jim Lawrence mailto:webmaster at databaseadvisors.com or Andy Lacey mailto:andy at minstersystems.co.uk Enjoy :-) Jim From jcolby at colbyconsulting.com Sun Dec 7 07:12:23 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sun, 7 Dec 2003 08:12:23 -0500 Subject: [AccessD] The NEW Newsletter. In-Reply-To: Message-ID: Jim, Would you please contact me to help me get the webring stuff set up on my site. Thanks, John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, December 06, 2003 3:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] The NEW Newsletter. Hi All: A couple of important announcements!! The new newsletter is out! Go to www.databaseadvisors.com and follow the links. If there are any questions, comments or you would like to enter an article on particular favour subject of your own, drop a line to Susan Harkins at mailto:pubs-dir at databaseadvisors.com, final dates for submissions will be at the end of the month. The webring will soon be ready for 'prime-time' so all those List-members who would like more "Good" traffic to their site send your request to Jim Lawrence mailto:webmaster at databaseadvisors.com or Andy Lacey mailto:andy at minstersystems.co.uk Enjoy :-) Jim _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Sun Dec 7 13:32:23 2003 From: tortise at paradise.net.nz (Tortise) Date: Mon, 08 Dec 2003 08:32:23 +1300 Subject: [AccessD] Form instances (AXP) and now AY2k3 References: Message-ID: <194e01c3bcf8$d6df3710$1e00a8c0@cheqsoft.local> If I may belatedly reply...(?) Because how else can the user know the current content of the instance they wish to navigate back to, form(0), form(1) etc is not really helpful. Or am I missing something here? Expressed differently can one retrieve the current record(s) in a form instance to list the current records in each forms instance, and use a combo box to facilitate the user navigating to each form with record names they understand? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: accessd at databaseadvisors.com Sent: Wednesday, April 16, 2003 9:22 AM Subject: RE: [AccessD] Form instances (AXP) When you use For Each frm in Forms, you're iterating through the members of the collection of open forms and you're going by index rather than by name. That's the equivalent of Forms(0), Forms(1), etc., not Forms("frmMyForm"), although you're free to address them using the numeric index ... if you know which one you need. Why would you expect the caption to give you meaningful results? That is not a difference in the name of the form, and anyhow you aren't looking for a different form, you just want a particular instance of that form; so if you can create a key that will get you there, why not use it? Charlotte Foust -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: Tuesday, April 15, 2003 11:04 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Sure, in our own collection, but that's not the Access Forms collection, which by the way does add a reference to the multiple forms, but all the instances of the same form share the same name. So, while we can't use Debug.Print Forms("frmMyForm").Caption and expect to get meaningful results, we can use 'For Each frm In Forms....' Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, April 15, 2003 2:27 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Actually, you could use the name plus an incremental number as the key when you add the item to the collection, but it is natural that you can't address it the conventional way if you have multiple instances open. Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 5:18 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Form instances (AXP) Thanks Neal. I have ADH 97. I'll try and wrestle it off my colleague!! -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 15-Apr-2003 14:01 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) I adapted code from ADH that worked well. Basically you declare a form variable as Form_MyForm and work with it. They use a collection to hold pointers to the instances of a form and code to add and remove items from the collection. The one hitch that I quickly hit was that you can't reference your form by name, in other words you can't use Forms!MyForm. If you don't have ADH I could probably put something together for you. Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 8:41 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] Form instances (AXP) Hi all Does anyone know where there is any documentation on opening multiple instances of a form? I can't find anything in the help file or on MSDN. TIA Roz _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Dec 7 15:56:28 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 07 Dec 2003 13:56:28 -0800 Subject: [AccessD] The NEW Newsletter. In-Reply-To: Message-ID: Hi John: I will send you a email off-line. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Sunday, December 07, 2003 5:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] The NEW Newsletter. Jim, Would you please contact me to help me get the webring stuff set up on my site. Thanks, John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Saturday, December 06, 2003 3:15 PM To: Access Developers discussion and problem solving Subject: [AccessD] The NEW Newsletter. Hi All: A couple of important announcements!! The new newsletter is out! Go to www.databaseadvisors.com and follow the links. If there are any questions, comments or you would like to enter an article on particular favour subject of your own, drop a line to Susan Harkins at mailto:pubs-dir at databaseadvisors.com, final dates for submissions will be at the end of the month. The webring will soon be ready for 'prime-time' so all those List-members who would like more "Good" traffic to their site send your request to Jim Lawrence mailto:webmaster at databaseadvisors.com or Andy Lacey mailto:andy at minstersystems.co.uk Enjoy :-) Jim _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Sun Dec 7 17:21:37 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 8 Dec 2003 10:21:37 +1100 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) References: <3FD0CC4C.2030109@verizon.net> Message-ID: <00ce01c3bd18$dd5006e0$41619a89@DDICK> Thanks Francisco ----- Original Message ----- From: "Francisco H Tapia" To: "Access Developers discussion and problem solving" Sent: Saturday, December 06, 2003 5:19 AM Subject: Re: [AccessD] A2K: Runtime version of 2003 (Crap) > I have this little function that uses BLAT to email, this is what I've been using so I don't meet up with the problematic issues of SPx or SRx for Office... > > It's available at the following URL... > http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tapia,Francsico > > -- > -Francisco > > > John W. Colby wrote: > > >If you truly think that SP3 has anything at ALL to do with enhancing > >security (other than Microsoft's) you are delusional. SP3 does nothing to > >prevent a virus from running on your machine. It does nothing to prevent > >Access from using VBA to form a virus and scramble the user's data, or watch > >for passwords and credit card numbers and email them out to an address NOT > >in the address book. > > > >On the other hand, it absolutely does trash an application that my client > >paid me to write for them. It prevents using Outlook automation to send > >mail in many instances. > > > >IOW, it does NOTHING AT all to enhance the security of my client, while > >causing a perfectly valid application to stop working. > > > >I mean a class action lawsuit for doing nothing to enhance security while > >screwing up valid applications, trashing code modules then hiding the fact > >that they were causing these problems, denying that anything was wrong, and > >causing me to waste a TON of time trying to figure out why my applications > >were corrupting form modules, then having the BALLS to force me to come > >begging them to give me a fix to the problem that they already had and > >weren't telling anyone they had. > > > >I mean THAT kind of class action lawsuit. > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > >Foust > >Sent: Friday, December 05, 2003 12:19 PM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > > > > >You mean as opposed to a class action lawsuit for not providing adequate > >security? > > > >Charlotte Foust > > > >-----Original Message----- > >From: John W. Colby [mailto:jcolby at colbyconsulting.com] > >Sent: Friday, December 05, 2003 9:10 AM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > > > > >I'm simply pointing out that installing SP3 is not a panacea for the > >problem you are discussing. Many developers don't use Outlook > >automation so they don't care. If they DO use it however, that portion > >of their app is trashed just by updating to SP3. > > > >I personally have lost an estimated 60 hours to this problem over the > >last few years. I'd LOVE to participate in a class action lawsuit to > >recover my lost wages. > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > >Foust > >Sent: Friday, December 05, 2003 11:58 AM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > > > > >That's an automation problem, John. There are workarounds (like > >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. > >Installing SR3 will *break* the apps by popping up the security dialogs > >when you try to send mail automatically, but it won't destroy them. NOT > >installing SR3 when you have 2002 or 2003 apps also installed *can* > >destroy a 2000 Access database. > > > >Charlotte Foust > > > >-----Original Message----- > >From: John W. Colby [mailto:jcolby at colbyconsulting.com] > >Sent: Friday, December 05, 2003 8:50 AM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > > > > >Installing SP3 will also toast any apps which try to use Outlook to send > >mail using the address book. > > > >8-( > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte > >Foust > >Sent: Friday, December 05, 2003 11:37 AM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > > > > >As Mike Groh's editorial, referenced in your other post, indicates, you > >appear to have run afoul of the conflict between the O2k version of the > >vbe6.dll and the version installed with any MS 2002 app. It apparently > >also happens if you install a 2003 app, which makes sense. The cure is > >to patch the 2000 MSAccess.exe, and it always annoyed me that being > >broken by a later version was considered a bug in *2000*!! Installing > >SR-3 should cure the bug, but it won't recover any database that got > >toasted by the problem. > > > >Charlotte Foust > > > >-----Original Message----- > >From: Darren DICK [mailto:d.dick at uws.edu.au] > >Sent: Thursday, December 04, 2003 6:07 PM > >To: AccessD List > >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > > > > >Hello all > >I recently installed the runtime version of Access 2003. > > > >This piece of crap has taken over and now all my access apps open in a > >2003 shell. I keep getting error messages about the potential damage the > >code within the dB can cause and am prompted each time I open a dB if I > >wish to continue or cancel > > > >I have tried unsuccessfully to remove Access 2003 Runtime from Control > >Panel. at least on 4 occasions. I have re-installed Office and Access > >2000 - Still no joy. So I deleted the folder (though not all files. > >'Cause Widoze had ' em opened I presume) > > > >On top of all that I getting very strange errors each time I open a db > >or try to view the code for an even or control. Error message as > >follows. (This message would appear even before I deleted the folder - > >yes I have re-booted many times) > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >Microsoft Visual Basic (Msgbox Caption) > >Error Accessing File. Network Connection May have been lost > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Anyone seen this or better still anyone got a solution? > > > >Many thanks in advance > > > >Darren > > > > > >_______________________________________________ > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From connie.kamrowski at agric.nsw.gov.au Sun Dec 7 16:55:09 2003 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Mon, 8 Dec 2003 09:55:09 +1100 Subject: [AccessD] Help with moving files from one hard drive to another(Cross posted) Message-ID: Ken, Before getting my current position I was a tech help analyst for 3 years. 1. You can plug a second HDD into a winXP machine and have no conflict on boot. This is because the Boot.ini will look to the master drive for the windows install, If it did happen to pick up the second OS install it will ask which one you want to run. To do this you WILL need to set the win98 drive to slave if you are plugging them both into one IDE cable. 2. your only issue is going to be if the win98 machine is not formatted in FAT32 ... if this is the case then winXP will not see the drive. I have done this on probably 50 occassions and have had it work 98% of these. Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange "Stoker, Kenneth E" To: Access Developers discussion and problem solving Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) 06/12/2003 10:54 AM Please respond to Access Developers discussion and problem solving No, Win98 is on the hard drive, not a secondary drive. So it sounds like there would be a conflict between the two hard drives trying to run their respective OS. So it sounds like that is not an option. Then, is connecting the two computers via their NICs an option or should I tell him to get ready for a long weekend swapping files with a floppy disk? Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, December 05, 2003 3:44 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with moving files from one hard drive to another(Cross posted) Recognizing it isn't enough, even if it works. Remember, the operating system is on the hard drive, unless this is a secondary drive. Charlotte Foust -----Original Message----- From: Stoker, Kenneth E [mailto:Kenneth.Stoker at pnl.gov] Sent: Friday, December 05, 2003 3:36 PM To: dba-tech at databaseadvisors.com; AccessD at databaseadvisors.com Subject: [AccessD] Help with moving files from one hard drive to another (Cross posted) Everyone, I have a co-worker who came to me and asked me how to get the files off his old computer onto his new computer. First questions I asked were do you have any larger capacity media drives, cd burner, zip drive, etc. Answer is no. So, I thought it should be possible for him to open his old computer, take out the hard drive, put it in his new computer and the new computer on boot up should recognize the older hard drive. Is this correct? Old machine: PII 233MHz running Win98 New machine: PIV 2.66 GHz running WinXP Pro. Another option is that he says both machines have NICs. Can he just plug the two machines together through the NICs and have them recognize each other? I have to admit that I haven't tried to do things this way myself so I hope that some extra guidance can help us get this right. Any help offered is greatly appreciated. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From Erwin.Craps at ithelps.be Mon Dec 8 01:48:18 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 8 Dec 2003 08:48:18 +0100 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF83@stekelbes.ithelps.local> This Outlook automation security thing is pretty easy solvable when using Outlook combined with Exchange server. There is a form that needs to be installed in the public Exchange folder and a registry key on each machine. By this you can turn of several security issues (like blocking some file type and automation). I use Outlook automation for several years now without any problem (except for a "send as" bug in O2K3). Ofcourse your network needs to be protected with other means if you turn of Outlook security. But a network protection should be a default issue when having Exchange server. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby Verzonden: vrijdag 5 december 2003 18:10 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Mon Dec 8 03:07:17 2003 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Mon, 8 Dec 2003 10:07:17 +0100 Subject: [AccessD] Access 2003 In-Reply-To: <00ce01c3bd18$dd5006e0$41619a89@DDICK> Message-ID: Dear group, currently I am still developing with Access 2000, since all my customers use it, too. Is there any need for upgrading to Access XP or 2003? Is there anything really new or substantially better in those versions? TIA, Michael From bheid at appdevgrp.com Mon Dec 8 07:07:57 2003 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 8 Dec 2003 08:07:57 -0500 Subject: [AccessD] Wierd tabledefs problem. In-Reply-To: <916187228923D311A6FE00A0CC3FAA306CB50B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB085@ADGSERVER> Thanks for the heads up Charlotte. I'll look into renaming. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 3:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Wierd tabledefs problem. Project has a specific meaning in Access 2000 and later, where the Visual Basic Editor is in use. Project refers to the VBA project. Charlotte Foust -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Wierd tabledefs problem. Bobby, I've had a problem in the past using Project as a name in A97. Coul dbe a reserved word or something , I forget, but it is one of the reasons that compelled me to use Reddick's naming convention. I've never had a problem with tblProject :o) Just a thought JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid > Sent: Friday, December 05, 2003 1:27 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Wierd tabledefs problem. > > > Hi all, > > We have some code that updates a BE table based upon a template table. > This function has been working for about a million years. > > Anyway, after this function has updated some other tables, I go to > update a particular table. When setting the tabledefs variable with > > Set tdfTarget = ldbTarget.TableDefs(lstrTableName) > > 'lstrTableName="Project" > > tdfTarget is Nothing after the assignment. > > Now, this function also will add the table if it does not exist in the > BE. So when the above line fails, it proceeds to add the table to the > BE tabledefs. Well, this fails because THE TABLE ALREADY EXISTS!!!! > > I can open a recordset against the particular table in the be using > the ldbTarget variable. I can also do a "? > ldbTarget.TableDefs("Project").name" > in the immediate window and it tells me that it is not in the > collection. But when I do a "? ldbTarget.TableDefs("Contracts").name", > it prints out Contracts. > > Anyone have any ideas as to what may be going on? > > This is in Access 97 SP-2. I have compacted and repaired the BE, used > JetComp on the BE and imported the BE into another MDB. > > Thanks, > Bobby > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Dec 8 08:20:28 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 8 Dec 2003 08:20:28 -0600 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1DB@TAPPEEXCH01> Erwin, Can you give me some more info about this? Enquiring minds want to know. -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Monday, December 08, 2003 1:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) This Outlook automation security thing is pretty easy solvable when using Outlook combined with Exchange server. There is a form that needs to be installed in the public Exchange folder and a registry key on each machine. By this you can turn of several security issues (like blocking some file type and automation). I use Outlook automation for several years now without any problem (except for a "send as" bug in O2K3). Ofcourse your network needs to be protected with other means if you turn of Outlook security. But a network protection should be a default issue when having Exchange server. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby Verzonden: vrijdag 5 december 2003 18:10 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Erwin.Craps at ithelps.be Mon Dec 8 08:56:24 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 8 Dec 2003 15:56:24 +0100 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF8A@stekelbes.ithelps.local> Yes Brett I can, or at least point you at it There is a MSKB article on it... Looking for it....... Found. Luckaly I safe often used HTML pages to my disk (they sometimes disapear from the MS site...). Have to turn this *@s*## each time of when installing Exchange server. Here it is, knock yourself out :-) http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 Please note that you can only turn security off when having outlook connected to Microsoft Exchange Server!!! Outlook checks a form with settings in the public folder of Exchange. So this does not work if your Outlook only uses PST files. Read the installation procedure tree times before actualy dooing it. Had some misunderstandings the first time I done this (now several years ago). The principle is that you register a form in MSEX public folder where you change the security settings. Some files (1 or 2) need to be put/replaced in the winnt system32 folder of the Exchange server. A registry key must be added on each Outlook client pc. This key tells Outlook to look for the security setting in the form in the public folder and to use those for outlook. This way you can free exe files (for example) or allow doubleclick from the e-mail for files. Also the automation pop-ups can be avoided using this procedure. Greetz PS: Thats my second good deed of the day.... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Monday, December 08, 2003 3:20 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Erwin, Can you give me some more info about this? Enquiring minds want to know. -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Monday, December 08, 2003 1:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) This Outlook automation security thing is pretty easy solvable when using Outlook combined with Exchange server. There is a form that needs to be installed in the public Exchange folder and a registry key on each machine. By this you can turn of several security issues (like blocking some file type and automation). I use Outlook automation for several years now without any problem (except for a "send as" bug in O2K3). Ofcourse your network needs to be protected with other means if you turn of Outlook security. But a network protection should be a default issue when having Exchange server. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby Verzonden: vrijdag 5 december 2003 18:10 Aan: Access Developers discussion and problem solving Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) I'm simply pointing out that installing SP3 is not a panacea for the problem you are discussing. Many developers don't use Outlook automation so they don't care. If they DO use it however, that portion of their app is trashed just by updating to SP3. I personally have lost an estimated 60 hours to this problem over the last few years. I'd LOVE to participate in a class action lawsuit to recover my lost wages. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:58 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) That's an automation problem, John. There are workarounds (like Redemption or using SMTP mail) and it isn't a fair comparison anyhow. Installing SR3 will *break* the apps by popping up the security dialogs when you try to send mail automatically, but it won't destroy them. NOT installing SR3 when you have 2002 or 2003 apps also installed *can* destroy a 2000 Access database. Charlotte Foust -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Friday, December 05, 2003 8:50 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) Installing SP3 will also toast any apps which try to use Outlook to send mail using the address book. 8-( John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Friday, December 05, 2003 11:37 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) As Mike Groh's editorial, referenced in your other post, indicates, you appear to have run afoul of the conflict between the O2k version of the vbe6.dll and the version installed with any MS 2002 app. It apparently also happens if you install a 2003 app, which makes sense. The cure is to patch the 2000 MSAccess.exe, and it always annoyed me that being broken by a later version was considered a bug in *2000*!! Installing SR-3 should cure the bug, but it won't recover any database that got toasted by the problem. Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Thursday, December 04, 2003 6:07 PM To: AccessD List Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Hello all I recently installed the runtime version of Access 2003. This piece of crap has taken over and now all my access apps open in a 2003 shell. I keep getting error messages about the potential damage the code within the dB can cause and am prompted each time I open a dB if I wish to continue or cancel I have tried unsuccessfully to remove Access 2003 Runtime from Control Panel. at least on 4 occasions. I have re-installed Office and Access 2000 - Still no joy. So I deleted the folder (though not all files. 'Cause Widoze had ' em opened I presume) On top of all that I getting very strange errors each time I open a db or try to view the code for an even or control. Error message as follows. (This message would appear even before I deleted the folder - yes I have re-booted many times) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Microsoft Visual Basic (Msgbox Caption) Error Accessing File. Network Connection May have been lost ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Anyone seen this or better still anyone got a solution? Many thanks in advance Darren _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Mon Dec 8 09:38:16 2003 From: greggs at msn.com (Greggs) Date: Mon, 8 Dec 2003 09:38:16 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CF8A@stekelbes.ithelps.local> Message-ID: I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner From cfoust at infostatsystems.com Mon Dec 8 10:27:33 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 08:27:33 -0800 Subject: [AccessD] Splitting 2002 data makes reports lock up Message-ID: Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 10:32:04 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 08:32:04 -0800 Subject: [AccessD] Access 2003 Message-ID: I can only speak to Access 2002 because I don't yet have a copy of 2003. I'd recommend 2002, but keep in mind that you can only create mdes in the version format, so if you use 2002, you can't compile and mde in 2000 format. That alone might make you hesitate. Personally, I like XP better. I love being able to pass OpenArgs to a report (finally), and there are some newly exposed properties in 2002 that are handy. However, since all three versions are based on VB^, you won't find a huge difference between them. Charlotte Foust -----Original Message----- From: Michael Br?sdorf [mailto:michael.broesdorf at web.de] Sent: Monday, December 08, 2003 1:07 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access 2003 Dear group, currently I am still developing with Access 2000, since all my customers use it, too. Is there any need for upgrading to Access XP or 2003? Is there anything really new or substantially better in those versions? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgeller at cce.umn.edu Mon Dec 8 10:31:40 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 8 Dec 2003 10:31:40 -0600 Subject: [AccessD] Clear item from listbox Message-ID: I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From cfoust at infostatsystems.com Mon Dec 8 10:36:14 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 08:36:14 -0800 Subject: [AccessD] Form instances (AXP) and now AY2k3 Message-ID: I would like to help, but I am completely baffled by what you just wrote. A form has one and only one current record. You can open multiple instances of a form and they can have different current records, but I'm completely at sea on the combobox issue. Where (and why) would you be using a combobox to navigate *between* forms?? Charlotte Foust -----Original Message----- From: Tortise [mailto:tortise at paradise.net.nz] Sent: Sunday, December 07, 2003 11:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Form instances (AXP) and now AY2k3 If I may belatedly reply...(?) Because how else can the user know the current content of the instance they wish to navigate back to, form(0), form(1) etc is not really helpful. Or am I missing something here? Expressed differently can one retrieve the current record(s) in a form instance to list the current records in each forms instance, and use a combo box to facilitate the user navigating to each form with record names they understand? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: accessd at databaseadvisors.com Sent: Wednesday, April 16, 2003 9:22 AM Subject: RE: [AccessD] Form instances (AXP) When you use For Each frm in Forms, you're iterating through the members of the collection of open forms and you're going by index rather than by name. That's the equivalent of Forms(0), Forms(1), etc., not Forms("frmMyForm"), although you're free to address them using the numeric index ... if you know which one you need. Why would you expect the caption to give you meaningful results? That is not a difference in the name of the form, and anyhow you aren't looking for a different form, you just want a particular instance of that form; so if you can create a key that will get you there, why not use it? Charlotte Foust -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: Tuesday, April 15, 2003 11:04 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Sure, in our own collection, but that's not the Access Forms collection, which by the way does add a reference to the multiple forms, but all the instances of the same form share the same name. So, while we can't use Debug.Print Forms("frmMyForm").Caption and expect to get meaningful results, we can use 'For Each frm In Forms....' Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, April 15, 2003 2:27 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Actually, you could use the name plus an incremental number as the key when you add the item to the collection, but it is natural that you can't address it the conventional way if you have multiple instances open. Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 5:18 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Form instances (AXP) Thanks Neal. I have ADH 97. I'll try and wrestle it off my colleague!! -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 15-Apr-2003 14:01 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) I adapted code from ADH that worked well. Basically you declare a form variable as Form_MyForm and work with it. They use a collection to hold pointers to the instances of a form and code to add and remove items from the collection. The one hitch that I quickly hit was that you can't reference your form by name, in other words you can't use Forms!MyForm. If you don't have ADH I could probably put something together for you. Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 8:41 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] Form instances (AXP) Hi all Does anyone know where there is any documentation on opening multiple instances of a form? I can't find anything in the help file or on MSDN. TIA Roz _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Mon Dec 8 10:39:04 2003 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Mon, 8 Dec 2003 11:39:04 -0500 Subject: [AccessD] Clear item from listbox In-Reply-To: Message-ID: Susan Have you tried setting the value of the listbox to Null after clearing the items? Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Geller Sent: Monday, December 08, 2003 11:32 To: accessd at databaseadvisors.com Subject: [AccessD] Clear item from listbox I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From MarkBoyd at McBeeAssociates.com Mon Dec 8 10:38:39 2003 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Mon, 8 Dec 2003 11:38:39 -0500 Subject: [AccessD] Splitting 2002 data makes reports lock up Message-ID: Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 10:40:21 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 08:40:21 -0800 Subject: [AccessD] Clear item from listbox Message-ID: Are you trying to do this in Access or in the stored procedure? In Access, you can loop through the listbox's itemsselected collection and set each item's Selected property to false. If you're just seeing a marquee around the item rather than reverse video showing it is selected, then I can't help. I've never figured out how to get rid of that either. Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 08, 2003 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Clear item from listbox I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Mon Dec 8 11:07:42 2003 From: greggs at msn.com (Greggs) Date: Mon, 8 Dec 2003 11:07:42 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: Message-ID: yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Dec 8 11:04:07 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 8 Dec 2003 12:04:07 -0500 (EST) Subject: [AccessD] 2 email attachments In-Reply-To: References: Message-ID: <55316.12.3.132.98.1070903047.squirrel@heck.bay9.com> Hey Group, Daoes anyone know how to make 2 attachments on a single message ? Set objM = objO.CreateItem(olMailItem) With objM .To = "Michael at xx.com" .CC = "Rebecca at xx.com" .Subject = "HED " & dtSdate .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" .Send End With Set objM = Nothing ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From KIsmert at TexasSystems.com Mon Dec 8 11:08:40 2003 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 8 Dec 2003 11:08:40 -0600 Subject: [AccessD] Form instances (AXP) and now AY2k3 In-Reply-To: <194e01c3bcf8$d6df3710$1e00a8c0@cheqsoft.local> Message-ID: <004c01c3bdad$ed960690$2a3ca8c0@TEXASSYSTEMS.COM> ADH - What is it? Any expanatory web links? -Ken . . . -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 5:18 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Form instances (AXP) > Thanks Neal. I have ADH 97. I'll try and wrestle it off my colleague!! -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 15-Apr-2003 14:01 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) . . . > If you don't have ADH I could probably put something together for you. . . . From Lambert.Heenan at AIG.com Mon Dec 8 11:14:20 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 8 Dec 2003 12:14:20 -0500 Subject: [AccessD] 2 email attachments Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7A9F@xlivmbx12.aig.com> I don't see anything wrong with your example code. For each file you need to attach you call the Mail Item's Add method, just as you indicate. Are you getting an error message? If so, what? Lambert > -----Original Message----- > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > Sent: Monday, December 08, 2003 12:04 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] 2 email attachments > > Hey Group, > Daoes anyone know how to make 2 attachments on a single message ? > > Set objM = objO.CreateItem(olMailItem) > With objM > .To = "Michael at xx.com" > .CC = "Rebecca at xx.com" > .Subject = "HED " & dtSdate > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" > '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" > .Send > > End With > Set objM = Nothing > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Dec 8 11:13:47 2003 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 8 Dec 2003 18:13:47 +0100 Subject: [AccessD] Clear item from listbox In-Reply-To: References: Message-ID: <8733214039.20031208181347@cactus.dk> Hi Charlotte > Are you trying to do this in Access or in the stored procedure? In > Access, you can loop through the listbox's itemsselected collection and > set each item's Selected property to false. If you're just seeing a > marquee around the item rather than reverse video showing it is > selected, then I can't help. I've never figured out how to get rid of > that either. Move the focus off the listbox. /gustav > I have a listbox and I want to clear all items selected in it. To do > that, I am executing a stored procedure. But, even when I've done that, > the first row in the listbox remains selected. Is there any code that > will unselect all items in a list box? I'm in an adp in Access XP. From Elizabeth.Carter at telus.com Mon Dec 8 11:33:23 2003 From: Elizabeth.Carter at telus.com (Elizabeth Carter) Date: Mon, 8 Dec 2003 09:33:23 -0800 Subject: [AccessD] 2 email attachments Message-ID: The only thing that I see is that the second call to attachments.add is commented out. Liz -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: December 8, 2003 9:14 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] 2 email attachments I don't see anything wrong with your example code. For each file you need to attach you call the Mail Item's Add method, just as you indicate. Are you getting an error message? If so, what? Lambert > -----Original Message----- > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > Sent: Monday, December 08, 2003 12:04 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] 2 email attachments > > Hey Group, > Daoes anyone know how to make 2 attachments on a single message ? > > Set objM = objO.CreateItem(olMailItem) > With objM > .To = "Michael at xx.com" > .CC = "Rebecca at xx.com" > .Subject = "HED " & dtSdate > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" > '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" > .Send > > End With > Set objM = Nothing > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 11:39:42 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 09:39:42 -0800 Subject: [AccessD] Splitting 2002 data makes reports lock up Message-ID: It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 11:41:07 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 09:41:07 -0800 Subject: [AccessD] Form instances (AXP) and now AY2k3 Message-ID: Access Developers Handbook. It is now up to a huge two-volume tome that is the bible for Access developers. Charlotte Foust -----Original Message----- From: Ken Ismert [mailto:KIsmert at TexasSystems.com] Sent: Monday, December 08, 2003 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Form instances (AXP) and now AY2k3 ADH - What is it? Any expanatory web links? -Ken . . . -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 5:18 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Form instances (AXP) > Thanks Neal. I have ADH 97. I'll try and wrestle it off my > colleague!! -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 15-Apr-2003 14:01 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) . . . > If you don't have ADH I could probably put something together for > you. . . . _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 11:42:02 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 09:42:02 -0800 Subject: [AccessD] Clear item from listbox Message-ID: Yes, I meant without doing that. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Monday, December 08, 2003 9:14 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Clear item from listbox Hi Charlotte > Are you trying to do this in Access or in the stored procedure? In > Access, you can loop through the listbox's itemsselected collection > and set each item's Selected property to false. If you're just seeing > a marquee around the item rather than reverse video showing it is > selected, then I can't help. I've never figured out how to get rid of > that either. Move the focus off the listbox. /gustav > I have a listbox and I want to clear all items selected in it. To do > that, I am executing a stored procedure. But, even when I've done > that, the first row in the listbox remains selected. Is there any > code that will unselect all items in a list box? I'm in an adp in > Access XP. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Dec 8 11:52:07 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 8 Dec 2003 12:52:07 -0500 Subject: [AccessD] 2 email attachments Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA1@xlivmbx12.aig.com> Yes, I saw that, but I assumed that it was commented out as there was some problem with that line of code (what I could not image). But as you know, "assume" makes an ass out of U and me. Lambert > -----Original Message----- > From: Elizabeth Carter [SMTP:Elizabeth.Carter at telus.com] > Sent: Monday, December 08, 2003 12:33 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] 2 email attachments > > The only thing that I see is that the second call to attachments.add is > commented out. > > Liz > > -----Original Message----- > From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] > Sent: December 8, 2003 9:14 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] 2 email attachments > > > I don't see anything wrong with your example code. For each file you need > to > attach you call the Mail Item's Add method, just as you indicate. > > Are you getting an error message? If so, what? > > Lambert > > > -----Original Message----- > > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > > Sent: Monday, December 08, 2003 12:04 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] 2 email attachments > > > > Hey Group, > > Daoes anyone know how to make 2 attachments on a single message ? > > > > Set objM = objO.CreateItem(olMailItem) > > With objM > > .To = "Michael at xx.com" > > .CC = "Rebecca at xx.com" > > .Subject = "HED " & dtSdate > > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" > > '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" > > .Send > > > > End With > > Set objM = Nothing > > > > > > ----------------------------------------- > > Get Breaking News from CNN, ABC, NBC, CBS Now. > > http://www.xuppa.com/news/?link=webmail > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Mon Dec 8 11:53:57 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 8 Dec 2003 12:53:57 -0500 Subject: [AccessD] Clear item from listbox Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA2@xlivmbx12.aig.com> Have you tried... Sub ClearListBox(lst As ListBox) Dim sRowSource As String sRowSource = lst.RowSource lst.RowSource = "" lst.RowSource = sRowSource End Sub ...? Lambert > -----Original Message----- > From: Susan Geller [SMTP:sgeller at cce.umn.edu] > Sent: Monday, December 08, 2003 11:32 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Clear item from listbox > > I have a listbox and I want to clear all items selected in it. To do > that, I am executing a stored procedure. But, even when I've done that, > the first row in the listbox remains selected. Is there any code that > will unselect all items in a list box? I'm in an adp in Access XP. > > --Susan > > > Susan B. Geller > Office of Information Systems > College of Continuing Education > University of Minnesota > 306 Wesbrook Hall > 77 Pleasant Street SE > Minneapolis, MN 55455 > Phone: 612-626-4785 > Fax: 612-625-2568 > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Dec 8 11:56:49 2003 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 8 Dec 2003 18:56:49 +0100 Subject: [AccessD] Clear item from listbox In-Reply-To: References: Message-ID: <8235795290.20031208185649@cactus.dk> Hi Charlotte Ehh? So you wish to move the focus without moving it? I wouldn't wonder how to accomplish this; I have a tiny textbox - with a width of zero and fore- and background colour matching the form - to move the focus to. /gustav > Yes, I meant without doing that. > Charlotte Foust > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Monday, December 08, 2003 9:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Clear item from listbox > Hi Charlotte >> Are you trying to do this in Access or in the stored procedure? In >> Access, you can loop through the listbox's itemsselected collection >> and set each item's Selected property to false. If you're just seeing >> a marquee around the item rather than reverse video showing it is >> selected, then I can't help. I've never figured out how to get rid of >> that either. > Move the focus off the listbox. > /gustav >> I have a listbox and I want to clear all items selected in it. To do >> that, I am executing a stored procedure. But, even when I've done >> that, the first row in the listbox remains selected. Is there any >> code that will unselect all items in a list box? I'm in an adp in >> Access XP. From Oleg_123 at xuppa.com Mon Dec 8 12:10:55 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 8 Dec 2003 13:10:55 -0500 (EST) Subject: [AccessD] 2 email attachments In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA1@xlivmbx12.aig.com> References: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA1@xlivmbx12.aig.com> Message-ID: <30897.12.3.132.98.1070907055.squirrel@heck.bay9.com> heyyy, yeah the problem is with that line, if its not commented out I get an error message. (i just commented it to meake sue there were no other problems) that functions sends several emails, but this one is the only one thats supposed to have 2 attachments > Yes, I saw that, but I assumed that it was commented out as there was > some problem with that line of code (what I could not image). But as you > know, "assume" makes an ass out of U and me. > > Lambert > >> -----Original Message----- >> From: Elizabeth Carter [SMTP:Elizabeth.Carter at telus.com] >> Sent: Monday, December 08, 2003 12:33 PM >> To: Access Developers discussion and problem solving >> Subject: RE: [AccessD] 2 email attachments >> >> The only thing that I see is that the second call to attachments.add >> is commented out. >> >> Liz >> >> -----Original Message----- >> From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] >> Sent: December 8, 2003 9:14 AM >> To: 'Access Developers discussion and problem solving' >> Subject: RE: [AccessD] 2 email attachments >> >> >> I don't see anything wrong with your example code. For each file you >> need to >> attach you call the Mail Item's Add method, just as you indicate. >> >> Are you getting an error message? If so, what? >> >> Lambert >> >> > -----Original Message----- >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> > Sent: Monday, December 08, 2003 12:04 PM >> > To: accessd at databaseadvisors.com >> > Subject: [AccessD] 2 email attachments >> > >> > Hey Group, >> > Daoes anyone know how to make 2 attachments on a single message ? >> > >> > Set objM = objO.CreateItem(olMailItem) >> > With objM >> > .To = "Michael at xx.com" >> > .CC = "Rebecca at xx.com" >> > .Subject = "HED " & dtSdate >> > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" >> '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" >> .Send >> > >> > End With >> > Set objM = Nothing >> > >> > >> > ----------------------------------------- >> > Get Breaking News from CNN, ABC, NBC, CBS Now. >> > http://www.xuppa.com/news/?link=webmail >> > >> > >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Lambert.Heenan at AIG.com Mon Dec 8 12:27:10 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 8 Dec 2003 13:27:10 -0500 Subject: [AccessD] 2 email attachments Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA3@xlivmbx12.aig.com> So what's the error message that you get? Lambert > -----Original Message----- > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > Sent: Monday, December 08, 2003 1:11 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] 2 email attachments > > heyyy, > yeah the problem is with that line, if its not commented out I get an > error message. (i just commented it to meake sue there were no other > problems) that functions sends several emails, but this one is the only > one thats supposed to have 2 attachments > > > > Yes, I saw that, but I assumed that it was commented out as there was > > some problem with that line of code (what I could not image). But as you > > know, "assume" makes an ass out of U and me. > > > > Lambert > > > >> -----Original Message----- > >> From: Elizabeth Carter [SMTP:Elizabeth.Carter at telus.com] > >> Sent: Monday, December 08, 2003 12:33 PM > >> To: Access Developers discussion and problem solving > >> Subject: RE: [AccessD] 2 email attachments > >> > >> The only thing that I see is that the second call to attachments.add > >> is commented out. > >> > >> Liz > >> > >> -----Original Message----- > >> From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] > >> Sent: December 8, 2003 9:14 AM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] 2 email attachments > >> > >> > >> I don't see anything wrong with your example code. For each file you > >> need to > >> attach you call the Mail Item's Add method, just as you indicate. > >> > >> Are you getting an error message? If so, what? > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > >> > Sent: Monday, December 08, 2003 12:04 PM > >> > To: accessd at databaseadvisors.com > >> > Subject: [AccessD] 2 email attachments > >> > > >> > Hey Group, > >> > Daoes anyone know how to make 2 attachments on a single message ? > >> > > >> > Set objM = objO.CreateItem(olMailItem) > >> > With objM > >> > .To = "Michael at xx.com" > >> > .CC = "Rebecca at xx.com" > >> > .Subject = "HED " & dtSdate > >> > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" > >> '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" > >> .Send > >> > > >> > End With > >> > Set objM = Nothing > >> > > >> > > >> > ----------------------------------------- > >> > Get Breaking News from CNN, ABC, NBC, CBS Now. > >> > http://www.xuppa.com/news/?link=webmail > >> > > >> > > >> > _______________________________________________ > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Mon Dec 8 12:32:53 2003 From: tortise at paradise.net.nz (Tortise) Date: Tue, 09 Dec 2003 07:32:53 +1300 Subject: [AccessD] Form instances (AXP) and now AY2k3 References: Message-ID: <011401c3bdb9$b1531f40$1e00a8c0@cheqsoft.local> Dear Charlotte OK. (smile) Imagine a contact management App. First form instance deals with a contact, user half way thru work, receives phone call, needs refer to second contact. Usual thing is to close current form record and locate second contact. (Or use a colleagues PC!) (User may remember to go back to first record and complete work = risk) More efficient is to open second instance of form and locate the 2nd contact there...do the bizzo, and go back to the first forms instance and finish the 1st bizzo. Now cascade that scenario out 5 times...and once you try it...15 times....like in the real world, you end up with 15 open records / files in 15 form instances in the app. How do you quickly navigate these? (these same form instances with different records within) One method is to cascade them, the form instance caption tells you the ID of the record within so it is easy to click and select the form instance you seek. (screen environment is 1600x1200 so 15 instances do cascade before overlapping!) Another method is to use the Window menu item...but its limited to 9 open windows thereafter you are into "More windows". (Thank you Microsoft, how you create "business" for this ergonomist!!!) My preferred method is to use a combo box (an object on the form with capacity for multiple instances) on the form to show the ID of the records open in the form instances open. On dropdown it would run a query (or similar?) to list the current ID records (form instances captions) of the open form instances, to rapidly navigate thru them. Have I charted a navigational course towards some land for you? (smile) (Sorry, I couldn't resist!) Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, December 09, 2003 5:36 AM Subject: RE: [AccessD] Form instances (AXP) and now AY2k3 I would like to help, but I am completely baffled by what you just wrote. A form has one and only one current record. You can open multiple instances of a form and they can have different current records, but I'm completely at sea on the combobox issue. Where (and why) would you be using a combobox to navigate *between* forms?? Charlotte Foust -----Original Message----- From: Tortise [mailto:tortise at paradise.net.nz] Sent: Sunday, December 07, 2003 11:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Form instances (AXP) and now AY2k3 If I may belatedly reply...(?) Because how else can the user know the current content of the instance they wish to navigate back to, form(0), form(1) etc is not really helpful. Or am I missing something here? Expressed differently can one retrieve the current record(s) in a form instance to list the current records in each forms instance, and use a combo box to facilitate the user navigating to each form with record names they understand? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: accessd at databaseadvisors.com Sent: Wednesday, April 16, 2003 9:22 AM Subject: RE: [AccessD] Form instances (AXP) When you use For Each frm in Forms, you're iterating through the members of the collection of open forms and you're going by index rather than by name. That's the equivalent of Forms(0), Forms(1), etc., not Forms("frmMyForm"), although you're free to address them using the numeric index ... if you know which one you need. Why would you expect the caption to give you meaningful results? That is not a difference in the name of the form, and anyhow you aren't looking for a different form, you just want a particular instance of that form; so if you can create a key that will get you there, why not use it? Charlotte Foust -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: Tuesday, April 15, 2003 11:04 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Sure, in our own collection, but that's not the Access Forms collection, which by the way does add a reference to the multiple forms, but all the instances of the same form share the same name. So, while we can't use Debug.Print Forms("frmMyForm").Caption and expect to get meaningful results, we can use 'For Each frm In Forms....' Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, April 15, 2003 2:27 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Actually, you could use the name plus an incremental number as the key when you add the item to the collection, but it is natural that you can't address it the conventional way if you have multiple instances open. Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 5:18 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Form instances (AXP) Thanks Neal. I have ADH 97. I'll try and wrestle it off my colleague!! -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 15-Apr-2003 14:01 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) I adapted code from ADH that worked well. Basically you declare a form variable as Form_MyForm and work with it. They use a collection to hold pointers to the instances of a form and code to add and remove items from the collection. The one hitch that I quickly hit was that you can't reference your form by name, in other words you can't use Forms!MyForm. If you don't have ADH I could probably put something together for you. Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 8:41 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] Form instances (AXP) Hi all Does anyone know where there is any documentation on opening multiple instances of a form? I can't find anything in the help file or on MSDN. TIA Roz _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Dec 8 13:06:22 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 8 Dec 2003 14:06:22 -0500 Subject: [AccessD] Form instances (AXP) and now AY2k3 In-Reply-To: <011401c3bdb9$b1531f40$1e00a8c0@cheqsoft.local> Message-ID: <> That is a not realistic scenario. 5 times I could buy, but 15? I certainly would not design such an app. I generally allow 2-3 form instances max. The main problems outside of the confusion caused by having so many are screen real estate and system resources. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tortise Sent: Monday, December 08, 2003 1:33 PM To: Access Developers discussion and problem solving; cfoust at infostatsystems.com Subject: Re: [AccessD] Form instances (AXP) and now AY2k3 Dear Charlotte OK. (smile) Imagine a contact management App. First form instance deals with a contact, user half way thru work, receives phone call, needs refer to second contact. Usual thing is to close current form record and locate second contact. (Or use a colleagues PC!) (User may remember to go back to first record and complete work = risk) More efficient is to open second instance of form and locate the 2nd contact there...do the bizzo, and go back to the first forms instance and finish the 1st bizzo. Now cascade that scenario out 5 times...and once you try it...15 times....like in the real world, you end up with 15 open records / files in 15 form instances in the app. How do you quickly navigate these? (these same form instances with different records within) One method is to cascade them, the form instance caption tells you the ID of the record within so it is easy to click and select the form instance you seek. (screen environment is 1600x1200 so 15 instances do cascade before overlapping!) Another method is to use the Window menu item...but its limited to 9 open windows thereafter you are into "More windows". (Thank you Microsoft, how you create "business" for this ergonomist!!!) My preferred method is to use a combo box (an object on the form with capacity for multiple instances) on the form to show the ID of the records open in the form instances open. On dropdown it would run a query (or similar?) to list the current ID records (form instances captions) of the open form instances, to rapidly navigate thru them. Have I charted a navigational course towards some land for you? (smile) (Sorry, I couldn't resist!) Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: Access Developers discussion and problem solving Sent: Tuesday, December 09, 2003 5:36 AM Subject: RE: [AccessD] Form instances (AXP) and now AY2k3 I would like to help, but I am completely baffled by what you just wrote. A form has one and only one current record. You can open multiple instances of a form and they can have different current records, but I'm completely at sea on the combobox issue. Where (and why) would you be using a combobox to navigate *between* forms?? Charlotte Foust -----Original Message----- From: Tortise [mailto:tortise at paradise.net.nz] Sent: Sunday, December 07, 2003 11:32 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Form instances (AXP) and now AY2k3 If I may belatedly reply...(?) Because how else can the user know the current content of the instance they wish to navigate back to, form(0), form(1) etc is not really helpful. Or am I missing something here? Expressed differently can one retrieve the current record(s) in a form instance to list the current records in each forms instance, and use a combo box to facilitate the user navigating to each form with record names they understand? Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: Charlotte Foust To: accessd at databaseadvisors.com Sent: Wednesday, April 16, 2003 9:22 AM Subject: RE: [AccessD] Form instances (AXP) When you use For Each frm in Forms, you're iterating through the members of the collection of open forms and you're going by index rather than by name. That's the equivalent of Forms(0), Forms(1), etc., not Forms("frmMyForm"), although you're free to address them using the numeric index ... if you know which one you need. Why would you expect the caption to give you meaningful results? That is not a difference in the name of the form, and anyhow you aren't looking for a different form, you just want a particular instance of that form; so if you can create a key that will get you there, why not use it? Charlotte Foust -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: Tuesday, April 15, 2003 11:04 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Sure, in our own collection, but that's not the Access Forms collection, which by the way does add a reference to the multiple forms, but all the instances of the same form share the same name. So, while we can't use Debug.Print Forms("frmMyForm").Caption and expect to get meaningful results, we can use 'For Each frm In Forms....' Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Tuesday, April 15, 2003 2:27 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) Actually, you could use the name plus an incremental number as the key when you add the item to the collection, but it is natural that you can't address it the conventional way if you have multiple instances open. Charlotte Foust -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 5:18 AM To: 'accessd at databaseadvisors.com' Subject: RE: [AccessD] Form instances (AXP) Thanks Neal. I have ADH 97. I'll try and wrestle it off my colleague!! -----Original Message----- From: Neal Kling [mailto:nkling at co.montgomery.ny.us] Sent: 15-Apr-2003 14:01 To: accessd at databaseadvisors.com Subject: RE: [AccessD] Form instances (AXP) I adapted code from ADH that worked well. Basically you declare a form variable as Form_MyForm and work with it. They use a collection to hold pointers to the instances of a form and code to add and remove items from the collection. The one hitch that I quickly hit was that you can't reference your form by name, in other words you can't use Forms!MyForm. If you don't have ADH I could probably put something together for you. Neal Kling Lotus, isn't that some kind of fancy flower? -----Original Message----- From: Roz Clarke [mailto:roz.clarke at donnslaw.co.uk] Sent: Tuesday, April 15, 2003 8:41 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] Form instances (AXP) Hi all Does anyone know where there is any documentation on opening multiple instances of a form? I can't find anything in the help file or on MSDN. TIA Roz _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Dec 8 13:07:57 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 8 Dec 2003 14:07:57 -0500 (EST) Subject: [AccessD] 2 email attachments In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA3@xlivmbx12.aig.com> References: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA3@xlivmbx12.aig.com> Message-ID: <13861.12.3.132.98.1070910477.squirrel@heck.bay9.com> oh, the problem was in a different place; i fixed it already, sorry. > So what's the error message that you get? > > Lambert > >> -----Original Message----- >> From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> Sent: Monday, December 08, 2003 1:11 PM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] 2 email attachments >> >> heyyy, >> yeah the problem is with that line, if its not commented out I get an >> error message. (i just commented it to meake sue there were no other >> problems) that functions sends several emails, but this one is the >> only one thats supposed to have 2 attachments >> >> >> > Yes, I saw that, but I assumed that it was commented out as there >> was some problem with that line of code (what I could not image). >> But as you know, "assume" makes an ass out of U and me. >> > >> > Lambert >> > >> >> -----Original Message----- >> >> From: Elizabeth Carter [SMTP:Elizabeth.Carter at telus.com] >> >> Sent: Monday, December 08, 2003 12:33 PM >> >> To: Access Developers discussion and problem solving >> >> Subject: RE: [AccessD] 2 email attachments >> >> >> >> The only thing that I see is that the second call to >> attachments.add is commented out. >> >> >> >> Liz >> >> >> >> -----Original Message----- >> >> From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] >> >> Sent: December 8, 2003 9:14 AM >> >> To: 'Access Developers discussion and problem solving' >> >> Subject: RE: [AccessD] 2 email attachments >> >> >> >> >> >> I don't see anything wrong with your example code. For each file >> you need to >> >> attach you call the Mail Item's Add method, just as you indicate. >> >> >> >> Are you getting an error message? If so, what? >> >> >> >> Lambert >> >> >> >> > -----Original Message----- >> >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] >> >> > Sent: Monday, December 08, 2003 12:04 PM >> >> > To: accessd at databaseadvisors.com >> >> > Subject: [AccessD] 2 email attachments >> >> > >> >> > Hey Group, >> >> > Daoes anyone know how to make 2 attachments on a single message ? >> >> > >> >> > Set objM = objO.CreateItem(olMailItem) >> >> > With objM >> >> > .To = "Michael at xx.com" >> >> > .CC = "Rebecca at xx.com" >> >> > .Subject = "HED " & dtSdate >> >> > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" >> >> '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" .Send >> >> > >> >> > End With >> >> > Set objM = Nothing >> >> > >> >> > >> >> > ----------------------------------------- >> >> > Get Breaking News from CNN, ABC, NBC, CBS Now. >> >> > http://www.xuppa.com/news/?link=webmail >> >> > >> >> > >> >> > _______________________________________________ >> >> > AccessD mailing list >> >> > AccessD at databaseadvisors.com >> >> > http://databaseadvisors.com/mailman/listinfo/accessd >> >> > Website: http://www.databaseadvisors.com >> >> _______________________________________________ >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> >> >> >> >> >> _______________________________________________ >> >> AccessD mailing list >> >> AccessD at databaseadvisors.com >> >> http://databaseadvisors.com/mailman/listinfo/accessd >> >> Website: http://www.databaseadvisors.com >> > _______________________________________________ >> > AccessD mailing list >> > AccessD at databaseadvisors.com >> > http://databaseadvisors.com/mailman/listinfo/accessd >> > Website: http://www.databaseadvisors.com >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Lambert.Heenan at AIG.com Mon Dec 8 13:12:28 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 8 Dec 2003 14:12:28 -0500 Subject: [AccessD] 2 email attachments Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA6@xlivmbx12.aig.com> Ok. That's cool. > -----Original Message----- > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > Sent: Monday, December 08, 2003 2:08 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] 2 email attachments > > oh, the problem was in a different place; i fixed it already, sorry. > > > So what's the error message that you get? > > > > Lambert > > > >> -----Original Message----- > >> From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > >> Sent: Monday, December 08, 2003 1:11 PM > >> To: accessd at databaseadvisors.com > >> Subject: RE: [AccessD] 2 email attachments > >> > >> heyyy, > >> yeah the problem is with that line, if its not commented out I get an > >> error message. (i just commented it to meake sue there were no other > >> problems) that functions sends several emails, but this one is the > >> only one thats supposed to have 2 attachments > >> > >> From cfoust at infostatsystems.com Mon Dec 8 13:13:22 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 11:13:22 -0800 Subject: [AccessD] Clear item from listbox Message-ID: I generally do something like that too, but only when it's important. I'm willing to live with it in listboxes. Charlotte Foust -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Monday, December 08, 2003 9:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Clear item from listbox Hi Charlotte Ehh? So you wish to move the focus without moving it? I wouldn't wonder how to accomplish this; I have a tiny textbox - with a width of zero and fore- and background colour matching the form - to move the focus to. /gustav > Yes, I meant without doing that. > Charlotte Foust > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Monday, December 08, 2003 9:14 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Clear item from listbox > Hi Charlotte >> Are you trying to do this in Access or in the stored procedure? In >> Access, you can loop through the listbox's itemsselected collection >> and set each item's Selected property to false. If you're just seeing >> a marquee around the item rather than reverse video showing it is >> selected, then I can't help. I've never figured out how to get rid of >> that either. > Move the focus off the listbox. > /gustav >> I have a listbox and I want to clear all items selected in it. To do >> that, I am executing a stored procedure. But, even when I've done >> that, the first row in the listbox remains selected. Is there any >> code that will unselect all items in a list box? I'm in an adp in >> Access XP. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Mon Dec 8 14:00:23 2003 From: mastercafe at ctv.es (MastercafeCTV) Date: Mon, 8 Dec 2003 21:00:23 +0100 Subject: [AccessD] ADO Connection In-Reply-To: Message-ID: <002601c3bdc5$eaff4230$69fa2250@servercafe> Hi group, we are trying to connect an MDB on a remote server with a local application. We are checking all possibilities and we are running the same application on ASP in the same server, and run ok. The question is how connect with ADO from some PC to a remote MDB. We know the server IP, and the user and password for general access in read mode. Thanks in advance Juan =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== From cfoust at infostatsystems.com Mon Dec 8 14:17:53 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 12:17:53 -0800 Subject: [AccessD] ADO Connection Message-ID: Connect how and what? What kind of front end are you using? You can certainly open recordsets using ADO and you can even create links, although it's slow. If you're using an MDB as a front end, though, you can't edit forms bound to ADO recordsets. If you explain exactly what you're trying to do, perhaps someone can help. Charlotte Foust -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Monday, December 08, 2003 12:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ADO Connection Hi group, we are trying to connect an MDB on a remote server with a local application. We are checking all possibilities and we are running the same application on ASP in the same server, and run ok. The question is how connect with ADO from some PC to a remote MDB. We know the server IP, and the user and password for general access in read mode. Thanks in advance Juan =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Mon Dec 8 14:28:40 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Mon, 8 Dec 2003 15:28:40 -0500 (EST) Subject: [AccessD] (OT) Excel Ascii file In-Reply-To: References: Message-ID: <10006.12.3.132.98.1070915320.squirrel@heck.bay9.com> Hey Group, how do I save Excel document as an ascii file with positions ? (meaning col1 - 00-002, col2 003-008, col3 009-017) etc. ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From andy at minstersystems.co.uk Mon Dec 8 14:15:44 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 8 Dec 2003 20:15:44 -0000 Subject: [AccessD] Webring Application In-Reply-To: Message-ID: <01d301c3bdc8$13763a50$b274d0d5@minster33c3r25> Hi Jim We have our first applicant (see attached). Do you have the instructions yet? I took a look at Bob's website and it certainly passes in terms of appropriateness. Just need to send him instructions and the panel. In fact is the panel downloadable from the dba site? Andy From dkalsow at yahoo.com Mon Dec 8 15:45:30 2003 From: dkalsow at yahoo.com (Dale Kalsow) Date: Mon, 8 Dec 2003 13:45:30 -0800 (PST) Subject: [AccessD] VB .Net & ini files In-Reply-To: <10006.12.3.132.98.1070915320.squirrel@heck.bay9.com> Message-ID: <20031208214530.65428.qmail@web9807.mail.yahoo.com> I know this is a little off subject but does any one have a good example of how to read and write ini files in vb.net. Thanks in advance! Dale --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing From Lambert.Heenan at AIG.com Mon Dec 8 16:07:32 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 8 Dec 2003 17:07:32 -0500 Subject: [AccessD] VB .Net & ini files Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AA9@xlivmbx12.aig.com> Try here... http://www.developerfusion.com/show/37/10/ Lambert -----Original Message----- From: Dale Kalsow [mailto:dkalsow at yahoo.com] Sent: Monday, December 08, 2003 4:46 PM To: Access Developers discussion and problem solving Subject: [AccessD] VB .Net & ini files I know this is a little off subject but does any one have a good example of how to read and write ini files in vb.net. Thanks in advance! Dale --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Dec 8 16:14:20 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 8 Dec 2003 23:14:20 +0100 Subject: [AccessD] 2 email attachments Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF90@stekelbes.ithelps.local> Hi May I make some (stupid) remarks, under the moto "You never know"? 1) Does the file exist? 2) What is dtEdate? Depending on your country settings you can not use a date format for a filename a "/" is forbidden in a filename. Same thing if dtEdate contains time. A ":" is also forbidden. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Monday, December 08, 2003 7:27 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] 2 email attachments So what's the error message that you get? Lambert > -----Original Message----- > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > Sent: Monday, December 08, 2003 1:11 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] 2 email attachments > > heyyy, > yeah the problem is with that line, if its not commented out I get an > error message. (i just commented it to meake sue there were no other > problems) that functions sends several emails, but this one is the > only one thats supposed to have 2 attachments > > > > Yes, I saw that, but I assumed that it was commented out as there > > was some problem with that line of code (what I could not image). > > But as you know, "assume" makes an ass out of U and me. > > > > Lambert > > > >> -----Original Message----- > >> From: Elizabeth Carter [SMTP:Elizabeth.Carter at telus.com] > >> Sent: Monday, December 08, 2003 12:33 PM > >> To: Access Developers discussion and problem solving > >> Subject: RE: [AccessD] 2 email attachments > >> > >> The only thing that I see is that the second call to > >> attachments.add is commented out. > >> > >> Liz > >> > >> -----Original Message----- > >> From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] > >> Sent: December 8, 2003 9:14 AM > >> To: 'Access Developers discussion and problem solving' > >> Subject: RE: [AccessD] 2 email attachments > >> > >> > >> I don't see anything wrong with your example code. For each file > >> you need to attach you call the Mail Item's Add method, just as you > >> indicate. > >> > >> Are you getting an error message? If so, what? > >> > >> Lambert > >> > >> > -----Original Message----- > >> > From: Oleg_123 at xuppa.com [SMTP:Oleg_123 at xuppa.com] > >> > Sent: Monday, December 08, 2003 12:04 PM > >> > To: accessd at databaseadvisors.com > >> > Subject: [AccessD] 2 email attachments > >> > > >> > Hey Group, > >> > Daoes anyone know how to make 2 attachments on a single message ? > >> > > >> > Set objM = objO.CreateItem(olMailItem) > >> > With objM > >> > .To = "Michael at xx.com" > >> > .CC = "Rebecca at xx.com" > >> > .Subject = "HED " & dtSdate > >> > .Attachments.Add sJAdir & "HED" & dtEdate & "-Term" & ".xls" > >> '.Attachments.Add sJAdir & "HED" & dtEdate & "-Hire" & ".xls" > >> .Send > >> > > >> > End With > >> > Set objM = Nothing > >> > > >> > > >> > ----------------------------------------- > >> > Get Breaking News from CNN, ABC, NBC, CBS Now. > >> > http://www.xuppa.com/news/?link=webmail > >> > > >> > > >> > _______________________________________________ > >> > AccessD mailing list > >> > AccessD at databaseadvisors.com > >> > http://databaseadvisors.com/mailman/listinfo/accessd > >> > Website: http://www.databaseadvisors.com > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > >> > >> > >> _______________________________________________ > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Dec 8 15:47:49 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 8 Dec 2003 21:47:49 -0000 Subject: [AccessD] Webring Application OOPS In-Reply-To: <01d301c3bdc8$13763a50$b274d0d5@minster33c3r25> Message-ID: <01f101c3bdd4$ed2d47f0$b274d0d5@minster33c3r25> Oops - meant for Jim direct. Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: 08 December 2003 20:16 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Webring Application > > > Hi Jim > We have our first applicant (see attached). Do you have the > instructions yet? I took a look at Bob's website and it > certainly passes in terms of appropriateness. Just need to > send him instructions and the panel. In fact is the panel > downloadable from the dba site? > > Andy > > From sgeller at cce.umn.edu Mon Dec 8 17:21:20 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 8 Dec 2003 17:21:20 -0600 Subject: [AccessD] Clear item from listbox Message-ID: Ok, that will work. BTW, I tried setting the focus elsewhere and that didn't work. --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Are you trying to do this in Access or in the stored procedure? In Access, you can loop through the listbox's itemsselected collection and set each item's Selected property to false. If you're just seeing a marquee around the item rather than reverse video showing it is selected, then I can't help. I've never figured out how to get rid of that either. Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 08, 2003 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Clear item from listbox I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chris at thecube.net Mon Dec 8 17:42:05 2003 From: chris at thecube.net (Chris J Bain) Date: Mon, 8 Dec 2003 23:42:05 -0000 Subject: [AccessD] Hello Again Message-ID: <000001c3bde4$e7056730$ec98073e@Chris> Hi All, It has been some time (about 2 years) since I left the list and due to unfortunate circumstances I am back on the freelance market again. Nice to see familiar faces (Andy, Susan etc.) Hope to be a good contributor to the list. Kind Regards Chris J Bain From jcolby at colbyconsulting.com Mon Dec 8 18:16:55 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 8 Dec 2003 19:16:55 -0500 Subject: [AccessD] Hello Again In-Reply-To: <000001c3bde4$e7056730$ec98073e@Chris> Message-ID: Welcome back, and good luck in the freelance market. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris J Bain Sent: Monday, December 08, 2003 6:42 PM To: accessd at databaseadvisors.com Subject: [AccessD] Hello Again Hi All, It has been some time (about 2 years) since I left the list and due to unfortunate circumstances I am back on the freelance market again. Nice to see familiar faces (Andy, Susan etc.) Hope to be a good contributor to the list. Kind Regards Chris J Bain _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Mon Dec 8 18:43:28 2003 From: greggs at msn.com (Greggs) Date: Mon, 8 Dec 2003 18:43:28 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: Message-ID: Thanks Charlotte... this was a big help! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Mon Dec 8 18:39:12 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 9 Dec 2003 11:39:12 +1100 Subject: [AccessD] Hello Again References: <000001c3bde4$e7056730$ec98073e@Chris> Message-ID: <012f01c3bdec$ddef12b0$41619a89@DDICK> No ARCHIVE Hey Chris Welcome back Darren ----- Original Message ----- From: "Chris J Bain" To: Sent: Tuesday, December 09, 2003 10:42 AM Subject: [AccessD] Hello Again > Hi All, > > It has been some time (about 2 years) since I left the list and due to > unfortunate circumstances I am back on the freelance market again. Nice > to see familiar faces (Andy, Susan etc.) > > Hope to be a good contributor to the list. > > Kind Regards > > Chris J Bain > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From greggs at msn.com Mon Dec 8 19:29:48 2003 From: greggs at msn.com (Greggs) Date: Mon, 8 Dec 2003 19:29:48 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: Message-ID: Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 19:33:40 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 17:33:40 -0800 Subject: [AccessD] Splitting 2002 data makes reports lock up Message-ID: Do you have a DAO reference set? That's DAO code. In 2002, you should be able to run it without a DAO reference, but you have to substitute late binding and declare the objects as Object rather that DAO.whatever. I do have ADO code for this, but I don't think I have it on this machine. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 5:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 8 19:36:56 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 8 Dec 2003 17:36:56 -0800 Subject: [AccessD] Splitting 2002 data makes reports lock up Message-ID: Um, I just looked at your message again. You say 2k but your subject says 2002. Which one is it? The constants are declare din the code and 2000 definitely has subdatasheets. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 5:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Mon Dec 8 20:28:21 2003 From: greggs at msn.com (Greggs) Date: Mon, 8 Dec 2003 20:28:21 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: Message-ID: The original problem was in 2002. I manually fixed that one. I thought I would try your code on another database but it is in 2K. Sorry for the confusion. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 7:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Um, I just looked at your message again. You say 2k but your subject says 2002. Which one is it? The constants are declare din the code and 2000 definitely has subdatasheets. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 5:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Mon Dec 8 20:31:12 2003 From: greggs at msn.com (Greggs) Date: Mon, 8 Dec 2003 20:31:12 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: Message-ID: I have the DAO 3.6 library referenced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 7:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Do you have a DAO reference set? That's DAO code. In 2002, you should be able to run it without a DAO reference, but you have to substitute late binding and declare the objects as Object rather that DAO.whatever. I do have ADO code for this, but I don't think I have it on this machine. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 5:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Dec 8 21:18:38 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 8 Dec 2003 22:18:38 -0500 Subject: [AccessD] Hello Again References: <000001c3bde4$e7056730$ec98073e@Chris> Message-ID: <001501c3be03$23c2e3a0$6101a8c0@dejpolsys> ...welcome back Chris ...think positively ...you'll never get rich working for someone else :)))) William Hindman Government is not reason, government is not persuasion, government is force. It is a dangerous servant." G. Washington ----- Original Message ----- From: "Chris J Bain" To: Sent: Monday, December 08, 2003 6:42 PM Subject: [AccessD] Hello Again > Hi All, > > It has been some time (about 2 years) since I left the list and due to > unfortunate circumstances I am back on the freelance market again. Nice > to see familiar faces (Andy, Susan etc.) > > Hope to be a good contributor to the list. > > Kind Regards > > Chris J Bain > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From mastercafe at ctv.es Tue Dec 9 05:50:11 2003 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 9 Dec 2003 12:50:11 +0100 Subject: [AccessD] ADO Connection In-Reply-To: Message-ID: <005401c3be4a$9a497ab0$69fa2250@servercafe> Our main database is DATOS.MDB and its contain 3 tables dealers / Products / suppliers The main server is www.sampaka.org and the users can upload or daownload files with users_sampaka and pwd ussa5978 this is for FTP access only (similar to anonymous). How connect from any ADE/ADP/MDE/MDB with ADO to this database to retrieve some records? We know that is better download only one record by each time, and normally this database is for check some fields only. Actually we are downloading the MDB to each computer and then the final user run our software locally. But we suposse that work over the main server is more correct because we have 1 node that actualice everyday the main database. Thanks =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: lunes, 08 de diciembre de 2003 21:18 To: Access Developers discussion and problem solving Subject: RE: [AccessD] ADO Connection Connect how and what? What kind of front end are you using? You can certainly open recordsets using ADO and you can even create links, although it's slow. If you're using an MDB as a front end, though, you can't edit forms bound to ADO recordsets. If you explain exactly what you're trying to do, perhaps someone can help. Charlotte Foust -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Monday, December 08, 2003 12:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ADO Connection Hi group, we are trying to connect an MDB on a remote server with a local application. We are checking all possibilities and we are running the same application on ASP in the same server, and run ok. The question is how connect with ADO from some PC to a remote MDB. We know the server IP, and the user and password for general access in read mode. Thanks in advance Juan =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 9 06:37:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 9 Dec 2003 13:37:40 +0100 (CET) Subject: [AccessD] Backing Up Access MDB Message-ID: <29737982.1070973459996.JavaMail.www@wwinf3003> To all, We are coming upto our busiest period (January), and we will have about 15-20 users on Access at any one time. Is there a way to backup the mdb file without taking users out, without the risk of losing any data ? Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From dwaters at usinternet.com Tue Dec 9 09:39:19 2003 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Dec 2003 09:39:19 -0600 Subject: [AccessD] Backing Up Access MDB In-Reply-To: <12711361.1070973742280.JavaMail.root@localhost.localdomain> Message-ID: <000001c3be6a$9ce574c0$de1811d8@DanWaters> Paul, If you only need to back up the data, perhaps you could just manually copy the data tables from the operating mdb to a different mdb? What I've done before is to time my mdb changes (or backup) during lunch when most people are out of the system, and won't mind if you log them out. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 09, 2003 6:38 AM To: accessd Subject: [AccessD] Backing Up Access MDB To all, We are coming upto our busiest period (January), and we will have about 15-20 users on Access at any one time. Is there a way to backup the mdb file without taking users out, without the risk of losing any data ? Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Tue Dec 9 09:45:06 2003 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Tue, 9 Dec 2003 09:45:06 -0600 Subject: [AccessD] Our Own "Wild Woman" (Susan Harkins) Has a "Wild" Article Publish ed ... Message-ID: ... about "Microsoft Access Wildcards" (naturally!!) Article subtitle: "Misused Wildcards Can Churn Out Erroneous Data - Undetected". (It's the cover story for the December 2003 edition of "Access VB/SQL Advisor" magazine.) In the article Susan discusses how the Access "Jet" version of SQL differs from the SQL-92 standard (with respect to wildcards) and things you should be wary of when working with the various [Access] "wildcard" characters. Rush to your nearest newsstand and buy a copy! Alan C. Lawhon Susan: I couldn't resist the subject line ... (How's that for a catchy "plug"?) Tee Hee Hee ... From accessd at shaw.ca Tue Dec 9 09:52:13 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 09 Dec 2003 07:52:13 -0800 Subject: [AccessD] ADO Connection In-Reply-To: <005401c3be4a$9a497ab0$69fa2250@servercafe> Message-ID: Hi MastercafeCTV: You can see an/some examples of that if you view/download some of the files from the latest newlettes November 2003, the DBA site: http://www.databaseadvisors.com/newsletters.htm HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: Tuesday, December 09, 2003 3:50 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] ADO Connection Our main database is DATOS.MDB and its contain 3 tables dealers / Products / suppliers The main server is www.sampaka.org and the users can upload or daownload files with users_sampaka and pwd ussa5978 this is for FTP access only (similar to anonymous). How connect from any ADE/ADP/MDE/MDB with ADO to this database to retrieve some records? We know that is better download only one record by each time, and normally this database is for check some fields only. Actually we are downloading the MDB to each computer and then the final user run our software locally. But we suposse that work over the main server is more correct because we have 1 node that actualice everyday the main database. Thanks =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: lunes, 08 de diciembre de 2003 21:18 To: Access Developers discussion and problem solving Subject: RE: [AccessD] ADO Connection Connect how and what? What kind of front end are you using? You can certainly open recordsets using ADO and you can even create links, although it's slow. If you're using an MDB as a front end, though, you can't edit forms bound to ADO recordsets. If you explain exactly what you're trying to do, perhaps someone can help. Charlotte Foust -----Original Message----- From: MastercafeCTV [mailto:mastercafe at ctv.es] Sent: Monday, December 08, 2003 12:00 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] ADO Connection Hi group, we are trying to connect an MDB on a remote server with a local application. We are checking all possibilities and we are running the same application on ASP in the same server, and run ok. The question is how connect with ADO from some PC to a remote MDB. We know the server IP, and the user and password for general access in read mode. Thanks in advance Juan =========================================== MASTERCAFE SL - NIF B-82.617.614 www.mastercafe.com Deleg. Asturias Tel 985.88.49.44 / 627.531.764 Fax 627.500.205 info at mastercafe.com juan at mastercafe.com Deleg. Madrid Tel 627.474.285 cecilia at mastercafe.com =========================================== _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Tue Dec 9 10:26:40 2003 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Tue, 9 Dec 2003 21:56:40 +0530 Subject: [AccessD] Backing Up Access MDB References: <000001c3be6a$9ce574c0$de1811d8@DanWaters> Message-ID: <009401c3be71$737894d0$66edf73d@winxp> Paul, You might like to take a look at Access Add-In named SelfSaveAddIn.mda available at Rogers Access Library (Other Developers Section). Once installed, you can create compacted backup copies from within the running db at the click of a button (without having to close it first). If it happens to be a split db, compacted backup copy of the back end also gets created simultaneously. Following options are available for stamping the backup copies (over & above the basic suffix of "_Bk") - (a) Current date and hour (b) Current date (c) No stamp Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Tuesday, December 09, 2003 21:09 Subject: RE: [AccessD] Backing Up Access MDB Paul, If you only need to back up the data, perhaps you could just manually copy the data tables from the operating mdb to a different mdb? What I've done before is to time my mdb changes (or backup) during lunch when most people are out of the system, and won't mind if you log them out. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 09, 2003 6:38 AM To: accessd Subject: [AccessD] Backing Up Access MDB To all, We are coming upto our busiest period (January), and we will have about 15-20 users on Access at any one time. Is there a way to backup the mdb file without taking users out, without the risk of losing any data ? Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Oleg_123 at xuppa.com Tue Dec 9 11:11:26 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 9 Dec 2003 12:11:26 -0500 (EST) Subject: [AccessD] (OT) Excel Ascii file In-Reply-To: References: <005401c3be4a$9a497ab0$69fa2250@servercafe> Message-ID: <14723.12.3.132.98.1070989886.squirrel@heck.bay9.com> Sorry to post this again; but I accidentally deleted all my messages, and dunno if anyone answered it.. :-(( Hey Group, how do I save Excel document as an ascii file with positions ? (meaning col1 - 00-002, col2 003-008, col3 009-017) etc. I found this on the internet -- am not quite sure whether its related, but in any case i can't seem to find "Original Data Type section" ---------- Fixed Width Text Import Wizard - Step 1 Opening an ASCII text file in Excel will probably result in display of the Text Import Wizard dialog box. 7. In the Original Data Type section, choose the Fixed Width radio button if Excel has not already done that for you. 8. If you want to skip rows at the beginning of your file, set the first row containing actual data with the Start Import at Row option. To conclude Step 1, click the Next button. Fixed Width Text Import Wizard - Step 2 You need to define the field widths for Excel. The instructions for creating field divisions are shown directly above the Data Preview area. 9. Position the mouse pointer on the ruler at the transition between fields and click the left mouse button. Repeat this procedure for each field. If the total record length is wider than the Text Import Wizard window, click the horizontal scroll bar to see the rest of your data. When all fields have been defined, click the Next button ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From rmoore at comtechpst.com Tue Dec 9 11:23:52 2003 From: rmoore at comtechpst.com (Ron Moore) Date: Tue, 9 Dec 2003 12:23:52 -0500 Subject: [AccessD] (OT) Excel Ascii file In-Reply-To: <14723.12.3.132.98.1070989886.squirrel@heck.bay9.com> Message-ID: <002901c3be79$373d9990$7b14a8c0@Comtech.Comtechpst.com> Oleg, you ask how to save from XL and then list steps to import into XL. Have you tried ,? Then look at .csv, tab delimited, space delimited, etc. HTH Ron Moore Sr. Database Administrator Comtech PST Corp. www.comtechpst.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Tuesday, December 09, 2003 12:11 PM To: accessd at databaseadvisors.com Subject: [AccessD] (OT) Excel Ascii file Sorry to post this again; but I accidentally deleted all my messages, and dunno if anyone answered it.. :-(( Hey Group, how do I save Excel document as an ascii file with positions ? (meaning col1 - 00-002, col2 003-008, col3 009-017) etc. I found this on the internet -- am not quite sure whether its related, but in any case i can't seem to find "Original Data Type section" ---------- Fixed Width Text Import Wizard - Step 1 Opening an ASCII text file in Excel will probably result in display of the Text Import Wizard dialog box. 7. In the Original Data Type section, choose the Fixed Width radio button if Excel has not already done that for you. 8. If you want to skip rows at the beginning of your file, set the first row containing actual data with the Start Import at Row option. To conclude Step 1, click the Next button. Fixed Width Text Import Wizard - Step 2 You need to define the field widths for Excel. The instructions for creating field divisions are shown directly above the Data Preview area. 9. Position the mouse pointer on the ruler at the transition between fields and click the left mouse button. Repeat this procedure for each field. If the total record length is wider than the Text Import Wizard window, click the horizontal scroll bar to see the rest of your data. When all fields have been defined, click the Next button ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tim at irwingreenhouses.com Tue Dec 9 11:47:48 2003 From: tim at irwingreenhouses.com (Tim Thiessen) Date: Tue, 9 Dec 2003 11:47:48 -0600 Subject: [AccessD] Num Lock Message-ID: <003301c3be7c$9074c620$6600a8c0@tim> Hi Group, We have an A97 application running on several machines with Windows XP Pro. The application is an accounting-invoicing app. When used on Windows 95 or 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by itself. Has anyone ever run into this and if so, can it be corrected? TIA Tim Thiessen Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 From Oleg_123 at xuppa.com Tue Dec 9 12:10:23 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Tue, 9 Dec 2003 13:10:23 -0500 (EST) Subject: [AccessD] (OT) Excel Ascii file In-Reply-To: <002901c3be79$373d9990$7b14a8c0@Comtech.Comtechpst.com> References: <14723.12.3.132.98.1070989886.squirrel@heck.bay9.com> <002901c3be79$373d9990$7b14a8c0@Comtech.Comtechpst.com> Message-ID: <37107.12.3.132.98.1070993423.squirrel@heck.bay9.com> yeah, i see know to save it as .csv, but i don't see where to type the positions, beause I was given positions of each column -- 001-002, 003-008, 009-017, etc. > Oleg, you ask how to save from XL and then list steps to import into > XL. Have you tried ,? Then look at .csv, tab delimited, > space delimited, etc. > > HTH > Ron Moore > Sr. Database Administrator > Comtech PST Corp. > www.comtechpst.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Tuesday, December 09, 2003 12:11 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) Excel Ascii file > > > Sorry to post this again; but I accidentally deleted all my messages, > and dunno if anyone answered it.. :-(( > > Hey Group, > > how do I save Excel document as an ascii file with positions ? (meaning > col1 - 00-002, col2 003-008, col3 009-017) etc. I found this on the > internet -- am not quite sure whether its related, but in any case i > can't seem to find "Original Data Type section" > ---------- > Fixed Width Text Import Wizard - Step 1 > Opening an ASCII text file in Excel will probably result in display of > the Text Import Wizard dialog box. 7. In the Original Data Type section, > choose the Fixed Width radio button if Excel has not already done that > for you. 8. If you want to skip rows at the beginning of your file, set > the first row containing actual data with the Start Import at Row > option. To conclude Step 1, click the Next button. > > Fixed Width Text Import Wizard - Step 2 > You need to define the field widths for Excel. The instructions for > creating field divisions are shown directly above the Data Preview area. > 9. Position the mouse pointer on the ruler at the transition between > fields and click the left mouse button. Repeat this procedure for each > field. If the total record length is wider than the Text Import Wizard > window, click the horizontal scroll bar to see the rest of your data. > When all fields have been defined, click the Next button > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From KIsmert at TexasSystems.com Tue Dec 9 12:20:04 2003 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 9 Dec 2003 12:20:04 -0600 Subject: [AccessD] Backing Up Access MDB In-Reply-To: <009401c3be71$737894d0$66edf73d@winxp> Message-ID: <002601c3be81$118a49c0$2a3ca8c0@TEXASSYSTEMS.COM> A.D.: But do they guarantee completely consistent backups? Anyone can backup files in a running mdb -- but how can you be sure there are no update/delete locks, or pending/reversing transactions in place? Microsoft emphatically states that you can't rely on the internal consistency of the data when you do a live backup of an mdb file - regardless of whether you backup whole files, or tables individually. Honestly, I'd love to be able do live backups of Access data, but until I see proof that they handle these data consistency issues properly, I'll hold off. After all, a restore that scrambles the owner's data is of no use to anyone. I'll end by restating my current position: Access is not an enterprise data server. If you need 24/7 access, high concurrency, failover/data recovery, and live backups, move to SQL Server or the like. -Ken -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Tuesday, December 09, 2003 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backing Up Access MDB Paul, You might like to take a look at Access Add-In named SelfSaveAddIn.mda available at Rogers Access Library (Other Developers Section). Once installed, you can create compacted backup copies from within the running db at the click of a button (without having to close it first). If it happens to be a split db, compacted backup copy of the back end also gets created simultaneously. Following options are available for stamping the backup copies (over & above the basic suffix of "_Bk") - (a) Current date and hour (b) Current date (c) No stamp Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Tuesday, December 09, 2003 21:09 Subject: RE: [AccessD] Backing Up Access MDB Paul, If you only need to back up the data, perhaps you could just manually copy the data tables from the operating mdb to a different mdb? What I've done before is to time my mdb changes (or backup) during lunch when most people are out of the system, and won't mind if you log them out. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 09, 2003 6:38 AM To: accessd Subject: [AccessD] Backing Up Access MDB To all, We are coming upto our busiest period (January), and we will have about 15-20 users on Access at any one time. Is there a way to backup the mdb file without taking users out, without the risk of losing any data ? Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tortise at paradise.net.nz Tue Dec 9 12:40:59 2003 From: tortise at paradise.net.nz (Tortise) Date: Wed, 10 Dec 2003 07:40:59 +1300 Subject: [AccessD] Backing Up Access MDB References: <000001c3be6a$9ce574c0$de1811d8@DanWaters> <009401c3be71$737894d0$66edf73d@winxp> Message-ID: <048a01c3be83$fd97e7d0$1e00a8c0@cheqsoft.local> A2k3 has a backup option under Tools / utilities. Whether it will help with users connected I am unsure! Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ ----- Original Message ----- From: A.D.Tejpal To: Access Developers discussion and problem solving Sent: Wednesday, December 10, 2003 5:26 AM Subject: Re: [AccessD] Backing Up Access MDB Paul, You might like to take a look at Access Add-In named SelfSaveAddIn.mda available at Rogers Access Library (Other Developers Section). Once installed, you can create compacted backup copies from within the running db at the click of a button (without having to close it first). If it happens to be a split db, compacted backup copy of the back end also gets created simultaneously. Following options are available for stamping the backup copies (over & above the basic suffix of "_Bk") - (a) Current date and hour (b) Current date (c) No stamp Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Tuesday, December 09, 2003 21:09 Subject: RE: [AccessD] Backing Up Access MDB Paul, If you only need to back up the data, perhaps you could just manually copy the data tables from the operating mdb to a different mdb? What I've done before is to time my mdb changes (or backup) during lunch when most people are out of the system, and won't mind if you log them out. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 09, 2003 6:38 AM To: accessd Subject: [AccessD] Backing Up Access MDB To all, We are coming upto our busiest period (January), and we will have about 15-20 users on Access at any one time. Is there a way to backup the mdb file without taking users out, without the risk of losing any data ? Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Dec 9 12:42:51 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 9 Dec 2003 12:42:51 -0600 Subject: [AccessD] Num Lock Message-ID: <2F8793082E00D4119A1700B0D0216BF80222766B@main2.marlow.com> Do you use SendKeys in your application? That is notorious for turning the numlock on/off. Drew -----Original Message----- From: Tim Thiessen [mailto:tim at irwingreenhouses.com] Sent: Tuesday, December 09, 2003 11:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Num Lock Hi Group, We have an A97 application running on several machines with Windows XP Pro. The application is an accounting-invoicing app. When used on Windows 95 or 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by itself. Has anyone ever run into this and if so, can it be corrected? TIA Tim Thiessen Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Tue Dec 9 12:46:51 2003 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Tue, 9 Dec 2003 12:46:51 -0600 Subject: [AccessD] Code for Setting References Message-ID: After installing my application (AXP database) onto her machine a user could not run my program. After breaking into my application I was able to determine that the references to files (dlls) were not set. The files are on her machine. She is has AXP on an Windows XP OS. Does anyone have any code or point me to a place where I can find some code that will check to see that all the references for a database are not broken, And if they are code to fix them. Thanks in advance for your help. -Jeff From martyconnelly at shaw.ca Tue Dec 9 12:59:29 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 10:59:29 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) References: <46B976F2B698FF46A4FE7636509B22DF03CF8A@stekelbes.ithelps.local> Message-ID: <3FD61B91.4060309@shaw.ca> This might be an easier method of overcoming the Outlook security sending mail without requiring multiple clicks. Haven't tried it but it looks easier than using Redemption method. Express ClickYes Puts an Icon in systray that captures the outlook messages You can modify behaviour with VBA code. http://www.express-soft.com/mailmate/clickyes.html Erwin Craps - IT Helps wrote: >Yes Brett I can, or at least point you at it > >There is a MSKB article on it... >Looking for it....... Found. >Luckaly I safe often used HTML pages to my disk (they sometimes disapear >from the MS site...). >Have to turn this *@s*## each time of when installing Exchange server. >Here it is, knock yourself out :-) >http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 > >Please note that you can only turn security off when having outlook >connected to Microsoft Exchange Server!!! >Outlook checks a form with settings in the public folder of Exchange. >So this does not work if your Outlook only uses PST files. > >Read the installation procedure tree times before actualy dooing it. >Had some misunderstandings the first time I done this (now several years >ago). > > >The principle is that you register a form in MSEX public folder where >you change the security settings. Some files (1 or 2) need to be >put/replaced in the winnt system32 folder of the Exchange server. > >A registry key must be added on each Outlook client pc. >This key tells Outlook to look for the security setting in the form in >the public folder and to use those for outlook. >This way you can free exe files (for example) or allow doubleclick from >the e-mail for files. >Also the automation pop-ups can be avoided using this procedure. > > >Greetz >PS: Thats my second good deed of the day.... > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett >Barabash >Sent: Monday, December 08, 2003 3:20 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >Erwin, >Can you give me some more info about this? Enquiring minds want to >know. > >-----Original Message----- >From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] >Sent: Monday, December 08, 2003 1:48 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >This Outlook automation security thing is pretty easy solvable when >using Outlook combined with Exchange server. >There is a form that needs to be installed in the public Exchange folder >and a registry key on each machine. >By this you can turn of several security issues (like blocking some file >type and automation). >I use Outlook automation for several years now without any problem >(except for a "send as" bug in O2K3). > >Ofcourse your network needs to be protected with other means if you turn >of Outlook security. >But a network protection should be a default issue when having Exchange >server. > > >Erwin > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby >Verzonden: vrijdag 5 december 2003 18:10 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. NOT >installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to send >mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage the >code within the dB can cause and am prompted each time I open a dB if I >wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Tue Dec 9 13:11:00 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Dec 2003 20:11:00 +0100 Subject: [AccessD] Backing Up Access MDB In-Reply-To: <002601c3be81$118a49c0$2a3ca8c0@TEXASSYSTEMS.COM> References: <002601c3be81$118a49c0$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <10141951402.20031209201100@cactus.dk> Hi Paul > But do they guarantee completely consistent backups? Anyone can backup files > in a running mdb -- but how can you be sure there are no update/delete > locks, or pending/reversing transactions in place? > Microsoft emphatically states that you can't rely on the internal > consistency of the data when you do a live backup of an mdb file - > regardless of whether you backup whole files, or tables individually. > Honestly, I'd love to be able do live backups of Access data, but until I > see proof that they handle these data consistency issues properly, I'll hold > off. After all, a restore that scrambles the owner's data is of no use to > anyone. > I'll end by restating my current position: Access is not an enterprise data > server. If you need 24/7 access, high concurrency, failover/data recovery, > and live backups, move to SQL Server or the like. If you are not up to the cost and hardware requirements of SQL Server, the free Firebird/InterBase engine offers "Database Shadow" and "Online backup": http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_60_factsheet Also, this engine has a low footprint and runs on many platforms - even MacOS X. /gustav From BBarabash at TappeConstruction.com Tue Dec 9 13:23:11 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 9 Dec 2003 13:23:11 -0600 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1E9@TAPPEEXCH01> For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- 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 Christian.Brock at hoffman.army.mil Tue Dec 9 13:20:04 2003 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria) Date: Tue, 9 Dec 2003 14:20:04 -0500 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: If you send the email in html format, outlook security (Outlook 2002 on Windows XP) will let it through without any problems. Christian Brock -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, 09 December 2003 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Runtime version of 2003 (Crap) This might be an easier method of overcoming the Outlook security sending mail without requiring multiple clicks. Haven't tried it but it looks easier than using Redemption method. Express ClickYes Puts an Icon in systray that captures the outlook messages You can modify behaviour with VBA code. http://www.express-soft.com/mailmate/clickyes.html Erwin Craps - IT Helps wrote: >Yes Brett I can, or at least point you at it > >There is a MSKB article on it... >Looking for it....... Found. >Luckaly I safe often used HTML pages to my disk (they sometimes disapear >from the MS site...). >Have to turn this *@s*## each time of when installing Exchange server. >Here it is, knock yourself out :-) >http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 > >Please note that you can only turn security off when having outlook >connected to Microsoft Exchange Server!!! >Outlook checks a form with settings in the public folder of Exchange. >So this does not work if your Outlook only uses PST files. > >Read the installation procedure tree times before actualy dooing it. >Had some misunderstandings the first time I done this (now several years >ago). > > >The principle is that you register a form in MSEX public folder where >you change the security settings. Some files (1 or 2) need to be >put/replaced in the winnt system32 folder of the Exchange server. > >A registry key must be added on each Outlook client pc. >This key tells Outlook to look for the security setting in the form in >the public folder and to use those for outlook. >This way you can free exe files (for example) or allow doubleclick from >the e-mail for files. >Also the automation pop-ups can be avoided using this procedure. > > >Greetz >PS: Thats my second good deed of the day.... > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett >Barabash >Sent: Monday, December 08, 2003 3:20 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >Erwin, >Can you give me some more info about this? Enquiring minds want to >know. > >-----Original Message----- >From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] >Sent: Monday, December 08, 2003 1:48 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >This Outlook automation security thing is pretty easy solvable when >using Outlook combined with Exchange server. >There is a form that needs to be installed in the public Exchange folder >and a registry key on each machine. >By this you can turn of several security issues (like blocking some file >type and automation). >I use Outlook automation for several years now without any problem >(except for a "send as" bug in O2K3). > >Ofcourse your network needs to be protected with other means if you turn >of Outlook security. >But a network protection should be a default issue when having Exchange >server. > > >Erwin > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby >Verzonden: vrijdag 5 december 2003 18:10 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. NOT >installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to send >mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage the >code within the dB can cause and am prompted each time I open a dB if I >wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Dec 9 13:24:27 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 9 Dec 2003 20:24:27 +0100 Subject: [AccessD] Code for Setting References In-Reply-To: References: Message-ID: <7442758934.20031209202427@cactus.dk> Hi Jeffrey We had a long thread on this topic. Look up the archive on "Broken References in Runtime AXP and A97" of 2003-07-23. /gustav > After installing my application (AXP database) onto her machine a user > could not run my program. After breaking into my application I was able to > determine that the references to files (dlls) were not set. The files are > on her machine. She is has AXP on an Windows XP OS. > Does anyone have any code or point me to a place where I can find some code > that will check to see that all the references for a database are not > broken, And if they are code to fix them. From reuben at gfconsultants.com Tue Dec 9 13:30:33 2003 From: reuben at gfconsultants.com (Reuben Cummings) Date: Tue, 9 Dec 2003 14:30:33 -0500 Subject: [AccessD] Break into mdb Message-ID: I have seen plenty of talk about it here, but... I just got a mdb (NADAMfgD.mdb) and it came with system.mdw. I also received NADAMfgC.mde, but I am more interested in the data in the mdb. What I am after is how can I get into this mdb to view the tables. I want to check the data in a couple tables to see if I want to contact the supplier to work out a possible licensing agreement. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From LChristian at MassMutual.com Tue Dec 9 13:38:20 2003 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Tue, 9 Dec 2003 14:38:20 -0500 Subject: [AccessD] Num Lock Message-ID: <5B898D9F0627974EB82D0645E52B1E7D035CB802@EXMBPR03.na.mmfg.net> Hi there - I am experiencing this same issue with an app using SendKeys with W2000. Is there a recommendation/resolution? Thanks. Lorraine -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Tuesday, December 09, 2003 1:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Num Lock Do you use SendKeys in your application? That is notorious for turning the numlock on/off. Drew -----Original Message----- From: Tim Thiessen [mailto:tim at irwingreenhouses.com] Sent: Tuesday, December 09, 2003 11:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Num Lock Hi Group, We have an A97 application running on several machines with Windows XP Pro. The application is an accounting-invoicing app. When used on Windows 95 or 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by itself. Has anyone ever run into this and if so, can it be corrected? TIA Tim Thiessen Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Jdemarco at hshhp.org Tue Dec 9 13:47:49 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 9 Dec 2003 14:47:49 -0500 Subject: [AccessD] Break into mdb Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F9C3@TTNEXCHSRV1.hshhp.com> Can the supplier send you sample data from the tables for your reference? If you're not interested in contacting the supplier maybe you can either link to the tables from another db or just use ADO code and read the field names/data into a recordset. Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Tuesday, December 09, 2003 2:31 PM To: AccessD Subject: [AccessD] Break into mdb I have seen plenty of talk about it here, but... I just got a mdb (NADAMfgD.mdb) and it came with system.mdw. I also received NADAMfgC.mde, but I am more interested in the data in the mdb. What I am after is how can I get into this mdb to view the tables. I want to check the data in a couple tables to see if I want to contact the supplier to work out a possible licensing agreement. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 martyconnelly at shaw.ca Tue Dec 9 13:50:42 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 11:50:42 -0800 Subject: [AccessD] Break into mdb References: Message-ID: <3FD62792.9010105@shaw.ca> Put the three files into a directory then create a shortcut depending on your directories "C:\Program Files\Microsoft Office\Office\MSACCESS.EXE" /wrkgrp "N:\DBFile\system.mdw" "N:\DBFile\DBApplication.mdb" Reuben Cummings wrote: >I have seen plenty of talk about it here, but... > >I just got a mdb (NADAMfgD.mdb) and it came with system.mdw. I also >received NADAMfgC.mde, but I am more interested in the data in the mdb. > >What I am after is how can I get into this mdb to view the tables. > >I want to check the data in a couple tables to see if I want to contact the >supplier to work out a possible licensing agreement. > >Thanks. > >Reuben Cummings >GFC, LLC >phone: 812.523.1017 >email: reuben at gfconsultants.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From jeffrey.demulling at usbank.com Tue Dec 9 14:00:00 2003 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Tue, 9 Dec 2003 14:00:00 -0600 Subject: [AccessD] Code for Setting References Message-ID: Thanks. Just the answer I was looking for. "Gustav Brock" To: "Access Developers discussion and problem solving" Sent by: accessd-bounces at databasead cc: visors.com Subject: Re: [AccessD] Code for Setting References 12/09/2003 01:24 PM Please respond to "Access Developers discussion and problem solving" Hi Jeffrey We had a long thread on this topic. Look up the archive on "Broken References in Runtime AXP and A97" of 2003-07-23. /gustav > After installing my application (AXP database) onto her machine a user > could not run my program. After breaking into my application I was able to > determine that the references to files (dlls) were not set. The files are > on her machine. She is has AXP on an Windows XP OS. > Does anyone have any code or point me to a place where I can find some code > that will check to see that all the references for a database are not > broken, And if they are code to fix them. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Tue Dec 9 14:02:31 2003 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Tue, 9 Dec 2003 13:02:31 -0700 Subject: [AccessD] CmdRunApp Help Message-ID: <05EBB8A3BEB95B4F8216BE4EF48607780107AB@srciml1.ds.doc.state.or.us> Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division From jcolby at colbyconsulting.com Tue Dec 9 14:11:03 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 9 Dec 2003 15:11:03 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780107AB@srciml1.ds.doc.state.or.us> Message-ID: why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Herringb at charter.net Tue Dec 9 14:14:49 2003 From: Herringb at charter.net (Barry G.Herring) Date: Tue, 9 Dec 2003 14:14:49 -0600 Subject: [AccessD] CmdRunApp Help In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF48607780107AB@srciml1.ds.doc.state.or.us> Message-ID: <000601c3be91$192fbc40$6401a8c0@LocalHost> This works for a small BAT file I run to do some FTPing for me. Shell "NameOfBatFile.bat", vbHide Barry -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 2:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rmoore at comtechpst.com Tue Dec 9 14:37:45 2003 From: rmoore at comtechpst.com (Ron Moore) Date: Tue, 9 Dec 2003 15:37:45 -0500 Subject: [AccessD] (OT) Excel Ascii file In-Reply-To: <37107.12.3.132.98.1070993423.squirrel@heck.bay9.com> Message-ID: <004901c3be94$4d1a1ca0$7b14a8c0@Comtech.Comtechpst.com> Oleg, I may have misunderstood your original post. You may want to check these out, particularly the first one, which uses access. http://www.regents.state.oh.us/hei/1-1users2000.pdf http://www.uno.edu/~ucc/howto/misc/editors/Fixed-width.htm Ron Moore Sr. Database Administrator Comtech PST Corp. www.comtechpst.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Oleg_123 at xuppa.com Sent: Tuesday, December 09, 2003 1:10 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] (OT) Excel Ascii file yeah, i see know to save it as .csv, but i don't see where to type the positions, beause I was given positions of each column -- 001-002, 003-008, 009-017, etc. > Oleg, you ask how to save from XL and then list steps to import into > XL. Have you tried ,? Then look at .csv, tab > delimited, space delimited, etc. > > HTH > Ron Moore > Sr. Database Administrator > Comtech PST Corp. > www.comtechpst.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Oleg_123 at xuppa.com > Sent: Tuesday, December 09, 2003 12:11 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] (OT) Excel Ascii file > > > Sorry to post this again; but I accidentally deleted all my messages, > and dunno if anyone answered it.. :-(( > > Hey Group, > > how do I save Excel document as an ascii file with positions ? > (meaning col1 - 00-002, col2 003-008, col3 009-017) etc. I found this > on the internet -- am not quite sure whether its related, but in any > case i can't seem to find "Original Data Type section" > ---------- > Fixed Width Text Import Wizard - Step 1 > Opening an ASCII text file in Excel will probably result in display of > the Text Import Wizard dialog box. 7. In the Original Data Type > section, choose the Fixed Width radio button if Excel has not already > done that for you. 8. If you want to skip rows at the beginning of > your file, set the first row containing actual data with the Start > Import at Row option. To conclude Step 1, click the Next button. > > Fixed Width Text Import Wizard - Step 2 > You need to define the field widths for Excel. The instructions for > creating field divisions are shown directly above the Data Preview > area. 9. Position the mouse pointer on the ruler at the transition > between fields and click the left mouse button. Repeat this procedure > for each field. If the total record length is wider than the Text > Import Wizard window, click the horizontal scroll bar to see the rest > of your data. When all fields have been defined, click the Next button > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Dec 9 14:51:19 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 9 Dec 2003 14:51:19 -0600 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <2F8793082E00D4119A1700B0D0216BF802227672@main2.marlow.com> 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Dec 9 14:53:53 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Tue, 9 Dec 2003 14:53:53 -0600 Subject: [AccessD] Num Lock Message-ID: <2F8793082E00D4119A1700B0D0216BF802227673@main2.marlow.com> Yep, don't use SendKeys! Actually, way back when, when I actually used SendKeys for various things, I wrote a function that checked the state of the Numlock key, and would change it if necessary. So what I did BEFORE the Sendkeys line, is check the state, then ran SendKeys, then checked the state again. If it changed, I switched it back. I also had a few forms back then that I wanted to force the numlock on, so I actually put that code in a timer event, to 'lock' the numlock key on. I've found later on that I have not really run into a situation the truly requires sendkeys anymore, there are usually other approaches. Drew -----Original Message----- From: Christian, Lorraine [mailto:LChristian at massmutual.com] Sent: Tuesday, December 09, 2003 1:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Num Lock Hi there - I am experiencing this same issue with an app using SendKeys with W2000. Is there a recommendation/resolution? Thanks. Lorraine -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Tuesday, December 09, 2003 1:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Num Lock Do you use SendKeys in your application? That is notorious for turning the numlock on/off. Drew -----Original Message----- From: Tim Thiessen [mailto:tim at irwingreenhouses.com] Sent: Tuesday, December 09, 2003 11:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Num Lock Hi Group, We have an A97 application running on several machines with Windows XP Pro. The application is an accounting-invoicing app. When used on Windows 95 or 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by itself. Has anyone ever run into this and if so, can it be corrected? TIA Tim Thiessen Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. --------------------------------------------------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Dec 9 14:57:55 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 9 Dec 2003 15:57:55 -0500 Subject: [AccessD] OT (sorta) security impersonation Message-ID: Brett, I know little of creating services, but if the local user has access to the directories you are interested in, this may help. Watch out for wrap. **************************************************** From: System Administration Scripting Guide V1.1 **************************************************** Copy Folders Using WMI Description Uses WMI to copy the folder C:\Scripts to D:\Archive. Script Code strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colFolders = objWMIService.ExecQuery( _ "Select * from Win32_Directory where Name = 'c:\\Scripts'") For Each objFolder in colFolders errResults = objFolder.Copy("D:\Archive") Wscript.Echo errResults Next **************************************************** -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 2:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Tue Dec 9 15:22:51 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 9 Dec 2003 15:22:51 -0600 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1EB@TAPPEEXCH01> Thanks Drew. I was specifically interested in copying files to the WINNT\System32 directory (e.g. ocx, dll files). I downloaded some impersonation code (my Nicholson's a little rusty, but I can do a good Dubya. Just think "nucular") from PSC but couldn't get it to run on our W2K network. After a lengthy search (MSDN no longer has it), I found the NTSVC.OCX file. I will take a look at it; probably just what I need. >From your experience, is VB6 stable enough to create services? The reason why I ask is because Microsoft has some KB articles that discuss access violation errors occuring from the OS interacting with VB's AddressOf function when run as a service. -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Tuesday, December 09, 2003 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 bchacc at san.rr.com Tue Dec 9 16:10:34 2003 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 9 Dec 2003 14:10:34 -0800 Subject: [AccessD] Fw: [dba-Tech] MS To Junk Flagship Products Message-ID: <010a01c3bea1$450df2e0$6501a8c0@HAL9002> x-posted from tech list Rocky ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Discussion of Hardware and Software issues" Sent: Tuesday, December 09, 2003 11:05 AM Subject: Re: [dba-Tech] MS To Junk Flagship Products > I was just thinking about OXP developer edition because I want to launch a > product next year and so far I've decided that the user has to have access, > which avoids all those deployment issues. But then I thought I could pick > up a few more customers with a run-time install. > > I thought that deploying a run time in OXP using MS stuff was supposed to be > much better? I've got WISE Ver. 9 but would have to buy the Sagekey > scripts. > > Anyway, without MS supporting OXP developer, how do we deploy run-times of > our apps? > > Any advice? > > MTIA > > Rocky > > ----- Original Message ----- > From: "Arthur Fuller" > To: "'Discussion of Hardware and Software issues'" > > Sent: Tuesday, December 09, 2003 10:38 AM > Subject: [dba-Tech] MS To Junk Flagship Products > > > > As a side-effect of the Sun lawsuit, MS is junking all products that > > embed the non-compliant Java engine: > > > > http://www.eweek.com/article2/0,4149,1405300,00.asp > > > > Arthur > > > > > > _______________________________________________ > > dba-Tech mailing list > > dba-Tech at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-tech > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > dba-Tech mailing list > dba-Tech at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-tech > Website: http://www.databaseadvisors.com > From Lambert.Heenan at AIG.com Tue Dec 9 16:26:12 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 9 Dec 2003 17:26:12 -0500 Subject: [AccessD] Num Lock Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AC5@xlivmbx12.aig.com> Actually I too wrote a replacement for SendKeys that works just fine under W98, NY and 2k - not sure yet about XP. You'll find it at... http://www.mvps.org/access/api/api0046.htm Lambert > -----Original Message----- > From: Drew Wutka [SMTP:DWUTKA at marlow.com] > Sent: Tuesday, December 09, 2003 3:54 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Num Lock > > Yep, don't use SendKeys! > > Actually, way back when, when I actually used SendKeys for various things, > I > wrote a function that checked the state of the Numlock key, and would > change > it if necessary. So what I did BEFORE the Sendkeys line, is check the > state, then ran SendKeys, then checked the state again. If it changed, I > switched it back. I also had a few forms back then that I wanted to force > the numlock on, so I actually put that code in a timer event, to 'lock' > the > numlock key on. > > I've found later on that I have not really run into a situation the truly > requires sendkeys anymore, there are usually other approaches. > > Drew > > -----Original Message----- > From: Christian, Lorraine [mailto:LChristian at massmutual.com] > Sent: Tuesday, December 09, 2003 1:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Num Lock > > > Hi there - > > I am experiencing this same issue with an app using SendKeys with W2000. > > Is there a recommendation/resolution? > > Thanks. > > Lorraine > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka > Sent: Tuesday, December 09, 2003 1:43 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Num Lock > > > Do you use SendKeys in your application? That is notorious for turning > the > numlock on/off. > > Drew > > -----Original Message----- > From: Tim Thiessen [mailto:tim at irwingreenhouses.com] > Sent: Tuesday, December 09, 2003 11:48 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Num Lock > > > Hi Group, > > We have an A97 application running on several machines with Windows XP > Pro. > The application is an accounting-invoicing app. When used on Windows 95 > or > 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by > itself. Has anyone ever run into this and if so, can it be corrected? > > TIA > > Tim Thiessen > > > Tim Thiessen > Production Manager > Irwin Greenhouses, Inc. > 806-655-7811 > Fax 806-655-3046 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > --------------------------------------------------------- > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From pedro at plex.nl Tue Dec 9 16:41:11 2003 From: pedro at plex.nl (Pedro Janssen) Date: Tue, 9 Dec 2003 23:41:11 +0100 Subject: [AccessD] matching field error Message-ID: <002101c3bea9$1ddd03c0$f8c581d5@pedro> Hello Group, i get the following error in a form, when i close it and the field 'PrTestID' is empty: The microsoft Jet database engine cannot find a record in table 'tblTest' with key matching field(s) 'PrTestID' How is this possible, because the field isn't required? Al the ID fields in the form give the same error when they are empty (and all aren't reqiured). Pedro Janssen From pedro at plex.nl Tue Dec 9 17:05:35 2003 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 10 Dec 2003 00:05:35 +0100 Subject: [AccessD] form - subform problem Message-ID: <002301c3bea9$218d6190$f8c581d5@pedro> Hello Group, I use the code below to open a (sub)form so that the data of PrProduktgegevens1ID is also present on this (sub)form. I have 10 PrProduktgegevensID fields on the head form. Each PrProduktgegevenID has its on new (sub)form. The headform and all the 10 (sub)forms have the same query as Record Source. But many times when i open the (sub)form, the data of the PrProduktgegevensID isn't placed. Its fields are empty. How is this possible? Can i better also place the recordID of the headform in the stLinkCriteria? (sorry for the bad explanation of this problem. But i find it difficult to explain the problem in English) TIA Pedro Janssen Private Sub cmdPrGegSub1_Click() On Error GoTo Err_cmdPrGegSub1_Click Dim stDocName As String Dim stLinkCriteria As String stDocName = "frmPrGegSub1" stLinkCriteria = "[PrProduktgegevens1ID]=" & Me![PrProduktgegevens1ID] DoCmd.OpenForm stDocName, , , stLinkCriteria Exit_cmdPrGegSub1_Click: Exit Sub Err_cmdPrGegSub1_Click: MsgBox Err.Description Resume Exit_cmdPrGegSub1_Click End Sub From d.dick at uws.edu.au Tue Dec 9 17:22:39 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 10 Dec 2003 10:22:39 +1100 Subject: [AccessD] CmdRunApp Help References: Message-ID: <012101c3beab$56bf5290$41619a89@DDICK> HI John What is the file to reference to get the FSO working? ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 10, 2003 7:11 AM Subject: RE: [AccessD] CmdRunApp Help > why don't you just do it from within Access? If the filesystem object is > accessible, reference it. Then: > > Function CopyFile(strFileName As String, strDestDir As String) As Boolean > On Error GoTo Err_CopyFile > Dim fs As FileSystemObject > Set fs = CreateObject("Scripting.FileSystemObject") > 'On Error Resume Next > 'if the file doesn't exist, ignore the error > fs.CopyFile strFileName, strDestDir > CopyFile = True > Exit_CopyFile: > On Error Resume Next > Set fs = Nothing > Exit Function > Err_CopyFile: > MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" > Resume Exit_CopyFile > Resume 0 '.FOR TROUBLESHOOTING > End Function > Sub DeleteFile(strFileName As String) > On Error GoTo Err_DeleteFile > Dim fs As FileSystemObject > Set fs = CreateObject("Scripting.FileSystemObject") > On Error Resume Next > 'if the file doesn't exist, ignore the error > fs.DeleteFile strFileName > Exit_DeleteFile: > On Error Resume Next > Set fs = Nothing > Exit Sub > Err_DeleteFile: > Select Case Err > Case 0 '.insert Errors you wish to ignore here > Resume Next > Case Else '.All other errors will trap > Beep > MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" > Resume Exit_DeleteFile > End Select > Resume 0 '.FOR TROUBLESHOOTING > End Sub > Sub RenameFile(strFileName As String, strNewName As String) > On Error GoTo Err_RenameFile > Dim fs As FileSystemObject > Dim f As File > Set fs = CreateObject("Scripting.FileSystemObject") > Set f = fs.GetFile(strFileName) > f.Name = strNewName > Exit_RenameFile: > On Error Resume Next > Set f = Nothing > Set fs = Nothing > Exit Sub > Err_RenameFile: > Select Case Err > Case 0 '.insert Errors you wish to ignore here > Resume Next > Case Else '.All other errors will trap > Beep > MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" > Resume Exit_RenameFile > End Select > Resume 0 '.FOR TROUBLESHOOTING > End Sub > '.Comments : > '.Parameters: > '.Created by: John W. Colby > '.Created : 12/5/2002 9:29:43 PM > Sub CreateDir(strPath As String) > On Error GoTo Err_CreateDir > Dim fs As FileSystemObject > Set fs = CreateObject("Scripting.FileSystemObject") > On Error Resume Next > 'if the file doesn't exist, ignore the error > fs.CreateFolder strPath > Exit_CreateDir: > On Error Resume Next > Set fs = Nothing > Exit Sub > Err_CreateDir: > Select Case Err > Case 0 '.insert Errors you wish to ignore here > Resume Next > Case Else '.All other errors will trap > Beep > MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" > Resume Exit_CreateDir > End Select > Resume 0 '.FOR TROUBLESHOOTING > End Sub > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W > Sent: Tuesday, December 09, 2003 3:03 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] CmdRunApp Help > > > > Hello all, > > I have within my database a call to run a batch program that takes a > file that resides on one of our Network servers and copies it to our > local server and renames it to a text file. I than take that text file > and import it into a table. > > My question is, is there a way to call the batch program and have it run > in the background or run minimized. Right now it works but the dos > window comes up over the top of the database and does the copy and > rename in other words runs in the foreground. > > I have a progress meter that comes up that I would like the user to see > rather than the ugly little black dos window. > > Thanks in advance for any advice. > > > Mike Gowey, MCSA, A+ > Team Leader - SRCI > Information Systems & Services Division > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Tue Dec 9 17:56:14 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 15:56:14 -0800 Subject: [AccessD] CmdRunApp Help References: <012101c3beab$56bf5290$41619a89@DDICK> Message-ID: <3FD6611E.9020702@shaw.ca> Microsoft Scripting Runtime scrrun.dll Darren DICK wrote: >HI John >What is the file to reference to get the FSO working? > >----- Original Message ----- >From: "John W. Colby" >To: "Access Developers discussion and problem solving" >Sent: Wednesday, December 10, 2003 7:11 AM >Subject: RE: [AccessD] CmdRunApp Help > > > > >>why don't you just do it from within Access? If the filesystem object is >>accessible, reference it. Then: >> >>Function CopyFile(strFileName As String, strDestDir As String) As Boolean >>On Error GoTo Err_CopyFile >>Dim fs As FileSystemObject >> Set fs = CreateObject("Scripting.FileSystemObject") >> 'On Error Resume Next >> 'if the file doesn't exist, ignore the error >> fs.CopyFile strFileName, strDestDir >> CopyFile = True >>Exit_CopyFile: >>On Error Resume Next >> Set fs = Nothing >>Exit Function >>Err_CopyFile: >> MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" >> Resume Exit_CopyFile >> Resume 0 '.FOR TROUBLESHOOTING >>End Function >>Sub DeleteFile(strFileName As String) >>On Error GoTo Err_DeleteFile >>Dim fs As FileSystemObject >> Set fs = CreateObject("Scripting.FileSystemObject") >> On Error Resume Next >> 'if the file doesn't exist, ignore the error >> fs.DeleteFile strFileName >>Exit_DeleteFile: >>On Error Resume Next >> Set fs = Nothing >>Exit Sub >>Err_DeleteFile: >> Select Case Err >> Case 0 '.insert Errors you wish to ignore here >> Resume Next >> Case Else '.All other errors will trap >> Beep >> MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" >> Resume Exit_DeleteFile >> End Select >> Resume 0 '.FOR TROUBLESHOOTING >>End Sub >>Sub RenameFile(strFileName As String, strNewName As String) >>On Error GoTo Err_RenameFile >> Dim fs As FileSystemObject >> Dim f As File >> Set fs = CreateObject("Scripting.FileSystemObject") >> Set f = fs.GetFile(strFileName) >> f.Name = strNewName >>Exit_RenameFile: >>On Error Resume Next >> Set f = Nothing >> Set fs = Nothing >>Exit Sub >>Err_RenameFile: >> Select Case Err >> Case 0 '.insert Errors you wish to ignore here >> Resume Next >> Case Else '.All other errors will trap >> Beep >> MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" >> Resume Exit_RenameFile >> End Select >> Resume 0 '.FOR TROUBLESHOOTING >>End Sub >>'.Comments : >>'.Parameters: >>'.Created by: John W. Colby >>'.Created : 12/5/2002 9:29:43 PM >>Sub CreateDir(strPath As String) >>On Error GoTo Err_CreateDir >>Dim fs As FileSystemObject >> Set fs = CreateObject("Scripting.FileSystemObject") >> On Error Resume Next >> 'if the file doesn't exist, ignore the error >> fs.CreateFolder strPath >>Exit_CreateDir: >>On Error Resume Next >> Set fs = Nothing >>Exit Sub >>Err_CreateDir: >> Select Case Err >> Case 0 '.insert Errors you wish to ignore here >> Resume Next >> Case Else '.All other errors will trap >> Beep >> MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" >> Resume Exit_CreateDir >> End Select >> Resume 0 '.FOR TROUBLESHOOTING >>End Sub >> >>John W. Colby >>www.ColbyConsulting.com >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W >>Sent: Tuesday, December 09, 2003 3:03 PM >>To: Access Developers discussion and problem solving >>Subject: [AccessD] CmdRunApp Help >> >> >> >>Hello all, >> >>I have within my database a call to run a batch program that takes a >>file that resides on one of our Network servers and copies it to our >>local server and renames it to a text file. I than take that text file >>and import it into a table. >> >>My question is, is there a way to call the batch program and have it run >>in the background or run minimized. Right now it works but the dos >>window comes up over the top of the database and does the copy and >>rename in other words runs in the foreground. >> >>I have a progress meter that comes up that I would like the user to see >>rather than the ugly little black dos window. >> >>Thanks in advance for any advice. >> >> >>Mike Gowey, MCSA, A+ >>Team Leader - SRCI >>Information Systems & Services Division >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Tue Dec 9 18:33:54 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Tue, 09 Dec 2003 16:33:54 -0800 Subject: [AccessD] Fw: [dba-Tech] MS To Junk Flagship Products References: <010a01c3bea1$450df2e0$6501a8c0@HAL9002> Message-ID: <3FD669F2.9000601@shaw.ca> You should buy the OXP ODE version now, it will only be on store shelves for 3 months maybe less, from the release of a new Developers version Office 2003. Unless you want to buy from E-Bay later. You used to be able to get a downgraded version of lower versions of Access Developer via a MSDN subscription. this is no longer the case after Dec 22, if what is stated is true in the newsgroup is true. You can't run Access 2003 below Win 2000 but SageKey has an MSI script installer for Access 2003 With SageKey the Access application will not need a digital certificate. The scripts will not display the Macro Security Warning Message "The file may not be safe if it contains code that was intended to hard your computer" when run without a digital signature. The Microsoft Installer does. It also says you need both the Office 2003 Professional CD and the Office 2003 VST CD Microsoft MS Visual Studio Tools Upgrade for Office 2003 is around $200, but you can't seem to buy from Microsoft shop. ???? Rocky Smolin - Beach Access Software wrote: >x-posted from tech list > >Rocky > >----- Original Message ----- >From: "Rocky Smolin - Beach Access Software" >To: "Discussion of Hardware and Software issues" > >Sent: Tuesday, December 09, 2003 11:05 AM >Subject: Re: [dba-Tech] MS To Junk Flagship Products > > > > >>I was just thinking about OXP developer edition because I want to launch a >>product next year and so far I've decided that the user has to have >> >> >access, > > >>which avoids all those deployment issues. But then I thought I could pick >>up a few more customers with a run-time install. >> >>I thought that deploying a run time in OXP using MS stuff was supposed to >> >> >be > > >>much better? I've got WISE Ver. 9 but would have to buy the Sagekey >>scripts. >> >>Anyway, without MS supporting OXP developer, how do we deploy run-times of >>our apps? >> >>Any advice? >> >>MTIA >> >>Rocky >> >>----- Original Message ----- >>From: "Arthur Fuller" >>To: "'Discussion of Hardware and Software issues'" >> >>Sent: Tuesday, December 09, 2003 10:38 AM >>Subject: [dba-Tech] MS To Junk Flagship Products >> >> >> >> >>>As a side-effect of the Sun lawsuit, MS is junking all products that >>>embed the non-compliant Java engine: >>> >>>http://www.eweek.com/article2/0,4149,1405300,00.asp >>> >>>Arthur >>> >>> >>>_______________________________________________ >>> >>> >>> > > -- Marty Connelly Victoria, B.C. Canada From dwaters at usinternet.com Tue Dec 9 19:03:08 2003 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 9 Dec 2003 19:03:08 -0600 Subject: [AccessD] Email in HTML Format (was: A2K: Runtime version of 2003 (Crap)) In-Reply-To: <19218202.1070998091531.JavaMail.root@localhost.localdomain> Message-ID: <000001c3beb9$6063db50$de1811d8@DanWaters> Christian, I tried the following line of code to test this (w/ OTL XP and WXP), and I did get the security dialog. Could you post a sample of how you do this? DoCmd.SendObject , , acFormatHTML, "dwaters at usinternet.com" , , , "This is a test", "Of HTML Email", False Thanks, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brock, Christian T, HRC-Alexandria Sent: Tuesday, December 09, 2003 1:20 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) If you send the email in html format, outlook security (Outlook 2002 on Windows XP) will let it through without any problems. Christian Brock -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, 09 December 2003 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Runtime version of 2003 (Crap) This might be an easier method of overcoming the Outlook security sending mail without requiring multiple clicks. Haven't tried it but it looks easier than using Redemption method. Express ClickYes Puts an Icon in systray that captures the outlook messages You can modify behaviour with VBA code. http://www.express-soft.com/mailmate/clickyes.html Erwin Craps - IT Helps wrote: >Yes Brett I can, or at least point you at it > >There is a MSKB article on it... >Looking for it....... Found. >Luckaly I safe often used HTML pages to my disk (they sometimes >disapear from the MS site...). Have to turn this *@s*## each time of >when installing Exchange server. Here it is, knock yourself out :-) >http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 > >Please note that you can only turn security off when having outlook >connected to Microsoft Exchange Server!!! Outlook checks a form with >settings in the public folder of Exchange. So this does not work if >your Outlook only uses PST files. > >Read the installation procedure tree times before actualy dooing it. >Had some misunderstandings the first time I done this (now several >years ago). > > >The principle is that you register a form in MSEX public folder where >you change the security settings. Some files (1 or 2) need to be >put/replaced in the winnt system32 folder of the Exchange server. > >A registry key must be added on each Outlook client pc. >This key tells Outlook to look for the security setting in the form in >the public folder and to use those for outlook. This way you can free >exe files (for example) or allow doubleclick from the e-mail for files. >Also the automation pop-ups can be avoided using this procedure. > > >Greetz >PS: Thats my second good deed of the day.... > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett >Barabash >Sent: Monday, December 08, 2003 3:20 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >Erwin, >Can you give me some more info about this? Enquiring minds want to >know. > >-----Original Message----- >From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] >Sent: Monday, December 08, 2003 1:48 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >This Outlook automation security thing is pretty easy solvable when >using Outlook combined with Exchange server. There is a form that needs >to be installed in the public Exchange folder and a registry key on >each machine. By this you can turn of several security issues (like >blocking some file type and automation). >I use Outlook automation for several years now without any problem >(except for a "send as" bug in O2K3). > >Ofcourse your network needs to be protected with other means if you >turn of Outlook security. But a network protection should be a default >issue when having Exchange server. > > >Erwin > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby >Verzonden: vrijdag 5 december 2003 18:10 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. >NOT installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to >send mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage >the code within the dB can cause and am prompted each time I open a dB >if I wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From d.dick at uws.edu.au Tue Dec 9 19:09:47 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 10 Dec 2003 12:09:47 +1100 Subject: [AccessD] CmdRunApp Help References: <012101c3beab$56bf5290$41619a89@DDICK> <3FD6611E.9020702@shaw.ca> Message-ID: <001801c3beba$d2a30780$41619a89@DDICK> Thanks Marty Excellent DD ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 10, 2003 10:56 AM Subject: Re: [AccessD] CmdRunApp Help > Microsoft Scripting Runtime scrrun.dll > > Darren DICK wrote: > > >HI John > >What is the file to reference to get the FSO working? > > > >----- Original Message ----- > >From: "John W. Colby" > >To: "Access Developers discussion and problem solving" > >Sent: Wednesday, December 10, 2003 7:11 AM > >Subject: RE: [AccessD] CmdRunApp Help > > > > > > > > > >>why don't you just do it from within Access? If the filesystem object is > >>accessible, reference it. Then: > >> > >>Function CopyFile(strFileName As String, strDestDir As String) As Boolean > >>On Error GoTo Err_CopyFile > >>Dim fs As FileSystemObject > >> Set fs = CreateObject("Scripting.FileSystemObject") > >> 'On Error Resume Next > >> 'if the file doesn't exist, ignore the error > >> fs.CopyFile strFileName, strDestDir > >> CopyFile = True > >>Exit_CopyFile: > >>On Error Resume Next > >> Set fs = Nothing > >>Exit Function > >>Err_CopyFile: > >> MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" > >> Resume Exit_CopyFile > >> Resume 0 '.FOR TROUBLESHOOTING > >>End Function > >>Sub DeleteFile(strFileName As String) > >>On Error GoTo Err_DeleteFile > >>Dim fs As FileSystemObject > >> Set fs = CreateObject("Scripting.FileSystemObject") > >> On Error Resume Next > >> 'if the file doesn't exist, ignore the error > >> fs.DeleteFile strFileName > >>Exit_DeleteFile: > >>On Error Resume Next > >> Set fs = Nothing > >>Exit Sub > >>Err_DeleteFile: > >> Select Case Err > >> Case 0 '.insert Errors you wish to ignore here > >> Resume Next > >> Case Else '.All other errors will trap > >> Beep > >> MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" > >> Resume Exit_DeleteFile > >> End Select > >> Resume 0 '.FOR TROUBLESHOOTING > >>End Sub > >>Sub RenameFile(strFileName As String, strNewName As String) > >>On Error GoTo Err_RenameFile > >> Dim fs As FileSystemObject > >> Dim f As File > >> Set fs = CreateObject("Scripting.FileSystemObject") > >> Set f = fs.GetFile(strFileName) > >> f.Name = strNewName > >>Exit_RenameFile: > >>On Error Resume Next > >> Set f = Nothing > >> Set fs = Nothing > >>Exit Sub > >>Err_RenameFile: > >> Select Case Err > >> Case 0 '.insert Errors you wish to ignore here > >> Resume Next > >> Case Else '.All other errors will trap > >> Beep > >> MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" > >> Resume Exit_RenameFile > >> End Select > >> Resume 0 '.FOR TROUBLESHOOTING > >>End Sub > >>'.Comments : > >>'.Parameters: > >>'.Created by: John W. Colby > >>'.Created : 12/5/2002 9:29:43 PM > >>Sub CreateDir(strPath As String) > >>On Error GoTo Err_CreateDir > >>Dim fs As FileSystemObject > >> Set fs = CreateObject("Scripting.FileSystemObject") > >> On Error Resume Next > >> 'if the file doesn't exist, ignore the error > >> fs.CreateFolder strPath > >>Exit_CreateDir: > >>On Error Resume Next > >> Set fs = Nothing > >>Exit Sub > >>Err_CreateDir: > >> Select Case Err > >> Case 0 '.insert Errors you wish to ignore here > >> Resume Next > >> Case Else '.All other errors will trap > >> Beep > >> MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" > >> Resume Exit_CreateDir > >> End Select > >> Resume 0 '.FOR TROUBLESHOOTING > >>End Sub > >> > >>John W. Colby > >>www.ColbyConsulting.com > >> > >>-----Original Message----- > >>From: accessd-bounces at databaseadvisors.com > >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W > >>Sent: Tuesday, December 09, 2003 3:03 PM > >>To: Access Developers discussion and problem solving > >>Subject: [AccessD] CmdRunApp Help > >> > >> > >> > >>Hello all, > >> > >>I have within my database a call to run a batch program that takes a > >>file that resides on one of our Network servers and copies it to our > >>local server and renames it to a text file. I than take that text file > >>and import it into a table. > >> > >>My question is, is there a way to call the batch program and have it run > >>in the background or run minimized. Right now it works but the dos > >>window comes up over the top of the database and does the copy and > >>rename in other words runs in the foreground. > >> > >>I have a progress meter that comes up that I would like the user to see > >>rather than the ugly little black dos window. > >> > >>Thanks in advance for any advice. > >> > >> > >>Mike Gowey, MCSA, A+ > >>Team Leader - SRCI > >>Information Systems & Services Division > >> > >> > >> > >>_______________________________________________ > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > >> > >>_______________________________________________ > >>AccessD mailing list > >>AccessD at databaseadvisors.com > >>http://databaseadvisors.com/mailman/listinfo/accessd > >>Website: http://www.databaseadvisors.com > >> > >> > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Tue Dec 9 20:54:55 2003 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Wed, 10 Dec 2003 15:54:55 +1300 Subject: [AccessD] Report properties - A2000 vs A2002 Message-ID: <70F3D727890C784291D8433E9C418F2908854D@server.bondsoftware.co.nz> I take a (long-time working) app from a Win2000 / A2000 environment to a WinXP / A2002 environment. The app is not converted to A2002, it stays in A2000 format, and works well ... except for a couple of reports. Using A2002 to compare the properties of one of the reports that works and one that doesn't, I see some that are different, namely, PopUp, Modal, Border Style. The reports that don't work have these properties to Yes/Yes/Modal; the ones that do work are No/No/Sizable. So back I go to A2000, and, no sign of these properties on a Report. Next, trying to be clever, and still in A2000, I try setting a WindowMode property when I invoke the report - but that works only in A2002 (well it syntaxes out in A2000). In A2000 how do I change these properties? I suppose a work-around would be to change the properties under A2002, but this defeats the goal of distributing one version only. Stephen Bond Otatara, South Island, New Zealand 03 213 1256 fax 03 213 0123 From adtp at touchtelindia.net Tue Dec 9 22:58:46 2003 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 10 Dec 2003 10:28:46 +0530 Subject: [AccessD] Backing Up Access MDB References: <002601c3be81$118a49c0$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <00f601c3bedb$806bf5a0$d6edf73d@winxp> Ken, It would be nice if you are in a position to carry out actual trials so as to ascertain whether it stands the test of multi-user requirements. I would be interested to know the outcome. (There has been no problem with single user mode). Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Ken Ismert To: 'Access Developers discussion and problem solving' Sent: Tuesday, December 09, 2003 23:50 Subject: RE: [AccessD] Backing Up Access MDB A.D.: But do they guarantee completely consistent backups? Anyone can backup files in a running mdb -- but how can you be sure there are no update/delete locks, or pending/reversing transactions in place? Microsoft emphatically states that you can't rely on the internal consistency of the data when you do a live backup of an mdb file - regardless of whether you backup whole files, or tables individually. Honestly, I'd love to be able do live backups of Access data, but until I see proof that they handle these data consistency issues properly, I'll hold off. After all, a restore that scrambles the owner's data is of no use to anyone. I'll end by restating my current position: Access is not an enterprise data server. If you need 24/7 access, high concurrency, failover/data recovery, and live backups, move to SQL Server or the like. -Ken -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Tuesday, December 09, 2003 10:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backing Up Access MDB Paul, You might like to take a look at Access Add-In named SelfSaveAddIn.mda available at Rogers Access Library (Other Developers Section). Once installed, you can create compacted backup copies from within the running db at the click of a button (without having to close it first). If it happens to be a split db, compacted backup copy of the back end also gets created simultaneously. Following options are available for stamping the backup copies (over & above the basic suffix of "_Bk") - (a) Current date and hour (b) Current date (c) No stamp Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Dan Waters To: 'Access Developers discussion and problem solving' Sent: Tuesday, December 09, 2003 21:09 Subject: RE: [AccessD] Backing Up Access MDB Paul, If you only need to back up the data, perhaps you could just manually copy the data tables from the operating mdb to a different mdb? What I've done before is to time my mdb changes (or backup) during lunch when most people are out of the system, and won't mind if you log them out. HTH, Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 09, 2003 6:38 AM To: accessd Subject: [AccessD] Backing Up Access MDB To all, We are coming upto our busiest period (January), and we will have about 15-20 users on Access at any one time. Is there a way to backup the mdb file without taking users out, without the risk of losing any data ? Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From Erwin.Craps at ithelps.be Wed Dec 10 01:38:11 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 10 Dec 2003 08:38:11 +0100 Subject: [AccessD] CmdRunApp Help Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF9A@stekelbes.ithelps.local> Hi John Why using the filesystemobject and not the regular VBA commands? Faster? Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 09, 2003 9:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Wed Dec 10 01:48:13 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 10 Dec 2003 08:48:13 +0100 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CF9C@stekelbes.ithelps.local> One small but important remark from a security point of view. "One should never store admin passwords!" Create a account with sufficient rights for your purpose and use that account. Never Never store an admin password, if you put it straigth in code it can be simply scanned in you code (compiled or not). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Tuesday, December 09, 2003 10:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation Thanks Drew. I was specifically interested in copying files to the WINNT\System32 directory (e.g. ocx, dll files). I downloaded some impersonation code (my Nicholson's a little rusty, but I can do a good Dubya. Just think "nucular") from PSC but couldn't get it to run on our W2K network. After a lengthy search (MSDN no longer has it), I found the NTSVC.OCX file. I will take a look at it; probably just what I need. >From your experience, is VB6 stable enough to create services? The >reason why I ask is because Microsoft has some KB articles that discuss access violation errors occuring from the OS interacting with VB's AddressOf function when run as a service. -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Tuesday, December 09, 2003 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ------------------------------------------------------------------------ ---- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tortise at paradise.net.nz Wed Dec 10 02:04:44 2003 From: tortise at paradise.net.nz (Tortise) Date: Wed, 10 Dec 2003 21:04:44 +1300 Subject: Fw: [AccessD] Form instances (AXP) and now AY2k3 Message-ID: <063501c3bef4$45ec7d50$1e00a8c0@cheqsoft.local> Hi If anyone is interested re this, I have made one small relevant "discovery". The option to display multiple windows in the task bar - I think this option started with A2K. If this is set to display multiple windows in the task bar then each forms instance is also shown in the task bar. (Navigationally useful!) It also relates to my previous observation that Access Y2K3 does not allow multiple versions of the same database to run on the same desktop. Somewhat Akin to Word and Excel multiple open files all get a separate windows task bar in recent versions. This setting is a factor. Clearly this is why, there is no need now, when this is set to multiple task bar entries..... My recent work has been with this set to only one reference to the program on the task bar. Kind regards, Dr David Hingston Director Chequers Software Limited Wellington, New Zealand. www.cheqsoft.com Crafters of: Break Reminder - For safe and efficient PC use - www.breakreminder.com TimesOwn - International Time Zone Calculator a click away - http://www.cheqsoft.com/timesown.html Clipboard Express - Cut and paste storage and web form filler - http://www.cheqsoft.com/clipboard.html MP3Detective - MP3 Player manager - http://www.cheqsoft.com/mp3detective.html Engines2Go = E2Go Fast and friendly Internet searching - have you tried it? http://www.E2Go.com/ From andy at minstersystems.co.uk Wed Dec 10 03:10:22 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 09:10:22 -0000 Subject: [AccessD] matching field error In-Reply-To: <002101c3bea9$1ddd03c0$f8c581d5@pedro> Message-ID: <032601c3befd$711b6550$b274d0d5@minster33c3r25> Pedro The implication is that the you have Relationships defined with referential integrity. You are saving a record with a test id which doesn't match to a key value in the tblTest table. The odd thing is that this shouldn't occur if the fields are Null. Is there any way they could have zeroes or zero-length strings rather tha nulls, because that would do it. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Pedro Janssen > Sent: 09 December 2003 22:41 > To: AccessD at databaseadvisors.com > Subject: [AccessD] matching field error > > > Hello Group, > > i get the following error in a form, when i close it and the > field 'PrTestID' is empty: > > The microsoft Jet database engine cannot find a record in > table 'tblTest' with key matching field(s) 'PrTestID' > > > How is this possible, because the field isn't required? > Al the ID fields in the form give the same error when they > are empty (and all aren't reqiured). > > > > Pedro Janssen > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > From pedro at plex.nl Wed Dec 10 11:32:58 2003 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 10 Dec 2003 11:32:58 (MET) Subject: [AccessD] matching field error Message-ID: <200312101032.hBAAWwNA020041@mailhostC.plex.net> Hello Andy, In the help function i saw what the error means. But it made no sence to me. You say: "Is there any way they could have zeroes or zero-length strings rather than nulls". When a field is empty i think there is nothing in it. How can it be that a field is empty but a zero is present?? Pedro In antwoord op: > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > Date: Wed, 10 Dec 2003 09:10:22 -0000 > Subject: RE: [AccessD] matching field error > > > Pedro > The implication is that the you have Relationships defined with referential > integrity. You are saving a record with a test id which doesn't match to a > key value in the tblTest table. The odd thing is that this shouldn't occur > if the fields are Null. Is there any way they could have zeroes or > zero-length strings rather tha nulls, because that would do it. > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Pedro Janssen > > Sent: 09 December 2003 22:41 > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] matching field error > > > > > > Hello Group, > > > > i get the following error in a form, when i close it and the > > field 'PrTestID' is empty: > > > > The microsoft Jet database engine cannot find a record in > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > How is this possible, because the field isn't required? > > Al the ID fields in the form give the same error when they > > are empty (and all aren't reqiured). > > > > > > > > Pedro Janssen > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From paul.hartland at fsmail.net Wed Dec 10 04:46:53 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 10 Dec 2003 11:46:53 +0100 (CET) Subject: [AccessD] Menubar On An Access Form Message-ID: <29757300.1071053213796.JavaMail.www@wwinf3005> To all, I have a personnel form (frmPersonnel) and I also have a custom menu bar which I have designed, doesn't do anything yet cause I need to work out how to run commands when one of the buttons are clicked. Anyway, is there a way in which I can get the menubar to appear on my form at the top ? Thanks in advance for any help. Paul Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From andy at minstersystems.co.uk Wed Dec 10 05:58:31 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 11:58:31 -0000 Subject: [AccessD] matching field error In-Reply-To: <200312101032.hBAAWwNA020041@mailhostC.plex.net> Message-ID: <033d01c3bf14$f3d74b50$b274d0d5@minster33c3r25> No, well if it's empty it isn't zero I agree, but there's something going on here that's not obvious and I'm struggling to think what. Is there any way the field could have a blank space in it rather than Null? Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > pedro at plex.nl > Sent: 10 December 2003 11:33 > To: AccessD at databaseadvisors.com > Subject: RE: [AccessD] matching field error > > > Hello Andy, > > In the help function i saw what the error means. But it made > no sence to me. You say: "Is there any way they could have > zeroes or zero-length strings rather than nulls". When a > field is empty i think there is nothing in it. How can it be > that a field is empty but a zero is present?? > > Pedro > > > > > > In antwoord op: > > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > Subject: RE: [AccessD] matching field error > > > > > > Pedro > > The implication is that the you have Relationships defined with > > referential integrity. You are saving a record with a test id which > > doesn't match to a key value in the tblTest table. The odd thing is > > that this shouldn't occur if the fields are Null. Is there any way > > they could have zeroes or zero-length strings rather tha nulls, > > because that would do it. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Pedro Janssen > > > Sent: 09 December 2003 22:41 > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] matching field error > > > > > > > > > Hello Group, > > > > > > i get the following error in a form, when i close it and the > > > field 'PrTestID' is empty: > > > > > > The microsoft Jet database engine cannot find a record in > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > How is this possible, because the field isn't required? > > > Al the ID fields in the form give the same error when they > > > are empty (and all aren't reqiured). > > > > > > > > > > > > Pedro Janssen _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Wed Dec 10 05:58:31 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 11:58:31 -0000 Subject: [AccessD] Menubar On An Access Form In-Reply-To: <29757300.1071053213796.JavaMail.www@wwinf3005> Message-ID: <033e01c3bf14$f3eb2170$b274d0d5@minster33c3r25> Paul In the properties of the form there's a Menu Bar. Just drop down the combo and pick your menu. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 10 December 2003 10:47 > To: accessd > Subject: [AccessD] Menubar On An Access Form > > > To all, > I have a personnel form (frmPersonnel) and I also have a > custom menu bar which I have designed, doesn't do anything > yet cause I need to work out how to run commands when one of > the buttons are clicked. Anyway, is there a way in which I > can get the menubar to appear on my form at the top ? Thanks > in advance for any help. Paul Freeserve AnyTime - HALF PRICE > for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > From jcolby at colbyconsulting.com Wed Dec 10 06:27:15 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 10 Dec 2003 07:27:15 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CF9A@stekelbes.ithelps.local> Message-ID: Erwin, Why not post code as I did? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, December 10, 2003 2:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Hi John Why using the filesystemobject and not the regular VBA commands? Faster? Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 09, 2003 9:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From LChristian at MassMutual.com Wed Dec 10 06:28:46 2003 From: LChristian at MassMutual.com (Christian, Lorraine) Date: Wed, 10 Dec 2003 07:28:46 -0500 Subject: [AccessD] Num Lock Message-ID: <5B898D9F0627974EB82D0645E52B1E7D035CB80C@EXMBPR03.na.mmfg.net> Hi there! Drew, do you care to share your function? :) Thanks. Lorraine -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Tuesday, December 09, 2003 3:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Num Lock Yep, don't use SendKeys! Actually, way back when, when I actually used SendKeys for various things, I wrote a function that checked the state of the Numlock key, and would change it if necessary. So what I did BEFORE the Sendkeys line, is check the state, then ran SendKeys, then checked the state again. If it changed, I switched it back. I also had a few forms back then that I wanted to force the numlock on, so I actually put that code in a timer event, to 'lock' the numlock key on. I've found later on that I have not really run into a situation the truly requires sendkeys anymore, there are usually other approaches. Drew -----Original Message----- From: Christian, Lorraine [mailto:LChristian at massmutual.com] Sent: Tuesday, December 09, 2003 1:38 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Num Lock Hi there - I am experiencing this same issue with an app using SendKeys with W2000. Is there a recommendation/resolution? Thanks. Lorraine -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Tuesday, December 09, 2003 1:43 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Num Lock Do you use SendKeys in your application? That is notorious for turning the numlock on/off. Drew -----Original Message----- From: Tim Thiessen [mailto:tim at irwingreenhouses.com] Sent: Tuesday, December 09, 2003 11:48 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Num Lock Hi Group, We have an A97 application running on several machines with Windows XP Pro. The application is an accounting-invoicing app. When used on Windows 95 or 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by itself. Has anyone ever run into this and if so, can it be corrected? TIA Tim Thiessen Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. --------------------------------------------------------- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Wed Dec 10 07:20:10 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 10 Dec 2003 08:20:10 -0500 Subject: [AccessD] CmdRunApp Help Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173F9D0@TTNEXCHSRV1.hshhp.com> John, Why are you using using On Error Resume Next when the FileSystemObject contains a FileExists method? This way you can have meaningful error handling if necessary. Set fs = CreateObject("Scripting.FileSystemObject") If fs.FileExists(strFileName) Then fs.CopyFile strFileName, strDestDir CopyFile = True End if Jim DeMarco Director Product Development Hudson Health Plan -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Wednesday, December 10, 2003 7:27 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Erwin, Why not post code as I did? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, December 10, 2003 2:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Hi John Why using the filesystemobject and not the regular VBA commands? Faster? Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 09, 2003 9:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 gustav at cactus.dk Wed Dec 10 07:22:56 2003 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 10 Dec 2003 14:22:56 +0100 Subject: [AccessD] CmdRunApp Help In-Reply-To: References: Message-ID: <1819383351.20031210142256@cactus.dk> Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? From pedro at plex.nl Wed Dec 10 15:13:46 2003 From: pedro at plex.nl (pedro at plex.nl) Date: Wed, 10 Dec 2003 15:13:46 (MET) Subject: [AccessD] matching field error Message-ID: <200312101413.hBAEDkNA029660@mailhostC.plex.net> Hello Andy, All fields are empty, no zero or blanc space. The Field is a combobox with property Limit To List is set to Yes. The ID fields Record Source is a query. The query's Record Source is a table in which the ID field is a lookup combobox from an other table. Andy or the rest of the group. How is this possible. Pedro In antwoord op: > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > Date: Wed, 10 Dec 2003 11:58:31 -0000 > Subject: RE: [AccessD] matching field error > > > No, well if it's empty it isn't zero I agree, but there's something going on > here that's not obvious and I'm struggling to think what. Is there any way > the field could have a blank space in it rather than Null? > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > pedro at plex.nl > > Sent: 10 December 2003 11:33 > > To: AccessD at databaseadvisors.com > > Subject: RE: [AccessD] matching field error > > > > > > Hello Andy, > > > > In the help function i saw what the error means. But it made > > no sence to me. You say: "Is there any way they could have > > zeroes or zero-length strings rather than nulls". When a > > field is empty i think there is nothing in it. How can it be > > that a field is empty but a zero is present?? > > > > Pedro > > > > > > > > > > > > In antwoord op: > > > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > Subject: RE: [AccessD] matching field error > > > > > > > > > Pedro > > > The implication is that the you have Relationships defined with > > > referential integrity. You are saving a record with a test id which > > > doesn't match to a key value in the tblTest table. The odd thing is > > > that this shouldn't occur if the fields are Null. Is there any way > > > they could have zeroes or zero-length strings rather tha nulls, > > > because that would do it. > > > > > > Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > Pedro Janssen > > > > Sent: 09 December 2003 22:41 > > > > To: AccessD at databaseadvisors.com > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > Hello Group, > > > > > > > > i get the following error in a form, when i close it and the > > > > field 'PrTestID' is empty: > > > > > > > > The microsoft Jet database engine cannot find a record in > > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > How is this possible, because the field isn't required? > > > > Al the ID fields in the form give the same error when they > > > > are empty (and all aren't reqiured). > > > > > > > > > > > > > > > > Pedro Janssen _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > Website: > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From BBarabash at TappeConstruction.com Wed Dec 10 08:19:32 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 10 Dec 2003 08:19:32 -0600 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE1EF@TAPPEEXCH01> Excellent point, Erwin For operations like these, I would create a separate user with fairly low security clearance and grant them access to the necessary source/destination directories. Security is always a huge concern for us. I use RC4 encryption to encrypt ADO connection strings for our standalone apps in their INI files. I could easily use it to encrypt the NT username/password as well. -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 10, 2003 1:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT (sorta) security impersonation One small but important remark from a security point of view. "One should never store admin passwords!" Create a account with sufficient rights for your purpose and use that account. Never Never store an admin password, if you put it straigth in code it can be simply scanned in you code (compiled or not). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Tuesday, December 09, 2003 10:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation Thanks Drew. I was specifically interested in copying files to the WINNT\System32 directory (e.g. ocx, dll files). I downloaded some impersonation code (my Nicholson's a little rusty, but I can do a good Dubya. Just think "nucular") from PSC but couldn't get it to run on our W2K network. After a lengthy search (MSDN no longer has it), I found the NTSVC.OCX file. I will take a look at it; probably just what I need. >From your experience, is VB6 stable enough to create services? The >reason why I ask is because Microsoft has some KB articles that discuss access violation errors occuring from the OS interacting with VB's AddressOf function when run as a service. -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Tuesday, December 09, 2003 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ------------------------------------------------------------------------ ---- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 andy at minstersystems.co.uk Tue Dec 9 01:45:20 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 9 Dec 2003 07:45:20 -0000 Subject: [AccessD] Hello Again In-Reply-To: <000001c3bde4$e7056730$ec98073e@Chris> Message-ID: <023101c3be28$65c849a0$b274d0d5@minster33c3r25> Hi Chris, great to see you back. I had wondered where you went. Good luck on the freelance circuit. You still up in the Lake District? Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Chris J Bain > Sent: 08 December 2003 23:42 > To: accessd at databaseadvisors.com > Subject: [AccessD] Hello Again > > > Hi All, > > It has been some time (about 2 years) since I left the list > and due to unfortunate circumstances I am back on the > freelance market again. Nice to see familiar faces (Andy, Susan etc.) > > Hope to be a good contributor to the list. > > Kind Regards > > Chris J Bain > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Wed Dec 10 09:36:30 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Wed, 10 Dec 2003 16:36:30 +0100 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <46B976F2B698FF46A4FE7636509B22DF72A8@stekelbes.ithelps.local> Glad to hear I'm not the only one concerned with security.... -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Brett Barabash Verzonden: woensdag 10 december 2003 15:20 Aan: 'Access Developers discussion and problem solving' Onderwerp: RE: [AccessD] OT (sorta) security impersonation Excellent point, Erwin For operations like these, I would create a separate user with fairly low security clearance and grant them access to the necessary source/destination directories. Security is always a huge concern for us. I use RC4 encryption to encrypt ADO connection strings for our standalone apps in their INI files. I could easily use it to encrypt the NT username/password as well. -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 10, 2003 1:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT (sorta) security impersonation One small but important remark from a security point of view. "One should never store admin passwords!" Create a account with sufficient rights for your purpose and use that account. Never Never store an admin password, if you put it straigth in code it can be simply scanned in you code (compiled or not). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Tuesday, December 09, 2003 10:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation Thanks Drew. I was specifically interested in copying files to the WINNT\System32 directory (e.g. ocx, dll files). I downloaded some impersonation code (my Nicholson's a little rusty, but I can do a good Dubya. Just think "nucular") from PSC but couldn't get it to run on our W2K network. After a lengthy search (MSDN no longer has it), I found the NTSVC.OCX file. I will take a look at it; probably just what I need. >From your experience, is VB6 stable enough to create services? The >reason why I ask is because Microsoft has some KB articles that discuss access violation errors occuring from the OS interacting with VB's AddressOf function when run as a service. -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Tuesday, December 09, 2003 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ------------------------------------------------------------------------ ---- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Wed Dec 10 09:39:26 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 10 Dec 2003 16:39:26 +0100 (CET) Subject: [AccessD] Access #Num! When Calculating A Field Message-ID: <2560735.1071070766707.JavaMail.www@wwinf3006> To all, I have two bound fields on a form (txtNoOfCases & txtNoOfErrors), I then have an unbound textbox set to Percent with the control source being =[txtNoOfErrors]/[txtNoOfCases] But when you first open the form the unbound textbox has #Num! in it until you enter a value in either of the two fields. How can I make the unbound textbox say 0.00 instead of #Num! until data is entered ? Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From andy at minstersystems.co.uk Wed Dec 10 09:53:35 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 15:53:35 -0000 Subject: [AccessD] Hello Again In-Reply-To: <023101c3be28$65c849a0$b274d0d5@minster33c3r25> Message-ID: <036d01c3bf35$c54c9c10$b274d0d5@minster33c3r25> Whoa, that took 30 hours to come through. Must've had an interesting journey. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: 09 December 2003 07:45 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Hello Again > > > Hi Chris, great to see you back. I had wondered where you > went. Good luck on the freelance circuit. You still up in the > Lake District? > > Andy > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Chris J Bain > > Sent: 08 December 2003 23:42 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Hello Again > > > > > > Hi All, > > > > It has been some time (about 2 years) since I left the list > > and due to unfortunate circumstances I am back on the > > freelance market again. Nice to see familiar faces (Andy, > Susan etc.) > > > > Hope to be a good contributor to the list. > > > > Kind Regards > > > > Chris J Bain > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From mikedorism at adelphia.net Wed Dec 10 09:58:15 2003 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 10 Dec 2003 10:58:15 -0500 Subject: [AccessD] Access #Num! When Calculating A Field In-Reply-To: <2560735.1071070766707.JavaMail.www@wwinf3006> Message-ID: <000001c3bf36$6c22e030$8b194244@hargrove.internal> Set your unbound textbox Control Source to the following: =iif([txtNoOfCases] > 0, [txtNoOfErrors]/[txtNoOfCases], 0) Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Wednesday, December 10, 2003 10:39 AM To: accessd Subject: [AccessD] Access #Num! When Calculating A Field To all, I have two bound fields on a form (txtNoOfCases & txtNoOfErrors), I then have an unbound textbox set to Percent with the control source being =[txtNoOfErrors]/[txtNoOfCases] But when you first open the form the unbound textbox has #Num! in it until you enter a value in either of the two fields. How can I make the unbound textbox say 0.00 instead of #Num! until data is entered ? Thanks in advance for you help. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Wed Dec 10 10:25:21 2003 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Wed, 10 Dec 2003 11:25:21 -0500 Subject: [AccessD] Hello Again Message-ID: It found an interesting server in the UK that it wanted to hang out at the better part of a day.Must of had a few to many pints :-)) Bryan Carbonnell bryan_carbonnell at cbc.ca >>> andy at minstersystems.co.uk 10-Dec-03 10:53:35 AM >>> Whoa, that took 30 hours to come through. Must've had an interesting journey. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey > Sent: 09 December 2003 07:45 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Hello Again > > > Hi Chris, great to see you back. I had wondered where you > went. Good luck on the freelance circuit. You still up in the > Lake District? > > Andy > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Chris J Bain > > Sent: 08 December 2003 23:42 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Hello Again > > > > > > Hi All, > > > > It has been some time (about 2 years) since I left the list > > and due to unfortunate circumstances I am back on the > > freelance market again. Nice to see familiar faces (Andy, > Susan etc.) > > > > Hope to be a good contributor to the list. > > > > Kind Regards > > > > Chris J Bain > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Dec 10 10:35:21 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 16:35:21 -0000 Subject: [AccessD] Hello Again In-Reply-To: Message-ID: <038901c3bf3b$9b1869f0$b274d0d5@minster33c3r25> Cool. My kind of email. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Bryan Carbonnell > Sent: 10 December 2003 16:25 > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Hello Again > > > It found an interesting server in the UK that it wanted to > hang out at the better part of a day.Must of had a few to > many pints :-)) > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > > >>> andy at minstersystems.co.uk 10-Dec-03 10:53:35 AM >>> > Whoa, that took 30 hours to come through. Must've had an > interesting journey. > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy > Lacey > > Sent: 09 December 2003 07:45 > > To: 'Access Developers discussion and problem solving' > > Subject: RE: [AccessD] Hello Again > > > > > > Hi Chris, great to see you back. I had wondered where you > > went. Good luck on the freelance circuit. You still up in the > > Lake District? > > > > Andy > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Chris J Bain > > > Sent: 08 December 2003 23:42 > > > To: accessd at databaseadvisors.com > > > Subject: [AccessD] Hello Again > > > > > > > > > Hi All, > > > > > > It has been some time (about 2 years) since I left the > list and due > > > to unfortunate circumstances I am back on the freelance market > > > again. Nice to see familiar faces (Andy, > > Susan etc.) > > > > > > Hope to be a good contributor to the list. > > > > > > Kind Regards > > > > > > Chris J Bain > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From chris at thecube.net Wed Dec 10 10:37:57 2003 From: chris at thecube.net (chris at thecube.net) Date: Wed, 10 Dec 2003 11:37:57 -0500 Subject: [AccessD] Hello Again Message-ID: <61C38261AF4C4C84BF535CA1D0472C1.MAI@freeparking.co.uk> Andy, Thanks (and also to everyone) for the welcome back, I am still up here in the lake district. I've actually moved onto the wee sliver of an island called Walney. Nothing like peace and isolation to get some work done. I looked on the databaseadvisors.com website, are there any plans for a UK gathering? Kind Regards Chris J Bain chris at thecube.net ----- Original Message ----- From: Andy Lacey To: "'Access Developers discussion and problem solving'" Sent: Tue, 9 Dec 2003 07:45:20 -0000 Subject: RE: [AccessD] Hello Again Hi Chris, great to see you back. I had wondered where you went. Good luck on the freelance circuit. You still up in the Lake District? Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Chris J Bain > Sent: 08 December 2003 23:42 > To: accessd at databaseadvisors.com > Subject: [AccessD] Hello Again > > > Hi All, > > It has been some time (about 2 years) since I left the list > and due to unfortunate circumstances I am back on the > freelance market again. Nice to see familiar faces (Andy, Susan etc.) > > Hope to be a good contributor to the list. > > Kind Regards > > Chris J Bain > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Wed Dec 10 10:47:28 2003 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Wed, 10 Dec 2003 17:47:28 +0100 Subject: [AccessD] Form/report templates In-Reply-To: Message-ID: Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael From cfoust at infostatsystems.com Wed Dec 10 10:48:13 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 08:48:13 -0800 Subject: [AccessD] Menubar On An Access Form Message-ID: Just watch out for runtime installations. In a runtime app, you have to specifically call the menubar using the DoCmd.ShowToolbar , acToolbarYes. You hide it using DoCmd.ShowToolbar , acToolbarNo. Just setting the property in the sheet doesn't work in runtime. Charlotte Foust -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Wednesday, December 10, 2003 3:59 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Menubar On An Access Form Paul In the properties of the form there's a Menu Bar. Just drop down the combo and pick your menu. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > paul.hartland at fsmail.net > Sent: 10 December 2003 10:47 > To: accessd > Subject: [AccessD] Menubar On An Access Form > > > To all, > I have a personnel form (frmPersonnel) and I also have a > custom menu bar which I have designed, doesn't do anything > yet cause I need to work out how to run commands when one of > the buttons are clicked. Anyway, is there a way in which I > can get the menubar to appear on my form at the top ? Thanks > in advance for any help. Paul Freeserve AnyTime - HALF PRICE > for the first 3 months - Save ?7.50 a month > www.freeserve.com/anytime > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 10:51:20 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 08:51:20 -0800 Subject: [AccessD] matching field error Message-ID: Unless it is specifically set to null, a numeric field usually has a default value of zero. If you're dealing with numeric keys, this might be tripping you up. Charlotte Foust -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Wednesday, December 10, 2003 3:33 AM To: AccessD at databaseadvisors.com Subject: RE: [AccessD] matching field error Hello Andy, In the help function i saw what the error means. But it made no sence to me. You say: "Is there any way they could have zeroes or zero-length strings rather than nulls". When a field is empty i think there is nothing in it. How can it be that a field is empty but a zero is present?? Pedro In antwoord op: > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > Date: Wed, 10 Dec 2003 09:10:22 -0000 > Subject: RE: [AccessD] matching field error > > > Pedro > The implication is that the you have Relationships defined with > referential integrity. You are saving a record with a test id which > doesn't match to a key value in the tblTest table. The odd thing is > that this shouldn't occur if the fields are Null. Is there any way > they could have zeroes or zero-length strings rather tha nulls, > because that would do it. > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Pedro Janssen > > Sent: 09 December 2003 22:41 > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] matching field error > > > > > > Hello Group, > > > > i get the following error in a form, when i close it and the > > field 'PrTestID' is empty: > > > > The microsoft Jet database engine cannot find a record in > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > How is this possible, because the field isn't required? > > Al the ID fields in the form give the same error when they > > are empty (and all aren't reqiured). > > > > > > > > Pedro Janssen _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Wed Dec 10 10:56:18 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 16:56:18 -0000 Subject: [AccessD] OT Hello Again In-Reply-To: <61C38261AF4C4C84BF535CA1D0472C1.MAI@freeparking.co.uk> Message-ID: <039701c3bf3e$87e97f10$b274d0d5@minster33c3r25> Hi Chris Not unless you're inviting!! Lembit had a European gathering a month or two back but nothing here. I just put Walney Island into Google and got a bird sanctuary and a naturist beach. Sounds great. Anyway, again, welcome back to the list. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > chris at thecube.net > Sent: 10 December 2003 16:38 > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Hello Again > > > Andy, > > Thanks (and also to everyone) for the welcome back, I am > still up here in the lake district. I've actually moved onto > the wee sliver of an island called Walney. Nothing like peace > and isolation to get some work done. > > I looked on the databaseadvisors.com website, are there any > plans for a UK gathering? > > Kind Regards > > Chris J Bain > chris at thecube.net > > ----- Original Message ----- > From: Andy Lacey > To: "'Access Developers discussion and problem > solving'" > Sent: Tue, 9 Dec 2003 07:45:20 -0000 > Subject: RE: [AccessD] Hello Again > > Hi Chris, great to see you back. I had wondered where you > went. Good luck on the freelance circuit. You still up in the > Lake District? > > Andy > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Chris J Bain > > Sent: 08 December 2003 23:42 > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Hello Again > > > > > > Hi All, > > > > It has been some time (about 2 years) since I left the list > > and due to unfortunate circumstances I am back on the > > freelance market again. Nice to see familiar faces (Andy, > Susan etc.) > > > > Hope to be a good contributor to the list. > > > > Kind Regards > > > > Chris J Bain > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From cfoust at infostatsystems.com Wed Dec 10 10:56:58 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 08:56:58 -0800 Subject: [AccessD] Report properties - A2000 vs A2002 Message-ID: Those properties are not exposed in 2000, so you can't change them there. You need to change it in 2002 to No/No/Sizable or they'll keep breaking in 2000. If you create reports from 2002 you need to avoid the methods and properties that don't exist in 2000. Another one is the OpenArgs property of 2002 reports. Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Tuesday, December 09, 2003 6:55 PM To: accessd at databaseadvisors.com Subject: [AccessD] Report properties - A2000 vs A2002 I take a (long-time working) app from a Win2000 / A2000 environment to a WinXP / A2002 environment. The app is not converted to A2002, it stays in A2000 format, and works well ... except for a couple of reports. Using A2002 to compare the properties of one of the reports that works and one that doesn't, I see some that are different, namely, PopUp, Modal, Border Style. The reports that don't work have these properties to Yes/Yes/Modal; the ones that do work are No/No/Sizable. So back I go to A2000, and, no sign of these properties on a Report. Next, trying to be clever, and still in A2000, I try setting a WindowMode property when I invoke the report - but that works only in A2002 (well it syntaxes out in A2000). In A2000 how do I change these properties? I suppose a work-around would be to change the properties under A2002, but this defeats the goal of distributing one version only. Stephen Bond Otatara, South Island, New Zealand 03 213 1256 fax 03 213 0123 From cfoust at infostatsystems.com Wed Dec 10 11:00:57 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 09:00:57 -0800 Subject: [AccessD] Form/report templates Message-ID: I haven't tried it with backcolor, but it certainly works for other kinds of control properties, but only on new forms created after the "normal" version is saved. That's the way it has always worked. Were you trying to do something else? Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Form/report templates Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 11:04:55 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 09:04:55 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: However, not everyone *accepts* emails in html format. Charlotte Foust -----Original Message----- From: Brock, Christian T, HRC-Alexandria [mailto:Christian.Brock at hoffman.army.mil] Sent: Tuesday, December 09, 2003 11:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) If you send the email in html format, outlook security (Outlook 2002 on Windows XP) will let it through without any problems. Christian Brock -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, 09 December 2003 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Runtime version of 2003 (Crap) This might be an easier method of overcoming the Outlook security sending mail without requiring multiple clicks. Haven't tried it but it looks easier than using Redemption method. Express ClickYes Puts an Icon in systray that captures the outlook messages You can modify behaviour with VBA code. http://www.express-soft.com/mailmate/clickyes.html Erwin Craps - IT Helps wrote: >Yes Brett I can, or at least point you at it > >There is a MSKB article on it... >Looking for it....... Found. >Luckaly I safe often used HTML pages to my disk (they sometimes >disapear from the MS site...). Have to turn this *@s*## each time of >when installing Exchange server. Here it is, knock yourself out :-) >http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 > >Please note that you can only turn security off when having outlook >connected to Microsoft Exchange Server!!! Outlook checks a form with >settings in the public folder of Exchange. So this does not work if >your Outlook only uses PST files. > >Read the installation procedure tree times before actualy dooing it. >Had some misunderstandings the first time I done this (now several >years ago). > > >The principle is that you register a form in MSEX public folder where >you change the security settings. Some files (1 or 2) need to be >put/replaced in the winnt system32 folder of the Exchange server. > >A registry key must be added on each Outlook client pc. >This key tells Outlook to look for the security setting in the form in >the public folder and to use those for outlook. This way you can free >exe files (for example) or allow doubleclick from the e-mail for files. >Also the automation pop-ups can be avoided using this procedure. > > >Greetz >PS: Thats my second good deed of the day.... > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett >Barabash >Sent: Monday, December 08, 2003 3:20 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >Erwin, >Can you give me some more info about this? Enquiring minds want to >know. > >-----Original Message----- >From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] >Sent: Monday, December 08, 2003 1:48 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >This Outlook automation security thing is pretty easy solvable when >using Outlook combined with Exchange server. There is a form that needs >to be installed in the public Exchange folder and a registry key on >each machine. By this you can turn of several security issues (like >blocking some file type and automation). >I use Outlook automation for several years now without any problem >(except for a "send as" bug in O2K3). > >Ofcourse your network needs to be protected with other means if you >turn of Outlook security. But a network protection should be a default >issue when having Exchange server. > > >Erwin > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby >Verzonden: vrijdag 5 december 2003 18:10 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. >NOT installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to >send mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage >the code within the dB can cause and am prompted each time I open a dB >if I wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 11:11:20 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 09:11:20 -0800 Subject: [AccessD] Splitting 2002 data makes reports lock up Message-ID: Then I don't know what the problem is. You did copy the constant declarations in the code, right? I wrote this for A2k, so it should work there. You could try hard coding the property name into the test to see which constant it isn't recognizing. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 6:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I have the DAO 3.6 library referenced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 7:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Do you have a DAO reference set? That's DAO code. In 2002, you should be able to run it without a DAO reference, but you have to substitute late binding and declare the objects as Object rather that DAO.whatever. I do have ADO code for this, but I don't think I have it on this machine. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 5:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Wed Dec 10 11:14:57 2003 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Wed, 10 Dec 2003 18:14:57 +0100 Subject: AW: [AccessD] Form/report templates In-Reply-To: Message-ID: Nope, exactly that! Sometimes I work as an instructor in IT classes, it was a pretty embarassing experience... Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:01 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates I haven't tried it with backcolor, but it certainly works for other kinds of control properties, but only on new forms created after the "normal" version is saved. That's the way it has always worked. Were you trying to do something else? Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Form/report templates Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Wed Dec 10 11:14:57 2003 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Wed, 10 Dec 2003 18:14:57 +0100 Subject: AW: [AccessD] Form/report templates In-Reply-To: Message-ID: Just tested it on another machine: 1. Created a new form 2. Created a text box with a label. Set the label font color to blue and the border style to transparent 3. Save the new form as 'Normal' 4. Created a new form and inserted a text box -> it is not formatted as the one on 'Normal' (Under options, the name of the template form is 'Normal') Since it does not work on two machines, is there anything else needed to be turned on? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:01 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates I haven't tried it with backcolor, but it certainly works for other kinds of control properties, but only on new forms created after the "normal" version is saved. That's the way it has always worked. Were you trying to do something else? Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Form/report templates Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Wed Dec 10 11:14:22 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Wed, 10 Dec 2003 11:14:22 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: You all have been so helpful to me on my projects - I hope one day I can be on the helping end instead of always asking for help. I've got a table with about 10 fields, 2 of which are Dept and Center. Any given Dept might have multiple Centers. I'm exporting query results to Excel spreadsheets, but I haven't been able to figure out how to have a Dept with multiple Centers export to one Excel file with a separate sheet for each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Wonder if the latest virus has gotten to your computer? Find out. Run the FREE McAfee online computer scan! http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From KIsmert at TexasSystems.com Wed Dec 10 11:27:07 2003 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 10 Dec 2003 11:27:07 -0600 Subject: [AccessD] Menubar On An Access Form In-Reply-To: <29757300.1071053213796.JavaMail.www@wwinf3005> Message-ID: <002801c3bf42$d64097d0$2a3ca8c0@TEXASSYSTEMS.COM> > I need to work out how to run commands when one of the buttons are clicked. You can get your CommandBarButton to run a public function. In the On Action property, add the string "=YourFunction(Parms)". If your function has no parameters, use simply "YourFunction". The button doesn't use the function's return value. Your public function could then get a reference to frmPersonnel, and then call a public method in the form's class module. In this way, you can link your CommandBarButton to your form. > Anyway, is there a way in which I can get the menubar to appear on my form at the top ? No. An Office CommandBar can only appear in the application area, either attached to one of the sides of the application window, or free floating. It can't be attached to a form. For that, consider the Windows Common Controls Toolbar control. - Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, December 10, 2003 4:47 AM To: accessd Subject: [AccessD] Menubar On An Access Form From Lambert.Heenan at AIG.com Wed Dec 10 11:35:59 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 10 Dec 2003 12:35:59 -0500 Subject: [AccessD] Export to multiple Excel sheets Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7AE1@xlivmbx12.aig.com> If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? > > Thanks, > Gina > > _________________________________________________________________ > Wonder if the latest virus has gotten to your computer? Find out. Run the > FREE McAfee online computer scan! > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Dec 10 11:37:41 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Dec 2003 11:37:41 -0600 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <2F8793082E00D4119A1700B0D0216BF802227679@main2.marlow.com> The only stability issue I have had to deal with in VB 6, with the NTSVC.ocx, is that you can't debug it. Not as a service, that is. I'll build a form, and get all of the code to work, then I'll 'switch on' the service. It's kind of a pain, but VB 6.0 crashes if it tries to load the service control. Other then that, I've never had problems. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 3:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation Thanks Drew. I was specifically interested in copying files to the WINNT\System32 directory (e.g. ocx, dll files). I downloaded some impersonation code (my Nicholson's a little rusty, but I can do a good Dubya. Just think "nucular") from PSC but couldn't get it to run on our W2K network. After a lengthy search (MSDN no longer has it), I found the NTSVC.OCX file. I will take a look at it; probably just what I need. >From your experience, is VB6 stable enough to create services? The reason why I ask is because Microsoft has some KB articles that discuss access violation errors occuring from the OS interacting with VB's AddressOf function when run as a service. -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Tuesday, December 09, 2003 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Dec 10 11:39:43 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Dec 2003 11:39:43 -0600 Subject: [AccessD] Num Lock Message-ID: <2F8793082E00D4119A1700B0D0216BF80222767A@main2.marlow.com> You need to give Dev Ashish a holler....he doesn't have you listed in the credits for that.... Drew -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Tuesday, December 09, 2003 4:26 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Num Lock Actually I too wrote a replacement for SendKeys that works just fine under W98, NY and 2k - not sure yet about XP. You'll find it at... http://www.mvps.org/access/api/api0046.htm Lambert > -----Original Message----- > From: Drew Wutka [SMTP:DWUTKA at marlow.com] > Sent: Tuesday, December 09, 2003 3:54 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Num Lock > > Yep, don't use SendKeys! > > Actually, way back when, when I actually used SendKeys for various things, > I > wrote a function that checked the state of the Numlock key, and would > change > it if necessary. So what I did BEFORE the Sendkeys line, is check the > state, then ran SendKeys, then checked the state again. If it changed, I > switched it back. I also had a few forms back then that I wanted to force > the numlock on, so I actually put that code in a timer event, to 'lock' > the > numlock key on. > > I've found later on that I have not really run into a situation the truly > requires sendkeys anymore, there are usually other approaches. > > Drew > > -----Original Message----- > From: Christian, Lorraine [mailto:LChristian at massmutual.com] > Sent: Tuesday, December 09, 2003 1:38 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Num Lock > > > Hi there - > > I am experiencing this same issue with an app using SendKeys with W2000. > > Is there a recommendation/resolution? > > Thanks. > > Lorraine > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka > Sent: Tuesday, December 09, 2003 1:43 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Num Lock > > > Do you use SendKeys in your application? That is notorious for turning > the > numlock on/off. > > Drew > > -----Original Message----- > From: Tim Thiessen [mailto:tim at irwingreenhouses.com] > Sent: Tuesday, December 09, 2003 11:48 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Num Lock > > > Hi Group, > > We have an A97 application running on several machines with Windows XP > Pro. > The application is an accounting-invoicing app. When used on Windows 95 > or > 98, the Num Lock stays on but on XP, the Num Lock turns off apparently by > itself. Has anyone ever run into this and if so, can it be corrected? > > TIA > > Tim Thiessen > > > Tim Thiessen > Production Manager > Irwin Greenhouses, Inc. > 806-655-7811 > Fax 806-655-3046 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > --------------------------------------------------------- > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Wed Dec 10 11:40:47 2003 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 10 Dec 2003 11:40:47 -0600 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) In-Reply-To: <1236259.1071076900994.JavaMail.root@sniper.marix.com> Message-ID: <000101c3bf44$c1afef80$de1811d8@DanWaters> This might be OK with some folks. How does this work? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 10, 2003 11:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) However, not everyone *accepts* emails in html format. Charlotte Foust -----Original Message----- From: Brock, Christian T, HRC-Alexandria [mailto:Christian.Brock at hoffman.army.mil] Sent: Tuesday, December 09, 2003 11:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) If you send the email in html format, outlook security (Outlook 2002 on Windows XP) will let it through without any problems. Christian Brock -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, 09 December 2003 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Runtime version of 2003 (Crap) This might be an easier method of overcoming the Outlook security sending mail without requiring multiple clicks. Haven't tried it but it looks easier than using Redemption method. Express ClickYes Puts an Icon in systray that captures the outlook messages You can modify behaviour with VBA code. http://www.express-soft.com/mailmate/clickyes.html Erwin Craps - IT Helps wrote: >Yes Brett I can, or at least point you at it > >There is a MSKB article on it... >Looking for it....... Found. >Luckaly I safe often used HTML pages to my disk (they sometimes >disapear from the MS site...). Have to turn this *@s*## each time of >when installing Exchange server. Here it is, knock yourself out :-) >http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 > >Please note that you can only turn security off when having outlook >connected to Microsoft Exchange Server!!! Outlook checks a form with >settings in the public folder of Exchange. So this does not work if >your Outlook only uses PST files. > >Read the installation procedure tree times before actualy dooing it. >Had some misunderstandings the first time I done this (now several >years ago). > > >The principle is that you register a form in MSEX public folder where >you change the security settings. Some files (1 or 2) need to be >put/replaced in the winnt system32 folder of the Exchange server. > >A registry key must be added on each Outlook client pc. >This key tells Outlook to look for the security setting in the form in >the public folder and to use those for outlook. This way you can free >exe files (for example) or allow doubleclick from the e-mail for files. >Also the automation pop-ups can be avoided using this procedure. > > >Greetz >PS: Thats my second good deed of the day.... > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett >Barabash >Sent: Monday, December 08, 2003 3:20 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >Erwin, >Can you give me some more info about this? Enquiring minds want to >know. > >-----Original Message----- >From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] >Sent: Monday, December 08, 2003 1:48 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >This Outlook automation security thing is pretty easy solvable when >using Outlook combined with Exchange server. There is a form that needs >to be installed in the public Exchange folder and a registry key on >each machine. By this you can turn of several security issues (like >blocking some file type and automation). >I use Outlook automation for several years now without any problem >(except for a "send as" bug in O2K3). > >Ofcourse your network needs to be protected with other means if you >turn of Outlook security. But a network protection should be a default >issue when having Exchange server. > > >Erwin > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby >Verzonden: vrijdag 5 december 2003 18:10 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. >NOT installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to >send mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage >the code within the dB can cause and am prompted each time I open a dB >if I wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Dec 10 11:41:42 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Dec 2003 11:41:42 -0600 Subject: [AccessD] OT (sorta) security impersonation Message-ID: <2F8793082E00D4119A1700B0D0216BF80222767B@main2.marlow.com> True, but if you setup a service, and set an admin account credentials in that service, it's protected, just like cached logins are... Drew -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Wednesday, December 10, 2003 1:48 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT (sorta) security impersonation One small but important remark from a security point of view. "One should never store admin passwords!" Create a account with sufficient rights for your purpose and use that account. Never Never store an admin password, if you put it straigth in code it can be simply scanned in you code (compiled or not). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Tuesday, December 09, 2003 10:23 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation Thanks Drew. I was specifically interested in copying files to the WINNT\System32 directory (e.g. ocx, dll files). I downloaded some impersonation code (my Nicholson's a little rusty, but I can do a good Dubya. Just think "nucular") from PSC but couldn't get it to run on our W2K network. After a lengthy search (MSDN no longer has it), I found the NTSVC.OCX file. I will take a look at it; probably just what I need. >From your experience, is VB6 stable enough to create services? The >reason why I ask is because Microsoft has some KB articles that discuss access violation errors occuring from the OS interacting with VB's AddressOf function when run as a service. -----Original Message----- From: Drew Wutka [mailto:DWUTKA at marlow.com] Sent: Tuesday, December 09, 2003 2:51 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT (sorta) security impersonation 2 things. First, if you are copying things to the DESKTOP, that shouldn't be under WINNT, it will be under Documents and Settings. If you are still trying to get to the WINNT folder (and subfolders), then you have a few options. The first is to impersonate an Admin user. Quite frankly, I'm not the person to ask on this, if you really want to go this route, email me offlist, and I'll have my co-worker send you some code, he's pretty good with the NT impersonation stuff. The second, which I have used many times myself, is to create an NT service, like you mentioned. The easy part of the service project is that you can setup the service to run as a particular account, so you can put in the name and password of an Admin account, and that service .exe will be run under those credentials automatically. I use the NTSRVC.ocx, which is pretty easy to use, it handles all of the service 'events', etc. Drew -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, December 09, 2003 1:23 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT (sorta) security impersonation For quite a while now I have used a simple batch file to automatically copy new files to a users' desktop. Now, I have a new challenge. All of our workstations are configured to restrict access to the WINNT directory and its subdirectories. To copy a file to these directories I need to be logged on as an admin. I would like to develop a VB app that would run on each desktop, either as a normal executable or as a service, that would authenticate itself as an admin and copy the necessary files. If I run it as a service, it looks like I can setup a security profile for the service in the control panel. Has anyone out there done anything like this? Drew, I know that you have a lot of experience with creating services. Any good resources that you can point me to? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ------------------------------------------------------------------------ ---- ---------------------------------------- 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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. _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 11:45:57 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 09:45:57 -0800 Subject: [AccessD] Form/report templates Message-ID: Hmmn. Did you remember to set the Control Defaults for that textbox on the Normal form? Otherwise, it won't be applied. If you do set it, it works in XP on my machine. Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 9:15 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Form/report templates Just tested it on another machine: 1. Created a new form 2. Created a text box with a label. Set the label font color to blue and the border style to transparent 3. Save the new form as 'Normal' 4. Created a new form and inserted a text box -> it is not formatted as the one on 'Normal' (Under options, the name of the template form is 'Normal') Since it does not work on two machines, is there anything else needed to be turned on? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:01 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates I haven't tried it with backcolor, but it certainly works for other kinds of control properties, but only on new forms created after the "normal" version is saved. That's the way it has always worked. Were you trying to do something else? Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Form/report templates Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 11:53:33 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 09:53:33 -0800 Subject: [AccessD] A2K: Runtime version of 2003 (Crap) Message-ID: Arrgh! I can't remember! I have it set up on my machine at home, but it's buried in the bowels of Outlook and I don't have it set up on this machine ... I don't think. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Wednesday, December 10, 2003 9:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) This might be OK with some folks. How does this work? Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Wednesday, December 10, 2003 11:05 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) However, not everyone *accepts* emails in html format. Charlotte Foust -----Original Message----- From: Brock, Christian T, HRC-Alexandria [mailto:Christian.Brock at hoffman.army.mil] Sent: Tuesday, December 09, 2003 11:20 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) If you send the email in html format, outlook security (Outlook 2002 on Windows XP) will let it through without any problems. Christian Brock -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Tuesday, 09 December 2003 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K: Runtime version of 2003 (Crap) This might be an easier method of overcoming the Outlook security sending mail without requiring multiple clicks. Haven't tried it but it looks easier than using Redemption method. Express ClickYes Puts an Icon in systray that captures the outlook messages You can modify behaviour with VBA code. http://www.express-soft.com/mailmate/clickyes.html Erwin Craps - IT Helps wrote: >Yes Brett I can, or at least point you at it > >There is a MSKB article on it... >Looking for it....... Found. >Luckaly I safe often used HTML pages to my disk (they sometimes >disapear from the MS site...). Have to turn this *@s*## each time of >when installing Exchange server. Here it is, knock yourself out :-) >http://support.microsoft.com/default.aspx?scid=kb;en-us;q290499 > >Please note that you can only turn security off when having outlook >connected to Microsoft Exchange Server!!! Outlook checks a form with >settings in the public folder of Exchange. So this does not work if >your Outlook only uses PST files. > >Read the installation procedure tree times before actualy dooing it. >Had some misunderstandings the first time I done this (now several >years ago). > > >The principle is that you register a form in MSEX public folder where >you change the security settings. Some files (1 or 2) need to be >put/replaced in the winnt system32 folder of the Exchange server. > >A registry key must be added on each Outlook client pc. >This key tells Outlook to look for the security setting in the form in >the public folder and to use those for outlook. This way you can free >exe files (for example) or allow doubleclick from the e-mail for files. >Also the automation pop-ups can be avoided using this procedure. > > >Greetz >PS: Thats my second good deed of the day.... > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett >Barabash >Sent: Monday, December 08, 2003 3:20 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >Erwin, >Can you give me some more info about this? Enquiring minds want to >know. > >-----Original Message----- >From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] >Sent: Monday, December 08, 2003 1:48 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >This Outlook automation security thing is pretty easy solvable when >using Outlook combined with Exchange server. There is a form that needs >to be installed in the public Exchange folder and a registry key on >each machine. By this you can turn of several security issues (like >blocking some file type and automation). I use Outlook automation for >several years now without any problem (except for a "send as" bug in >O2K3). > >Ofcourse your network needs to be protected with other means if you >turn of Outlook security. But a network protection should be a default >issue when having Exchange server. > > >Erwin > >-----Oorspronkelijk bericht----- >Van: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby >Verzonden: vrijdag 5 december 2003 18:10 >Aan: Access Developers discussion and problem solving >Onderwerp: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > >I'm simply pointing out that installing SP3 is not a panacea for the >problem you are discussing. Many developers don't use Outlook >automation so they don't care. If they DO use it however, that portion >of their app is trashed just by updating to SP3. > >I personally have lost an estimated 60 hours to this problem over the >last few years. I'd LOVE to participate in a class action lawsuit to >recover my lost wages. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:58 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >That's an automation problem, John. There are workarounds (like >Redemption or using SMTP mail) and it isn't a fair comparison anyhow. >Installing SR3 will *break* the apps by popping up the security dialogs >when you try to send mail automatically, but it won't destroy them. NOT >installing SR3 when you have 2002 or 2003 apps also installed *can* >destroy a 2000 Access database. > >Charlotte Foust > >-----Original Message----- >From: John W. Colby [mailto:jcolby at colbyconsulting.com] >Sent: Friday, December 05, 2003 8:50 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Installing SP3 will also toast any apps which try to use Outlook to >send mail using the address book. > >8-( > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte >Foust >Sent: Friday, December 05, 2003 11:37 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] A2K: Runtime version of 2003 (Crap) > > >As Mike Groh's editorial, referenced in your other post, indicates, you >appear to have run afoul of the conflict between the O2k version of the >vbe6.dll and the version installed with any MS 2002 app. It apparently >also happens if you install a 2003 app, which makes sense. The cure is >to patch the 2000 MSAccess.exe, and it always annoyed me that being >broken by a later version was considered a bug in *2000*!! Installing >SR-3 should cure the bug, but it won't recover any database that got >toasted by the problem. > >Charlotte Foust > >-----Original Message----- >From: Darren DICK [mailto:d.dick at uws.edu.au] >Sent: Thursday, December 04, 2003 6:07 PM >To: AccessD List >Subject: [AccessD] A2K: Runtime version of 2003 (Crap) > > >Hello all >I recently installed the runtime version of Access 2003. > >This piece of crap has taken over and now all my access apps open in a >2003 shell. I keep getting error messages about the potential damage >the code within the dB can cause and am prompted each time I open a dB >if I wish to continue or cancel > >I have tried unsuccessfully to remove Access 2003 Runtime from Control >Panel. at least on 4 occasions. I have re-installed Office and Access >2000 - Still no joy. So I deleted the folder (though not all files. >'Cause Widoze had ' em opened I presume) > >On top of all that I getting very strange errors each time I open a db >or try to view the code for an even or control. Error message as >follows. (This message would appear even before I deleted the folder - >yes I have re-booted many times) >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Microsoft Visual Basic (Msgbox Caption) >Error Accessing File. Network Connection May have been lost >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Anyone seen this or better still anyone got a solution? > >Many thanks in advance > >Darren > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: 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. > >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Wed Dec 10 11:53:45 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Wed, 10 Dec 2003 11:53:45 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: (Lambert, I'm sorry my first reply went only to you instead of to the list) I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? > > Thanks, > Gina > > _________________________________________________________________ > Wonder if the latest virus has gotten to your computer? Find out. Run the > FREE McAfee online computer scan! > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com Thanks, Gina _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com From stephen at bondsoftware.co.nz Wed Dec 10 11:54:30 2003 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Thu, 11 Dec 2003 06:54:30 +1300 Subject: [AccessD] Report properties - A2000 vs A2002 Message-ID: <70F3D727890C784291D8433E9C418F298F41@server.bondsoftware.co.nz> Thanks Charlotte - if I catch you right, I can do the changes in 2002 and then back-port to 2000? As long as I'm careful. And - just as a matter of interest - can you shed light on why would some reports in 2000 be one way (Yes/Yes/Dialog) and some the other, without any intention from me? M$ consistency - my oxymoron for the week. Stephen Bond > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Thursday, 11 December 2003 5:57 a.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Report properties - A2000 vs A2002 > > > Those properties are not exposed in 2000, so you can't change them > there. You need to change it in 2002 to No/No/Sizable or they'll keep > breaking in 2000. If you create reports from 2002 you need > to avoid the > methods and properties that don't exist in 2000. Another one is the > OpenArgs property of 2002 reports. > > Charlotte Foust > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, December 09, 2003 6:55 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Report properties - A2000 vs A2002 > > > I take a (long-time working) app from a Win2000 / A2000 > environment to a > WinXP / A2002 environment. The app is not converted to > A2002, it stays > in A2000 format, and works well ... except for a couple of reports. > > Using A2002 to compare the properties of one of the reports that works > and one that doesn't, I see some that are different, namely, PopUp, > Modal, Border Style. The reports that don't work have these > properties > to Yes/Yes/Modal; the ones that do work are No/No/Sizable. > > So back I go to A2000, and, no sign of these properties on a Report. > Next, trying to be clever, and still in A2000, I try setting a > WindowMode property when I invoke the report - but that works only in > A2002 (well it syntaxes out in A2000). > > In A2000 how do I change these properties? I suppose a work-around > would be to change the properties under A2002, but this > defeats the goal > of distributing one version only. > > Stephen Bond > Otatara, South Island, New Zealand > 03 213 1256 fax 03 213 0123 > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Wed Dec 10 11:57:42 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Dec 2003 11:57:42 -0600 Subject: [AccessD] Num Lock Message-ID: <2F8793082E00D4119A1700B0D0216BF80222767C@main2.marlow.com> No clue where my original function is.....haven't used it in years. However, here's something that does just as well. Create a Class Module and paste this code into it: Option Compare Database Option Explicit Private Type OSVERSIONINFO dwOSVersionInfoSize As Long dwMajorVersion As Long dwMinorVersion As Long dwBuildNumber As Long dwPlatformId As Long szCSDVersion As String * 128 End Type Private Declare Function GetVersionEx Lib "kernel32" _ Alias "GetVersionExA" _ (lpVersionInformation As OSVERSIONINFO) As Long Private Declare Sub keybd_event Lib "user32" _ (ByVal bVk As Byte, _ ByVal bScan As Byte, _ ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Const VK_NUMLOCK = &H90 Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Const VER_PLATFORM_WIN32_NT = 2 Const VER_PLATFORM_WIN32_WINDOWS = 1 Private Declare Function GetKeyState Lib "user32" (ByVal lngVirtKey As Long) As Integer Private Declare Function GetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Private Declare Function SetKeyboardState Lib "user32" (bytKeyState As Byte) As Long Property Get Numlock() As Boolean Numlock = CBool(GetKeyState(vbKeyNumlock) And 1) End Property Property Let Numlock(Value As Boolean) Call SetKeyState(Value) End Property Private Sub SetKeyState(fTurnOn As Boolean) Dim abytBuffer(0 To 255) As Byte Dim o As OSVERSIONINFO o.dwOSVersionInfoSize = Len(o) GetVersionEx o If o.dwPlatformId = VER_PLATFORM_WIN32_WINDOWS Then Call GetKeyboardState(abytBuffer(0)) abytBuffer(VK_NUMLOCK) = CByte(Abs(fTurnOn)) Call SetKeyboardState(abytBuffer(0)) Else keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or 0, 0 keybd_event VK_NUMLOCK, &H45, KEYEVENTF_EXTENDEDKEY Or KEYEVENTF_KEYUP, 0 End If End Sub Then save that class module and call it Keyboard. To test the code, put a toggle button on a form, and call it tglNumlock. Then put this code behind the form: Private Sub Form_Load() Dim kb As Keyboard Set kb = New Keyboard Me.tglNumLock.Value = kb.Numlock Set kb = Nothing End Sub Private Sub tglNumLock_Click() Dim kb As Keyboard Set kb = New Keyboard kb.Numlock = Me.tglNumLock.Value Set kb = Nothing End Sub I actually downloaded the original Keyboard class a while back. I think Ken Getz wrote it. But the Numlock function didn't work in NT, so I had to modify it. The original class had all sorts of other properties, which I never used...so I just stripped it down to just Numlock for this post. Drew -----Original Message----- From: Christian, Lorraine [mailto:LChristian at massmutual.com] Sent: Wednesday, December 10, 2003 6:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Num Lock Hi there! Drew, do you care to share your function? :) Thanks. Lorraine From cfoust at infostatsystems.com Wed Dec 10 12:03:18 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 10:03:18 -0800 Subject: [AccessD] Report properties - A2000 vs A2002 Message-ID: Not a clue ... Unless some of them were actually created in 2002. Charlotte Foust -----Original Message----- From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] Sent: Wednesday, December 10, 2003 9:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Report properties - A2000 vs A2002 Thanks Charlotte - if I catch you right, I can do the changes in 2002 and then back-port to 2000? As long as I'm careful. And - just as a matter of interest - can you shed light on why would some reports in 2000 be one way (Yes/Yes/Dialog) and some the other, without any intention from me? M$ consistency - my oxymoron for the week. Stephen Bond > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Thursday, 11 December 2003 5:57 a.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Report properties - A2000 vs A2002 > > > Those properties are not exposed in 2000, so you can't change them > there. You need to change it in 2002 to No/No/Sizable or they'll keep > breaking in 2000. If you create reports from 2002 you need to avoid > the methods and properties that don't exist in 2000. Another one is > the OpenArgs property of 2002 reports. > > Charlotte Foust > > -----Original Message----- > From: Stephen Bond [mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, December 09, 2003 6:55 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Report properties - A2000 vs A2002 > > > I take a (long-time working) app from a Win2000 / A2000 > environment to a > WinXP / A2002 environment. The app is not converted to > A2002, it stays > in A2000 format, and works well ... except for a couple of reports. > > Using A2002 to compare the properties of one of the reports that works > and one that doesn't, I see some that are different, namely, PopUp, > Modal, Border Style. The reports that don't work have these > properties to Yes/Yes/Modal; the ones that do work are No/No/Sizable. > > So back I go to A2000, and, no sign of these properties on a Report. > Next, trying to be clever, and still in A2000, I try setting a > WindowMode property when I invoke the report - but that works only in > A2002 (well it syntaxes out in A2000). > > In A2000 how do I change these properties? I suppose a work-around > would be to change the properties under A2002, but this > defeats the goal > of distributing one version only. > > Stephen Bond > Otatara, South Island, New Zealand > 03 213 1256 fax 03 213 0123 > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Wed Dec 10 12:31:03 2003 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Wed, 10 Dec 2003 19:31:03 +0100 Subject: AW: [AccessD] Form/report templates In-Reply-To: Message-ID: How do I set control defaults? I thought I just had to insert a control and format it the way I want new controls to be!? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:46 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates Hmmn. Did you remember to set the Control Defaults for that textbox on the Normal form? Otherwise, it won't be applied. If you do set it, it works in XP on my machine. Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 9:15 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Form/report templates Just tested it on another machine: 1. Created a new form 2. Created a text box with a label. Set the label font color to blue and the border style to transparent 3. Save the new form as 'Normal' 4. Created a new form and inserted a text box -> it is not formatted as the one on 'Normal' (Under options, the name of the template form is 'Normal') Since it does not work on two machines, is there anything else needed to be turned on? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:01 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates I haven't tried it with backcolor, but it certainly works for other kinds of control properties, but only on new forms created after the "normal" version is saved. That's the way it has always worked. Were you trying to do something else? Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Form/report templates Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 12:36:55 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 10:36:55 -0800 Subject: [AccessD] Form/report templates Message-ID: Select the control on the Normal form or report the select Set Control Defaults from the design menu. If you don't do that, it doesn't override the existing "normal" defaults. You can do the same thing on any form or report to set the default for that kind of control for that particular object as well. Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 10:31 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Form/report templates How do I set control defaults? I thought I just had to insert a control and format it the way I want new controls to be!? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:46 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates Hmmn. Did you remember to set the Control Defaults for that textbox on the Normal form? Otherwise, it won't be applied. If you do set it, it works in XP on my machine. Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 9:15 AM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Form/report templates Just tested it on another machine: 1. Created a new form 2. Created a text box with a label. Set the label font color to blue and the border style to transparent 3. Save the new form as 'Normal' 4. Created a new form and inserted a text box -> it is not formatted as the one on 'Normal' (Under options, the name of the template form is 'Normal') Since it does not work on two machines, is there anything else needed to be turned on? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 18:01 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates I haven't tried it with backcolor, but it certainly works for other kinds of control properties, but only on new forms created after the "normal" version is saved. That's the way it has always worked. Were you trying to do something else? Charlotte Foust -----Original Message----- From: Michael Brosdorf [mailto:michael.broesdorf at web.de] Sent: Wednesday, December 10, 2003 8:47 AM To: Access Developers discussion and problem solving Subject: [AccessD] Form/report templates Dear group, recently I wanted to demonstrate the use or forms/report named 'Normal' in Access 2K. From what I know, a developer can created these forms/reports to defined format defaults for controls. In the Access options one can even define the name for those format templates. The only problem is that it does not seem to work anymore! I thinkg it worked in A97: a form named 'Normal' containing a text box with green back color would cause all newly created text boxes on other forms to have the same green back color. How does this feature work in A2K? TIA, Michael _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Dec 10 13:30:19 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Dec 2003 13:30:19 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: <2F8793082E00D4119A1700B0D0216BF80222767E@main2.marlow.com> If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets (Lambert, I'm sorry my first reply went only to you instead of to the list) I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? > > Thanks, > Gina > > _________________________________________________________________ > Wonder if the latest virus has gotten to your computer? Find out. Run the > FREE McAfee online computer scan! > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com Thanks, Gina _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Wed Dec 10 13:35:15 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Wed, 10 Dec 2003 13:35:15 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx From ssharkins at bellsouth.net Wed Dec 10 13:41:34 2003 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 10 Dec 2003 14:41:34 -0500 Subject: [AccessD] Form/report templates References: Message-ID: <003701c3bf55$df0de120$240110ac@SUSANONE> Well, there's another way too -- after clicking the particular control on the Toolbox, change the properties in the Properties window and then insert the control -- that will change the defaults for that particular control too. Susan H. > Select the control on the Normal form or report the select Set Control > Defaults from the design menu. If you don't do that, it doesn't > override the existing "normal" defaults. You can do the same thing on > any form or report to set the default for that kind of control for that > particular object as well. > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 10:31 AM > To: Access Developers discussion and problem solving > Subject: AW: [AccessD] Form/report templates > > > How do I set control defaults? I thought I just had to insert a control > and format it the way I want new controls to be!? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte > Foust > Gesendet: Mittwoch, 10. Dezember 2003 18:46 > An: Access Developers discussion and problem solving > Betreff: RE: [AccessD] Form/report templates > > > Hmmn. Did you remember to set the Control Defaults for that textbox on > the Normal form? Otherwise, it won't be applied. If you do set it, it > works in XP on my machine. > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 9:15 AM > To: Access Developers discussion and problem solving > Subject: AW: [AccessD] Form/report templates > > > Just tested it on another machine: > > 1. Created a new form > 2. Created a text box with a label. Set the label font color to blue and > the border style to transparent 3. Save the new form as 'Normal' 4. > Created a new form and inserted a text box -> it is not formatted as the > one on 'Normal' > > (Under options, the name of the template form is 'Normal') > > Since it does not work on two machines, is there anything else needed to > be turned on? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte > Foust > Gesendet: Mittwoch, 10. Dezember 2003 18:01 > An: Access Developers discussion and problem solving > Betreff: RE: [AccessD] Form/report templates > > > I haven't tried it with backcolor, but it certainly works for other > kinds of control properties, but only on new forms created after the > "normal" version is saved. That's the way it has always worked. Were > you trying to do something else? > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 8:47 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Form/report templates > > > Dear group, > > recently I wanted to demonstrate the use or forms/report named 'Normal' > in Access 2K. From what I know, a developer can created these > forms/reports to defined format defaults for controls. In the Access > options one can even define the name for those format templates. The > only problem is that it does not seem to work anymore! > > I thinkg it worked in A97: a form named 'Normal' containing a text box > with green back color would cause all newly created text boxes on other > forms to have the same green back color. > > How does this feature work in A2K? > > TIA, > > Michael > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Wed Dec 10 13:30:13 2003 From: pedro at plex.nl (Pedro Janssen) Date: Wed, 10 Dec 2003 20:30:13 +0100 Subject: [AccessD] matching field error References: Message-ID: <000901c3bf56$11d63710$f5c581d5@pedro> The default value is zero, so this isn't the problem. Thanks for thinking with me. Anyone else some ideas. Pedro ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 10, 2003 5:51 PM Subject: RE: [AccessD] matching field error > Unless it is specifically set to null, a numeric field usually has a > default value of zero. If you're dealing with numeric keys, this might > be tripping you up. > > Charlotte Foust > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Wednesday, December 10, 2003 3:33 AM > To: AccessD at databaseadvisors.com > Subject: RE: [AccessD] matching field error > > > Hello Andy, > > In the help function i saw what the error means. But it made no sence to > me. You say: "Is there any way they could have zeroes or zero-length > strings rather than nulls". When a field is empty i think there is > nothing in it. How can it be that a field is empty but a zero is > present?? > > Pedro > > > > > > In antwoord op: > > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > Subject: RE: [AccessD] matching field error > > > > > > Pedro > > The implication is that the you have Relationships defined with > > referential integrity. You are saving a record with a test id which > > doesn't match to a key value in the tblTest table. The odd thing is > > that this shouldn't occur if the fields are Null. Is there any way > > they could have zeroes or zero-length strings rather tha nulls, > > because that would do it. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Pedro Janssen > > > Sent: 09 December 2003 22:41 > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] matching field error > > > > > > > > > Hello Group, > > > > > > i get the following error in a form, when i close it and the > > > field 'PrTestID' is empty: > > > > > > The microsoft Jet database engine cannot find a record in > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > How is this possible, because the field isn't required? > > > Al the ID fields in the form give the same error when they > > > are empty (and all aren't reqiured). > > > > > > > > > > > > Pedro Janssen _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From EdTesiny at oasas.state.ny.us Wed Dec 10 13:50:41 2003 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 10 Dec 2003 14:50:41 -0500 Subject: [AccessD] OT: Test - Ignore Message-ID: Edward P. Tesiny New York State OASAS Bureau of Evaluation and Practice Improvement 1450 Western Ave. Albany, New York 12203-3526 Phone: (518) 485-7189 Fax: (518) 485-5769 EdTesiny at oasas.state.ny.us From DWUTKA at marlow.com Wed Dec 10 13:58:52 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Wed, 10 Dec 2003 13:58:52 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: <2F8793082E00D4119A1700B0D0216BF80222767F@main2.marlow.com> Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prosoft6 at hotmail.com Wed Dec 10 14:16:08 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Wed, 10 Dec 2003 15:16:08 -0500 Subject: [AccessD] Converting from Access 97 to Access 2002 Message-ID: I tried to convert an Access 97 application from 97 to 2002 and keep receiving the following error: "Invalid Argument" When I click on help, it references problem with dll files. Can someone help me with this? It seems that I have seen references to this on the list before. The knowledge base was no help at all. Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Winterize your home with tips from MSN House & Home. http://special.msn.com/home/warmhome.armx From martyconnelly at shaw.ca Wed Dec 10 14:31:21 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 10 Dec 2003 12:31:21 -0800 Subject: [AccessD] Export to multiple Excel sheets References: Message-ID: <3FD78299.8030306@shaw.ca> I know how to do the to-ing but not the fro-ing; see the mskb article below You can also transfer data via ADO Excel OLeDB provider but you would have to check the Excel Version available on the client( probably with getobject createobject method) Dim oConn As New ADODB.Connection With oConn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties").Value = "Excel 8.0" .Open "C:\Book1.xls" '.... .Close End With oRS.Open "Select * from [Sheet1$A1:B10]", oConn, adOpenStatic SAMPLE: ExcelADO Demonstrates How to Use ADO to Read and Write Data in Excel Workbooks http://support.microsoft.com/default.aspx?scid=kb;en-us;278973 Gina Hoopes wrote: > I'm willing to try anything. At the moment I'm trying to implement > Lambert's suggestion but I'm afraid I don't know enough to fill in the > blanks. > > Gina > > > From: Drew Wutka > Reply-To: Access Developers discussion and problem > solving > To: "'Access Developers discussion and problem solving'" > > Subject: RE: [AccessD] Export to multiple Excel sheets > Date: Wed, 10 Dec 2003 13:30:19 -0600 > > If you're going the code route, you may be able to pull this off with > ADO. > I have never tried making a new sheet from ADO, in Excel. Technically it > should work, by just using a Make Table query. If you want to go this > route, I'll see if it works or not. > > Drew > > -----Original Message----- > From: Gina Hoopes [mailto:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 11:54 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Export to multiple Excel sheets > > I would like to avoid hard-coding the centers in each dept. since they > can change from year to year, and one of the depts has 64 centers > which even by itself would be a lot of queries. > > I'm thinking the solution may be to create a recordset of each dept > and loop > through that, creating a recordset within that set for each center. > If that's do-able, I don't know how to properly code the loops or how > to export as it loops through. > > Thanks again, > Gina > > > From: "Heenan, Lambert" > To: "'Access Developers discussion and problem solving'" > > CC: "'hoopesg at hotmail.com'" > Subject: RE: [AccessD] Export to multiple Excel sheets > Date: Wed, 10 Dec 2003 12:35:59 -0500 > > If you have a different query for each Center then the export will create > different sheets for each one. > > Don't want multiple queries, but would rather use different parameters > for > each Center? Ok. Just use CopyObject to create a temporary copy of the > query, export it and then delete the copy. > > Lambert > > > -----Original Message----- > > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > > Sent: Wednesday, December 10, 2003 12:14 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Export to multiple Excel sheets > > > > You all have been so helpful to me on my projects - I hope one day > I can > > be > > on the helping end instead of always asking for help. > > > > I've got a table with about 10 fields, 2 of which are Dept and Center. > > Any > > given Dept might have multiple Centers. I'm exporting query > results to > > Excel spreadsheets, but I haven't been able to figure out how to > have a > > Dept > > with multiple Centers export to one Excel file with a separate > sheet for > > each Center. Can anyone give me some ideas on how to accomplish this? > > Thanks, > Gina > > _________________________________________________________________ > Get holiday tips for festive fun. > http://special.msn.com/network/happyholidays.armx > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Wed Dec 10 14:50:35 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 12:50:35 -0800 Subject: [AccessD] Form/report templates Message-ID: True, I had forgotten about that. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, December 10, 2003 11:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form/report templates Well, there's another way too -- after clicking the particular control on the Toolbox, change the properties in the Properties window and then insert the control -- that will change the defaults for that particular control too. Susan H. > Select the control on the Normal form or report the select Set Control > Defaults from the design menu. If you don't do that, it doesn't > override the existing "normal" defaults. You can do the same thing on > any form or report to set the default for that kind of control for > that particular object as well. > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 10:31 AM > To: Access Developers discussion and problem solving > Subject: AW: [AccessD] Form/report templates > > > How do I set control defaults? I thought I just had to insert a > control and format it the way I want new controls to be!? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte > Foust > Gesendet: Mittwoch, 10. Dezember 2003 18:46 > An: Access Developers discussion and problem solving > Betreff: RE: [AccessD] Form/report templates > > > Hmmn. Did you remember to set the Control Defaults for that textbox > on the Normal form? Otherwise, it won't be applied. If you do set > it, it works in XP on my machine. > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 9:15 AM > To: Access Developers discussion and problem solving > Subject: AW: [AccessD] Form/report templates > > > Just tested it on another machine: > > 1. Created a new form > 2. Created a text box with a label. Set the label font color to blue > and the border style to transparent 3. Save the new form as 'Normal' > 4. Created a new form and inserted a text box -> it is not formatted > as the one on 'Normal' > > (Under options, the name of the template form is 'Normal') > > Since it does not work on two machines, is there anything else needed > to be turned on? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte > Foust > Gesendet: Mittwoch, 10. Dezember 2003 18:01 > An: Access Developers discussion and problem solving > Betreff: RE: [AccessD] Form/report templates > > > I haven't tried it with backcolor, but it certainly works for other > kinds of control properties, but only on new forms created after the > "normal" version is saved. That's the way it has always worked. Were > you trying to do something else? > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 8:47 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Form/report templates > > > Dear group, > > recently I wanted to demonstrate the use or forms/report named > 'Normal' in Access 2K. From what I know, a developer can created these > forms/reports to defined format defaults for controls. In the Access > options one can even define the name for those format templates. The > only problem is that it does not seem to work anymore! > > I thinkg it worked in A97: a form named 'Normal' containing a text box > with green back color would cause all newly created text boxes on > other forms to have the same green back color. > > How does this feature work in A2K? > > TIA, > > Michael > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Wed Dec 10 14:52:05 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 10 Dec 2003 12:52:05 -0800 Subject: [AccessD] matching field error Message-ID: The point is that if you don't have a record in the lookup table with zero as its primary key, having a default of zero will cause you problems with referential integrity in place. Charlotte Foust -----Original Message----- From: Pedro Janssen [mailto:pedro at plex.nl] Sent: Wednesday, December 10, 2003 11:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] matching field error The default value is zero, so this isn't the problem. Thanks for thinking with me. Anyone else some ideas. Pedro ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, December 10, 2003 5:51 PM Subject: RE: [AccessD] matching field error > Unless it is specifically set to null, a numeric field usually has a > default value of zero. If you're dealing with numeric keys, this > might be tripping you up. > > Charlotte Foust > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Wednesday, December 10, 2003 3:33 AM > To: AccessD at databaseadvisors.com > Subject: RE: [AccessD] matching field error > > > Hello Andy, > > In the help function i saw what the error means. But it made no sence > to me. You say: "Is there any way they could have zeroes or > zero-length strings rather than nulls". When a field is empty i think > there is nothing in it. How can it be that a field is empty but a zero > is present?? > > Pedro > > > > > > In antwoord op: > > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > Subject: RE: [AccessD] matching field error > > > > > > Pedro > > The implication is that the you have Relationships defined with > > referential integrity. You are saving a record with a test id which > > doesn't match to a key value in the tblTest table. The odd thing is > > that this shouldn't occur if the fields are Null. Is there any way > > they could have zeroes or zero-length strings rather tha nulls, > > because that would do it. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro > > > Janssen > > > Sent: 09 December 2003 22:41 > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] matching field error > > > > > > > > > Hello Group, > > > > > > i get the following error in a form, when i close it and the field > > > 'PrTestID' is empty: > > > > > > The microsoft Jet database engine cannot find a record in table > > > 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > How is this possible, because the field isn't required? Al the ID > > > fields in the form give the same error when they are empty (and > > > all aren't reqiured). > > > > > > > > > > > > Pedro Janssen _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Wed Dec 10 15:00:22 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Wed, 10 Dec 2003 15:00:22 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: Thank you Drew, Lambert & Marty. I've got to go waste time in a meeting now, but I'm going to try Drew's approach since it worked for him. I may have another question or two ... Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx From andy at minstersystems.co.uk Wed Dec 10 15:51:47 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 10 Dec 2003 21:51:47 -0000 Subject: [AccessD] matching field error In-Reply-To: Message-ID: <03e501c3bf67$cf8b3790$b274d0d5@minster33c3r25> Well thought Charlotte, that sounds like the issue. Pedro, change the properties of PrTestiD by removing its default value and see if that cures it. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: 10 December 2003 20:52 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] matching field error > > > The point is that if you don't have a record in the lookup > table with zero as its primary key, having a default of zero > will cause you problems with referential integrity in place. > > Charlotte Foust > > -----Original Message----- > From: Pedro Janssen [mailto:pedro at plex.nl] > Sent: Wednesday, December 10, 2003 11:30 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] matching field error > > > The default value is zero, so this isn't the problem. > Thanks for thinking with me. > > Anyone else some ideas. > > Pedro > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, December 10, 2003 5:51 PM > Subject: RE: [AccessD] matching field error > > > > Unless it is specifically set to null, a numeric field usually has a > > default value of zero. If you're dealing with numeric keys, this > > might be tripping you up. > > > > Charlotte Foust > > > > -----Original Message----- > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > Sent: Wednesday, December 10, 2003 3:33 AM > > To: AccessD at databaseadvisors.com > > Subject: RE: [AccessD] matching field error > > > > > > Hello Andy, > > > > In the help function i saw what the error means. But it > made no sence > > to me. You say: "Is there any way they could have zeroes or > > zero-length strings rather than nulls". When a field is > empty i think > > there is nothing in it. How can it be that a field is empty > but a zero > > > is present?? > > > > Pedro > > > > > > > > > > > > In antwoord op: > > > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > Subject: RE: [AccessD] matching field error > > > > > > > > > Pedro > > > The implication is that the you have Relationships defined with > > > referential integrity. You are saving a record with a > test id which > > > doesn't match to a key value in the tblTest table. The > odd thing is > > > that this shouldn't occur if the fields are Null. Is > there any way > > > they could have zeroes or zero-length strings rather tha nulls, > > > because that would do it. > > > > > > Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro > > > > Janssen > > > > Sent: 09 December 2003 22:41 > > > > To: AccessD at databaseadvisors.com > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > Hello Group, > > > > > > > > i get the following error in a form, when i close it > and the field > > > > > 'PrTestID' is empty: > > > > > > > > The microsoft Jet database engine cannot find a record in table > > > > 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > How is this possible, because the field isn't required? > Al the ID > > > > fields in the form give the same error when they are empty (and > > > > all aren't reqiured). > > > > > > > > > > > > From hoopesg at hotmail.com Wed Dec 10 16:18:35 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Wed, 10 Dec 2003 16:18:35 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Thanks, Gina _________________________________________________________________ Take advantage of our best MSN Dial-up offer of the year ? six months @$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup From KIsmert at TexasSystems.com Wed Dec 10 18:55:44 2003 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 10 Dec 2003 18:55:44 -0600 Subject: [AccessD] Backing Up Access MDB In-Reply-To: <00f601c3bedb$806bf5a0$d6edf73d@winxp> Message-ID: <003c01c3bf81$822c65e0$2a3ca8c0@TEXASSYSTEMS.COM> A.D.: I wish I were in a position to help. I don't think my databases here at work have enough concurrency to really test it. The ideal setup would be: * Non-production data and server - if you crash it, nothing of value is lost * A way to simulate heavy concurrency and data updates on the backend, and to create various conditions: > Unresolved Read/Write locks, at Record/Page/Table levels > Pending/Committing transactions > Transactions being rolled back > Cascade Updates/Deletes in progress > Deadlocks * Backing up under these conditions to determine stability * Reading the backed up tables into another mdb file, and re-applying relationships to ensure integrity was retained. That said, lack of such tests doesn't diminish the usefulness of your utility. However, you should probably think about inserting a caveat: You should have exclusive access to the data before you backup. The more users you have, and the more data gets changed, the more this caveat applies. Do you have, or have you considered adding these features? * Use Connection Control to establish exclusive access to the backend * Use the Jet UserRoster to determine if everyone else is out. * If there are active users, display the list to aid the DBA in getting everyone out. * Once you have exclusive access, you can safely backup. -Ken -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Tuesday, December 09, 2003 10:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backing Up Access MDB Ken, It would be nice if you are in a position to carry out actual trials so as to ascertain whether it stands the test of multi-user requirements. I would be interested to know the outcome. (There has been no problem with single user mode). Regards, A.D.Tejpal From jcolby at colbyconsulting.com Wed Dec 10 19:52:25 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 10 Dec 2003 20:52:25 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CF9A@stekelbes.ithelps.local> Message-ID: The file system object is a programming model (object), complete with methods and properties. It is very easy to program. Get a directory, then iterate all files in that directory etc. I use it a lot. Others disable it on all computers because it has so much power that it worries them that a virus may use it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Wednesday, December 10, 2003 2:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Hi John Why using the filesystemobject and not the regular VBA commands? Faster? Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, December 09, 2003 9:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at touchtelindia.net Wed Dec 10 22:53:17 2003 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 11 Dec 2003 10:23:17 +0530 Subject: [AccessD] Backing Up Access MDB References: <003c01c3bf81$822c65e0$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <008f01c3bfa3$321d6eb0$5bedf73d@winxp> Thanks Ken! So nice of you. I would study the points brought out by you and see how best the same could be incorporated. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Ken Ismert To: 'Access Developers discussion and problem solving' Sent: Thursday, December 11, 2003 06:25 Subject: RE: [AccessD] Backing Up Access MDB A.D.: I wish I were in a position to help. I don't think my databases here at work have enough concurrency to really test it. The ideal setup would be: * Non-production data and server - if you crash it, nothing of value is lost * A way to simulate heavy concurrency and data updates on the backend, and to create various conditions: > Unresolved Read/Write locks, at Record/Page/Table levels > Pending/Committing transactions > Transactions being rolled back > Cascade Updates/Deletes in progress > Deadlocks * Backing up under these conditions to determine stability * Reading the backed up tables into another mdb file, and re-applying relationships to ensure integrity was retained. That said, lack of such tests doesn't diminish the usefulness of your utility. However, you should probably think about inserting a caveat: You should have exclusive access to the data before you backup. The more users you have, and the more data gets changed, the more this caveat applies. Do you have, or have you considered adding these features? * Use Connection Control to establish exclusive access to the backend * Use the Jet UserRoster to determine if everyone else is out. * If there are active users, display the list to aid the DBA in getting everyone out. * Once you have exclusive access, you can safely backup. -Ken -----Original Message----- From: A.D.Tejpal [mailto:adtp at touchtelindia.net] Sent: Tuesday, December 09, 2003 10:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Backing Up Access MDB Ken, It would be nice if you are in a position to carry out actual trials so as to ascertain whether it stands the test of multi-user requirements. I would be interested to know the outcome. (There has been no problem with single user mode). Regards, A.D.Tejpal From d.dick at uws.edu.au Wed Dec 10 22:59:10 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 11 Dec 2003 15:59:10 +1100 Subject: [AccessD] A2K: acCmdWordMailMerge Message-ID: <002f01c3bfa3$83fa9dc0$41619a89@DDICK> Hello all I use the following to start a word merge DoCmd.SelectObject acQuery, "qry_AllStudents", True DoCmd.RunCommand acCmdWordMailMerge It has worked literally for years. Now she no good Any suggestions? Darren From d.dick at uws.edu.au Wed Dec 10 23:42:30 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 11 Dec 2003 16:42:30 +1100 Subject: [AccessD] Fw: acCmdWordMailMerge It's working again Message-ID: <007601c3bfa9$91188f70$41619a89@DDICK> NO ARCHIVE Hello all Disregard my last. I imported the module - changed a few names to protect the innocent. No she goes. Go figure Many thanks Darren ----- Original Message ----- From: "Darren DICK" To: "AccessD List" Sent: Thursday, December 11, 2003 3:59 PM Subject: A2K: acCmdWordMailMerge > Hello all > I use the following to start a word merge > > DoCmd.SelectObject acQuery, "qry_AllStudents", True > DoCmd.RunCommand acCmdWordMailMerge > > It has worked literally for years. Now she no good > > Any suggestions? > > Darren > > From Erwin.Craps at ithelps.be Thu Dec 11 01:20:48 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 11 Dec 2003 08:20:48 +0100 Subject: [AccessD] CmdRunApp Help Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFA9@stekelbes.ithelps.local> Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Thu Dec 11 04:44:07 2003 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Thu, 11 Dec 2003 11:44:07 +0100 Subject: AW: [AccessD] Form/report templates In-Reply-To: Message-ID: Hi, now it works - many thanks!! Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte Foust Gesendet: Mittwoch, 10. Dezember 2003 21:51 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Form/report templates True, I had forgotten about that. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, December 10, 2003 11:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form/report templates Well, there's another way too -- after clicking the particular control on the Toolbox, change the properties in the Properties window and then insert the control -- that will change the defaults for that particular control too. Susan H. > Select the control on the Normal form or report the select Set Control > Defaults from the design menu. If you don't do that, it doesn't > override the existing "normal" defaults. You can do the same thing on > any form or report to set the default for that kind of control for > that particular object as well. > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 10:31 AM > To: Access Developers discussion and problem solving > Subject: AW: [AccessD] Form/report templates > > > How do I set control defaults? I thought I just had to insert a > control and format it the way I want new controls to be!? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte > Foust > Gesendet: Mittwoch, 10. Dezember 2003 18:46 > An: Access Developers discussion and problem solving > Betreff: RE: [AccessD] Form/report templates > > > Hmmn. Did you remember to set the Control Defaults for that textbox > on the Normal form? Otherwise, it won't be applied. If you do set > it, it works in XP on my machine. > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 9:15 AM > To: Access Developers discussion and problem solving > Subject: AW: [AccessD] Form/report templates > > > Just tested it on another machine: > > 1. Created a new form > 2. Created a text box with a label. Set the label font color to blue > and the border style to transparent 3. Save the new form as 'Normal' > 4. Created a new form and inserted a text box -> it is not formatted > as the one on 'Normal' > > (Under options, the name of the template form is 'Normal') > > Since it does not work on two machines, is there anything else needed > to be turned on? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Charlotte > Foust > Gesendet: Mittwoch, 10. Dezember 2003 18:01 > An: Access Developers discussion and problem solving > Betreff: RE: [AccessD] Form/report templates > > > I haven't tried it with backcolor, but it certainly works for other > kinds of control properties, but only on new forms created after the > "normal" version is saved. That's the way it has always worked. Were > you trying to do something else? > > Charlotte Foust > > -----Original Message----- > From: Michael Brosdorf [mailto:michael.broesdorf at web.de] > Sent: Wednesday, December 10, 2003 8:47 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Form/report templates > > > Dear group, > > recently I wanted to demonstrate the use or forms/report named > 'Normal' in Access 2K. From what I know, a developer can created these > forms/reports to defined format defaults for controls. In the Access > options one can even define the name for those format templates. The > only problem is that it does not seem to work anymore! > > I thinkg it worked in A97: a form named 'Normal' containing a text box > with green back color would cause all newly created text boxes on > other forms to have the same green back color. > > How does this feature work in A2K? > > TIA, > > Michael > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Thu Dec 11 04:56:12 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 11 Dec 2003 11:56:12 +0100 (CET) Subject: [AccessD] Access Turning Off AllowFullMenus Message-ID: <1772719.1071140172538.JavaMail.www@wwinf3004> To all, Just another quick toolbar question ..I know that you can uncheck the AllowFullMenus by going to Startup properties. I have looked under Access help and can?t seem to find an example of doing this via VBA. Does anyone know how to set this property via code ? Thanks in advance for all your help (Again) .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From accma at sympatico.ca Thu Dec 11 06:02:24 2003 From: accma at sympatico.ca (Annie Courchesne, cma) Date: Thu, 11 Dec 2003 07:02:24 -0500 Subject: [AccessD] DAT file Message-ID: Hi group, I have a DAT file that contains all the information about the customers of one of my customer. Is there any way that I can import this to Access or another program that I could work with. Thanks. Annie Courchesne, CMA From jcolby at colbyconsulting.com Thu Dec 11 07:28:04 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 08:28:04 -0500 Subject: [AccessD] Access Turning Off AllowFullMenus In-Reply-To: <1772719.1071140172538.JavaMail.www@wwinf3004> Message-ID: I have a wizard on my site that does this - C2DbProperties. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Thursday, December 11, 2003 5:56 AM To: accessd Subject: [AccessD] Access Turning Off AllowFullMenus To all, Just another quick toolbar question ..I know that you can uncheck the AllowFullMenus by going to Startup properties. I have looked under Access help and can?t seem to find an example of doing this via VBA. Does anyone know how to set this property via code ? Thanks in advance for all your help (Again) .. Paul Hartland Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 07:41:06 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 08:41:06 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CFA9@stekelbes.ithelps.local> Message-ID: Nope, I use it because it has a programming model, with properties / methods / child objects, complete with intellisense. I do a ton of things like saving email attachments (from the Outlook model) to specific directories, then using the filesystemobject to get a directory and use the built-in iterator (for next) to iterate all files in the directory importing payments, claim number updates and the likes into a database. Once I started doing that, I just wrote wrappers around the code to dim the FSO and instantiate it, plus use a specific command. Having that code in place, I rarely use anything else unless the FSO is specifically disabled on a specific client's net / machine. I simply asked you to provide code because the gentleman originally asked how to do this. I provided an answer with code. You provided a "why not use the built-in vb commands". I can find the built-in commands should I ever need them, but the original gentleman obviously needed help. "Why not use the built-in VB commands" barely qualifies as helpful. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 2:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 11 08:32:37 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 11 Dec 2003 15:32:37 +0100 Subject: [AccessD] CmdRunApp Help Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFB2@stekelbes.ithelps.local> I understand that. I appologise for this, but I interpreted your E-mail as a better way of dooing things (which is true from what I understand now) then the VBA functions. My remark was not intentioned as an alternative solution but as a question to you to know what is better about FSO cause I never used it in Access (only in ASP). This "nuance" most have been lost in the translation. Again my appologies. Hope you accept it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 2:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Nope, I use it because it has a programming model, with properties / methods / child objects, complete with intellisense. I do a ton of things like saving email attachments (from the Outlook model) to specific directories, then using the filesystemobject to get a directory and use the built-in iterator (for next) to iterate all files in the directory importing payments, claim number updates and the likes into a database. Once I started doing that, I just wrote wrappers around the code to dim the FSO and instantiate it, plus use a specific command. Having that code in place, I rarely use anything else unless the FSO is specifically disabled on a specific client's net / machine. I simply asked you to provide code because the gentleman originally asked how to do this. I provided an answer with code. You provided a "why not use the built-in vb commands". I can find the built-in commands should I ever need them, but the original gentleman obviously needed help. "Why not use the built-in VB commands" barely qualifies as helpful. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 2:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 08:56:16 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 09:56:16 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CFB2@stekelbes.ithelps.local> Message-ID: Erwin, Absolutely! As for being a "better way", I really like the FSO. On the other hand there are MANY sysadmins out there that disable it (I think it is a service or something). It isn't safe to just assume it is going to work, thus having code for "the alternative" (the built in VB commands) is a necessity as well. I have all that old stuff in my framework from long ago before I used the FSO. I too used GW-Basic back in the late 80s / early 90s to build a calibration test stand for Puritan-Bennett (ventilators) to test air flow sensors - Hot Wire Anemometers - where the air flowing past a heated wire in a glass tube changed the temperature and thus the resistance of the wire. The current flow through the wire was measured to determine how much air was moving through the tube. Pretty scary to think that gw-basic was used to test this stuff. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 9:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help I understand that. I appologise for this, but I interpreted your E-mail as a better way of dooing things (which is true from what I understand now) then the VBA functions. My remark was not intentioned as an alternative solution but as a question to you to know what is better about FSO cause I never used it in Access (only in ASP). This "nuance" most have been lost in the translation. Again my appologies. Hope you accept it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 2:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Nope, I use it because it has a programming model, with properties / methods / child objects, complete with intellisense. I do a ton of things like saving email attachments (from the Outlook model) to specific directories, then using the filesystemobject to get a directory and use the built-in iterator (for next) to iterate all files in the directory importing payments, claim number updates and the likes into a database. Once I started doing that, I just wrote wrappers around the code to dim the FSO and instantiate it, plus use a specific command. Having that code in place, I rarely use anything else unless the FSO is specifically disabled on a specific client's net / machine. I simply asked you to provide code because the gentleman originally asked how to do this. I provided an answer with code. You provided a "why not use the built-in vb commands". I can find the built-in commands should I ever need them, but the original gentleman obviously needed help. "Why not use the built-in VB commands" barely qualifies as helpful. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 2:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 11 09:07:25 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 11 Dec 2003 16:07:25 +0100 Subject: [AccessD] CmdRunApp Help Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFB7@stekelbes.ithelps.local> I'm gonna check this file iteration thing, sounds much better than the VBA routine I have now... Thx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Erwin, Absolutely! As for being a "better way", I really like the FSO. On the other hand there are MANY sysadmins out there that disable it (I think it is a service or something). It isn't safe to just assume it is going to work, thus having code for "the alternative" (the built in VB commands) is a necessity as well. I have all that old stuff in my framework from long ago before I used the FSO. I too used GW-Basic back in the late 80s / early 90s to build a calibration test stand for Puritan-Bennett (ventilators) to test air flow sensors - Hot Wire Anemometers - where the air flowing past a heated wire in a glass tube changed the temperature and thus the resistance of the wire. The current flow through the wire was measured to determine how much air was moving through the tube. Pretty scary to think that gw-basic was used to test this stuff. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 9:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help I understand that. I appologise for this, but I interpreted your E-mail as a better way of dooing things (which is true from what I understand now) then the VBA functions. My remark was not intentioned as an alternative solution but as a question to you to know what is better about FSO cause I never used it in Access (only in ASP). This "nuance" most have been lost in the translation. Again my appologies. Hope you accept it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 2:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Nope, I use it because it has a programming model, with properties / methods / child objects, complete with intellisense. I do a ton of things like saving email attachments (from the Outlook model) to specific directories, then using the filesystemobject to get a directory and use the built-in iterator (for next) to iterate all files in the directory importing payments, claim number updates and the likes into a database. Once I started doing that, I just wrote wrappers around the code to dim the FSO and instantiate it, plus use a specific command. Having that code in place, I rarely use anything else unless the FSO is specifically disabled on a specific client's net / machine. I simply asked you to provide code because the gentleman originally asked how to do this. I provided an answer with code. You provided a "why not use the built-in vb commands". I can find the built-in commands should I ever need them, but the original gentleman obviously needed help. "Why not use the built-in VB commands" barely qualifies as helpful. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 2:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 09:22:44 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 10:22:44 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CFB7@stekelbes.ithelps.local> Message-ID: Erwin, Below is an example of code (stripped down for clarity) that I use in one project. Obviously the path strings and such are module globals that you would change to your needs. Function ProcessAllClaimNumFiles() On Error GoTo Err_ProcessAllClaimNumFiles Dim fs As Scripting.FileSystemObject Dim fldr As Scripting.Folder Dim File As Scripting.File Set fs = New Scripting.FileSystemObject Set fldr = fs.GetFolder(strPathDISReports & strPathSTDXlsSubfolder) For Each File In fldr.Files fs.DeleteFile strPathDISReports & "TODAY_STD.xls", True File.Copy strPathDISReports & "TODAY_STD.xls", True . . . other processing here . Next File Exit_ProcessAllClaimNumFiles: On Error Resume Next Set fldr = Nothing Set fs = Nothing Exit Function Err_ProcessAllClaimNumFiles: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case 53 'file not found to be deleted Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basPaymentImportingNew.ProcessAllClaimNumFiles" Resume Exit_ProcessAllClaimNumFiles End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 10:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help I'm gonna check this file iteration thing, sounds much better than the VBA routine I have now... Thx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Erwin, Absolutely! As for being a "better way", I really like the FSO. On the other hand there are MANY sysadmins out there that disable it (I think it is a service or something). It isn't safe to just assume it is going to work, thus having code for "the alternative" (the built in VB commands) is a necessity as well. I have all that old stuff in my framework from long ago before I used the FSO. I too used GW-Basic back in the late 80s / early 90s to build a calibration test stand for Puritan-Bennett (ventilators) to test air flow sensors - Hot Wire Anemometers - where the air flowing past a heated wire in a glass tube changed the temperature and thus the resistance of the wire. The current flow through the wire was measured to determine how much air was moving through the tube. Pretty scary to think that gw-basic was used to test this stuff. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 9:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help I understand that. I appologise for this, but I interpreted your E-mail as a better way of dooing things (which is true from what I understand now) then the VBA functions. My remark was not intentioned as an alternative solution but as a question to you to know what is better about FSO cause I never used it in Access (only in ASP). This "nuance" most have been lost in the translation. Again my appologies. Hope you accept it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 2:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Nope, I use it because it has a programming model, with properties / methods / child objects, complete with intellisense. I do a ton of things like saving email attachments (from the Outlook model) to specific directories, then using the filesystemobject to get a directory and use the built-in iterator (for next) to iterate all files in the directory importing payments, claim number updates and the likes into a database. Once I started doing that, I just wrote wrappers around the code to dim the FSO and instantiate it, plus use a specific command. Having that code in place, I rarely use anything else unless the FSO is specifically disabled on a specific client's net / machine. I simply asked you to provide code because the gentleman originally asked how to do this. I provided an answer with code. You provided a "why not use the built-in vb commands". I can find the built-in commands should I ever need them, but the original gentleman obviously needed help. "Why not use the built-in VB commands" barely qualifies as helpful. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 2:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Thu Dec 11 09:35:57 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Thu, 11 Dec 2003 16:35:57 +0100 Subject: [AccessD] CmdRunApp Help Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFB9@stekelbes.ithelps.local> Thx... Gotta pick up my son now at my in-law-parents (or how do you call that) house... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 4:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Erwin, Below is an example of code (stripped down for clarity) that I use in one project. Obviously the path strings and such are module globals that you would change to your needs. Function ProcessAllClaimNumFiles() On Error GoTo Err_ProcessAllClaimNumFiles Dim fs As Scripting.FileSystemObject Dim fldr As Scripting.Folder Dim File As Scripting.File Set fs = New Scripting.FileSystemObject Set fldr = fs.GetFolder(strPathDISReports & strPathSTDXlsSubfolder) For Each File In fldr.Files fs.DeleteFile strPathDISReports & "TODAY_STD.xls", True File.Copy strPathDISReports & "TODAY_STD.xls", True . . . other processing here . Next File Exit_ProcessAllClaimNumFiles: On Error Resume Next Set fldr = Nothing Set fs = Nothing Exit Function Err_ProcessAllClaimNumFiles: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case 53 'file not found to be deleted Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basPaymentImportingNew.ProcessAllClaimNumFiles" Resume Exit_ProcessAllClaimNumFiles End Select Resume 0 '.FOR TROUBLESHOOTING End Function John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 10:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help I'm gonna check this file iteration thing, sounds much better than the VBA routine I have now... Thx -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Erwin, Absolutely! As for being a "better way", I really like the FSO. On the other hand there are MANY sysadmins out there that disable it (I think it is a service or something). It isn't safe to just assume it is going to work, thus having code for "the alternative" (the built in VB commands) is a necessity as well. I have all that old stuff in my framework from long ago before I used the FSO. I too used GW-Basic back in the late 80s / early 90s to build a calibration test stand for Puritan-Bennett (ventilators) to test air flow sensors - Hot Wire Anemometers - where the air flowing past a heated wire in a glass tube changed the temperature and thus the resistance of the wire. The current flow through the wire was measured to determine how much air was moving through the tube. Pretty scary to think that gw-basic was used to test this stuff. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 9:33 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help I understand that. I appologise for this, but I interpreted your E-mail as a better way of dooing things (which is true from what I understand now) then the VBA functions. My remark was not intentioned as an alternative solution but as a question to you to know what is better about FSO cause I never used it in Access (only in ASP). This "nuance" most have been lost in the translation. Again my appologies. Hope you accept it. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 2:41 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Nope, I use it because it has a programming model, with properties / methods / child objects, complete with intellisense. I do a ton of things like saving email attachments (from the Outlook model) to specific directories, then using the filesystemobject to get a directory and use the built-in iterator (for next) to iterate all files in the directory importing payments, claim number updates and the likes into a database. Once I started doing that, I just wrote wrappers around the code to dim the FSO and instantiate it, plus use a specific command. Having that code in place, I rarely use anything else unless the FSO is specifically disabled on a specific client's net / machine. I simply asked you to provide code because the gentleman originally asked how to do this. I provided an answer with code. You provided a "why not use the built-in vb commands". I can find the built-in commands should I ever need them, but the original gentleman obviously needed help. "Why not use the built-in VB commands" barely qualifies as helpful. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 2:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help Ah sorry John I conclude with Gustav. I learned these commands in GW-Basic/Quick Basic or something. I just presumed you knew these commands and are using filesystemobject for some specific reasons I'm not aware of. Like speed, I sometimes have the impression that FileCopy is slower than dooing a explorer copy. Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens Gustav Brock Verzonden: woensdag 10 december 2003 14:23 Aan: Access Developers discussion and problem solving Onderwerp: Re: [AccessD] CmdRunApp Help Hi John > Why not post code as I did? Ahh John, it's too easy: FileCopy sourcefile, destfile Name destfile As johnsfile.txt /gustav > Why using the filesystemobject and not the regular VBA commands? > Faster? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 10:04:07 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 11:04:07 -0500 Subject: [AccessD] password input mask - text box Message-ID: My password input mask in a text box will not allow me to swipe the entire entered string of asterisks if such exists. The insertion pointer always starts (0r ends) at the next to the last character. Thus if you try to delete an existing string in the text box all but one characters gets deleted. I can correctly use the shift and arrow keys to select the entire thing. I have seen this in the past, but am not sure if I ever found a solution. Has anyone seen this? Am I doing something wrong? John W. Colby www.ColbyConsulting.com From Mike.W.Gowey at doc.state.or.us Thu Dec 11 10:06:16 2003 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 11 Dec 2003 09:06:16 -0700 Subject: [AccessD] CmdRunApp Help Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077801D9FE65@srciml1.ds.doc.state.or.us> John, Thanks very much for your help, this works absolutely wonderful and does exactly what I needed it to do. So slick..... You're the man....thanks again, Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, December 09, 2003 1:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 10:19:21 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 11:19:21 -0500 Subject: [AccessD] CmdRunApp Help In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077801D9FE65@srciml1.ds.doc.state.or.us> Message-ID: Always welcome. As you can no doubt tell, I love the FSO. Having an object to program allows us to do anything that the File system allows right from within Access. Set file properties, change names, move things around, add / delete folders. AFAICT, if you can do it from Explorer, you can do it from the FSO. Plus you have intellisense to prompt you as to the properties and methods, parameters needed etc. Way cool. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, December 11, 2003 11:06 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help John, Thanks very much for your help, this works absolutely wonderful and does exactly what I needed it to do. So slick..... You're the man....thanks again, Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, December 09, 2003 1:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] CmdRunApp Help why don't you just do it from within Access? If the filesystem object is accessible, reference it. Then: Function CopyFile(strFileName As String, strDestDir As String) As Boolean On Error GoTo Err_CopyFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") 'On Error Resume Next 'if the file doesn't exist, ignore the error fs.CopyFile strFileName, strDestDir CopyFile = True Exit_CopyFile: On Error Resume Next Set fs = Nothing Exit Function Err_CopyFile: MsgBox Err.Description, , "Error in Sub basUtils.CopyFile" Resume Exit_CopyFile Resume 0 '.FOR TROUBLESHOOTING End Function Sub DeleteFile(strFileName As String) On Error GoTo Err_DeleteFile Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.DeleteFile strFileName Exit_DeleteFile: On Error Resume Next Set fs = Nothing Exit Sub Err_DeleteFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.DeleteFile" Resume Exit_DeleteFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub Sub RenameFile(strFileName As String, strNewName As String) On Error GoTo Err_RenameFile Dim fs As FileSystemObject Dim f As File Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(strFileName) f.Name = strNewName Exit_RenameFile: On Error Resume Next Set f = Nothing Set fs = Nothing Exit Sub Err_RenameFile: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.RenameFile" Resume Exit_RenameFile End Select Resume 0 '.FOR TROUBLESHOOTING End Sub '.Comments : '.Parameters: '.Created by: John W. Colby '.Created : 12/5/2002 9:29:43 PM Sub CreateDir(strPath As String) On Error GoTo Err_CreateDir Dim fs As FileSystemObject Set fs = CreateObject("Scripting.FileSystemObject") On Error Resume Next 'if the file doesn't exist, ignore the error fs.CreateFolder strPath Exit_CreateDir: On Error Resume Next Set fs = Nothing Exit Sub Err_CreateDir: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Sub basUtils.CreateDir" Resume Exit_CreateDir End Select Resume 0 '.FOR TROUBLESHOOTING End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Tuesday, December 09, 2003 3:03 PM To: Access Developers discussion and problem solving Subject: [AccessD] CmdRunApp Help Hello all, I have within my database a call to run a batch program that takes a file that resides on one of our Network servers and copies it to our local server and renames it to a text file. I than take that text file and import it into a table. My question is, is there a way to call the batch program and have it run in the background or run minimized. Right now it works but the dos window comes up over the top of the database and does the copy and rename in other words runs in the foreground. I have a progress meter that comes up that I would like the user to see rather than the ugly little black dos window. Thanks in advance for any advice. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division From cfoust at infostatsystems.com Thu Dec 11 10:30:44 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 11 Dec 2003 08:30:44 -0800 Subject: [AccessD] DAT file Message-ID: What format is the DAT file? There are a number of different kinds of files, including digital audio, that use that extension, so the extension itself isn't explanatory. If it is a text file, you can import it into Access but 2000 and 2002 don't recognize dat as a text extension unless you force them to. It's usually easier to just change the extension to txt. Charlotte Foust -----Original Message----- From: Annie Courchesne, cma [mailto:accma at sympatico.ca] Sent: Thursday, December 11, 2003 4:02 AM To: Accessd Subject: [AccessD] DAT file Hi group, I have a DAT file that contains all the information about the customers of one of my customer. Is there any way that I can import this to Access or another program that I could work with. Thanks. Annie Courchesne, CMA _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chris at thecube.net Thu Dec 11 10:41:15 2003 From: chris at thecube.net (Chris J Bain) Date: Thu, 11 Dec 2003 16:41:15 -0000 Subject: [AccessD] password input mask - text box In-Reply-To: Message-ID: <000401c3c005$a3e4b4b0$c075063e@Chris> John, Are you a left-to-right swiper, or a right-to-left(er)? Kind Regards Chris J Bain Tel: 07739 706 478 Email: chris at thecube.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 11 December 2003 16:04 To: AccessD Subject: [AccessD] password input mask - text box My password input mask in a text box will not allow me to swipe the entire entered string of asterisks if such exists. The insertion pointer always starts (0r ends) at the next to the last character. Thus if you try to delete an existing string in the text box all but one characters gets deleted. I can correctly use the shift and arrow keys to select the entire thing. I have seen this in the past, but am not sure if I ever found a solution. Has anyone seen this? Am I doing something wrong? John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Thu Dec 11 11:01:51 2003 From: greggs at msn.com (Greggs) Date: Thu, 11 Dec 2003 11:01:51 -0600 Subject: [AccessD] Splitting 2002 data makes reports lock up In-Reply-To: Message-ID: I opened a new database in 2K, copied everything from Public Function thru End Function into a new Module, compiled, got an error on "Dim dbs As DAO.Database", added the DAO reference, compiled and got the error below... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" Then... you won't believe this... I retraced my steps to write this email by copying everything from module1 into module2, deleting module1, removed the DAO reference, compiled, got the DAO error, added the reference, and.... it compiled! It will truly take a greater mind than mind to understand that!!!! Thanks for all your help Charlotte! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Wednesday, December 10, 2003 11:11 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Then I don't know what the problem is. You did copy the constant declarations in the code, right? I wrote this for A2k, so it should work there. You could try hard coding the property name into the test to see which constant it isn't recognizing. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 6:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I have the DAO 3.6 library referenced. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 7:34 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Do you have a DAO reference set? That's DAO code. In 2002, you should be able to run it without a DAO reference, but you have to substitute late binding and declare the objects as Object rather that DAO.whatever. I do have ADO code for this, but I don't think I have it on this machine. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 5:30 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte, I get a compile error in 2K for.... If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then Says "Constant Expression Required" -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 11:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up It has to be turned off in the properties of the individual table. There actually is some code in the help file, if you can find it, but here's my routine. This saves having to open each table in design view and fiddle with it. If you're using security on your tables, you'll need to open a workspace using a login and password that has permission to make design changes to the tables and then open the database using the secured workspace. Charlotte Foust Public Function TurnOffSubdatasheets(strDBFile As String, _ ParamArray TblName() As Variant) As Boolean ' created by Charlotte Foust ' loops through tables in database and turns off subdatasheets where the ' subdatasheet name property is set to [Auto] On Error Resume Next Dim intLoop As Integer Dim intChanged As Integer Dim strTblName As String Dim dbs As DAO.Database Dim tdf As DAO.TableDef Dim prp As DAO.Property Const PROPNAME As String = "SubDataSheetName" Const PROPTYPE As Integer = dbText Const PROPVAL As String = "[NONE]" Const PROP_NOT_FOUND As Integer = 3270 TurnOffSubdatasheets = True 'If table name or names passed, 'initialize the strTblName variable If Not IsMissing(TblName()) Then strTblName = TblName(0) End If Set dbs = DBEngine.Workspaces(0).OpenDatabase(strDBFile, True) If strTblName = "" Then 'If no table names passed then 'loop through the tabledefs collection For Each tdf In dbs.TableDefs 'skip the system tables If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next Else For intLoop = 0 To UBound(TblName) 'loop through the passed table names 'and set the subdatasheet name property strTblName = TblName(intLoop) Set tdf = dbs.TableDefs(strTblName) If Not (tdf.Attributes And dbSystemObject) Then If tdf.Properties(PROPNAME) = "[Auto]" Or _ Err = PROP_NOT_FOUND Then If Err.Number = PROP_NOT_FOUND Then Err.Clear Set prp = tdf.CreateProperty(PROPNAME) prp.Type = PROPTYPE prp.Value = PROPVAL tdf.Properties.Append prp ElseIf Err.Number = 0 Then tdf.Properties(PROPNAME).Value = PROPVAL Else TurnOffSubdatasheets = False MsgBox "Error: " & Err.Number & " on Table " _ & tdf.Name & "." dbs.Close Exit Function End If End If End If Next intLoop End If Proc_exit: On Error Resume Next Set prp = Nothing Set tdf = Nothing Set dbs = Nothing End Function 'TurnOffSubdatasheets(ParamArray TblName() As Variant) -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 9:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up yeah -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark Boyd Sent: Monday, December 08, 2003 10:39 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Charlotte - Where do you turn off subdatasheets? I'm curious if this will resolve a linked issue I'm having. Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Monday, December 08, 2003 11:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up Did you remember to turn off subdatasheets on all those tables after you split the database? You probably need to do it on both front and back end. That should make a difference in performance with linked tables. Charlotte Foust -----Original Message----- From: Greggs [mailto:greggs at msn.com] Sent: Monday, December 08, 2003 7:38 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Splitting 2002 data makes reports lock up I took a database designed by another individual and split it into a FE and a BE. Essentially I took all the tables except switchboard, moved them to a new database and linked them back in. Now some of the larger reports lock up the system. These reports take seconds to run in the old database even though they are a couple hundred pages. The symptoms are the same on all systems. Any ideas? Gregg Steinbrenner _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Thu Dec 11 10:57:05 2003 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Thu, 11 Dec 2003 11:57:05 -0500 Subject: [AccessD] password input mask - text box In-Reply-To: Message-ID: John Wouldn't the GotFocus event fire, and if so, couldn't you still use some CBF to select? ************************************** Private Sub YourField_GotFocus() YourField.SelStart = 0 YourField.SelLength = Nz(Len([YourField]), 0) End Sub ************************************** Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Thursday, December 11, 2003 11:04 To: AccessD Subject: [AccessD] password input mask - text box My password input mask in a text box will not allow me to swipe the entire entered string of asterisks if such exists. The insertion pointer always starts (0r ends) at the next to the last character. Thus if you try to delete an existing string in the text box all but one characters gets deleted. I can correctly use the shift and arrow keys to select the entire thing. I have seen this in the past, but am not sure if I ever found a solution. Has anyone seen this? Am I doing something wrong? John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 11:13:43 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 12:13:43 -0500 Subject: [AccessD] password input mask - text box In-Reply-To: <000401c3c005$a3e4b4b0$c075063e@Chris> Message-ID: It doesn't seem to matter. In general though, right to left. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Chris J Bain Sent: Thursday, December 11, 2003 11:41 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] password input mask - text box John, Are you a left-to-right swiper, or a right-to-left(er)? Kind Regards Chris J Bain Tel: 07739 706 478 Email: chris at thecube.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: 11 December 2003 16:04 To: AccessD Subject: [AccessD] password input mask - text box My password input mask in a text box will not allow me to swipe the entire entered string of asterisks if such exists. The insertion pointer always starts (0r ends) at the next to the last character. Thus if you try to delete an existing string in the text box all but one characters gets deleted. I can correctly use the shift and arrow keys to select the entire thing. I have seen this in the past, but am not sure if I ever found a solution. Has anyone seen this? Am I doing something wrong? John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Paul.Millard at freight.fedex.com Thu Dec 11 11:45:41 2003 From: Paul.Millard at freight.fedex.com (Millard, Paul --- Sr. Developer Analyst ---WGO) Date: Thu, 11 Dec 2003 09:45:41 -0800 Subject: [AccessD] SQL Union Query Help Message-ID: <67B2D43A2067B248A36B007650A2312C1451ED@psjoe2k1.vikingfreight.com> Hello everyone. I'm trying to run the SQL union query and would like to have this shown into one record...Right now, the results are displayed into two records. This query is run against our SQL Server database. Also, in Oracle I'm able to use a SQL wrapper which helps my situation but won't work in SQL Server...For example, select CustNum, Shipments, Revenue, AdjCost from(...SQL query below). Eventually, I will be removing the Customer Number where clause to run against all customers. Thanks, Paul Millard San Jose, CA select t1.ShipNum as CustNum, Count(*) as Shipments, Sum(t1.Rev) as Revenue, Sum(t1.AdjCost) as AdjCost from tblRawAccess as t1 where t1.ShipNum = 'KKL2712SKM' and t1.FbType = 'P' and t1.Month = '0306' group by t1.ShipNum union select t1.CsgnNum as CustNum, Count(*) as Shipments, Sum(t1.Rev) as Revenue, Sum(t1.AdjCost) as AdjCost from tblRawAccess as t1 where t1.CsgnNum = 'KKL2712SKM' and t1.FbType = 'C' and t1.Month = '0306' group by t1.CsgnNum query results.... KKL2712SKM 1 72.910003662109375 129.64300537109375 KKL2712SKM 29 4155.4299850463867 3413.1434745788574 need into KKL2712SKM 30 4228 3543 ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** From gustav at cactus.dk Thu Dec 11 11:53:17 2003 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 11 Dec 2003 18:53:17 +0100 Subject: [AccessD] SQL Union Query Help In-Reply-To: <67B2D43A2067B248A36B007650A2312C1451ED@psjoe2k1.vikingfreight.com> References: <67B2D43A2067B248A36B007650A2312C1451ED@psjoe2k1.vikingfreight.com> Message-ID: <7135298406.20031211185317@cactus.dk> Hi Paul Use the union query as recordsource for a new query where you Group By CustNum and Sum the other fields. /gustav > I'm trying to run the SQL union query and would like to have this shown into one record...Right now, the results are displayed into two records. This query is run against our SQL Server database. > Also, in Oracle I'm able to use a SQL wrapper which helps my situation but won't work in SQL Server...For example, select CustNum, Shipments, Revenue, AdjCost from(...SQL query below). > Eventually, I will be removing the Customer Number where clause to run against all customers. > Thanks, > Paul Millard > San Jose, CA > select > t1.ShipNum as CustNum, > Count(*) as Shipments, > Sum(t1.Rev) as Revenue, > Sum(t1.AdjCost) as AdjCost > from > tblRawAccess as t1 > where > t1.ShipNum = 'KKL2712SKM' and > t1.FbType = 'P' and > t1.Month = '0306' > group by > t1.ShipNum > union > select > t1.CsgnNum as CustNum, > Count(*) as Shipments, > Sum(t1.Rev) as Revenue, > Sum(t1.AdjCost) as AdjCost > from > tblRawAccess as t1 > where > t1.CsgnNum = 'KKL2712SKM' and > t1.FbType = 'C' and > t1.Month = '0306' > group by > t1.CsgnNum > query results.... > KKL2712SKM 1 72.910003662109375 129.64300537109375 > KKL2712SKM 29 4155.4299850463867 3413.1434745788574 > need into > KKL2712SKM 30 4228 3543 From accma at sympatico.ca Thu Dec 11 12:36:54 2003 From: accma at sympatico.ca (accma at sympatico.ca) Date: Thu, 11 Dec 2003 13:36:54 -0500 Subject: [AccessD] DAT file Message-ID: <20031211183654.PUQR4010.tomts23-srv.bellnexxia.net@smtp.bellnexxia.net> Hi, It's a DAT file from a Clarion homemade program. It's really old so I don't know much more than that. I will try to change the extension to txt and see if I can import it. Thanks, Annie Courchesne, CMA > > De: "Charlotte Foust" > Date: 2003/12/11 jeu. AM 11:30:44 GMT-05:00 > ?: "Access Developers discussion and problem solving" > > Objet: RE: [AccessD] DAT file > > What format is the DAT file? There are a number of different kinds of > files, including digital audio, that use that extension, so the > extension itself isn't explanatory. If it is a text file, you can > import it into Access but 2000 and 2002 don't recognize dat as a text > extension unless you force them to. It's usually easier to just change > the extension to txt. > > Charlotte Foust > > -----Original Message----- > From: Annie Courchesne, cma [mailto:accma at sympatico.ca] > Sent: Thursday, December 11, 2003 4:02 AM > To: Accessd > Subject: [AccessD] DAT file > > > Hi group, > > I have a DAT file that contains all the information about the customers > of one of my customer. Is there any way that I can import this to > Access or another program that I could work with. > > Thanks. > > > Annie Courchesne, CMA > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jcolby at colbyconsulting.com Thu Dec 11 12:38:17 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 13:38:17 -0500 Subject: [AccessD] youi must save the field before... Message-ID: Unbound password change form. Enter data in txtNewPW. Enter data in txtRepeatNewPW. If they don't match, go to txtNewPW. I'm getting "you must save te field before you execute the goto method". What's up with that? John W. Colby www.ColbyConsulting.com From delliker at hotmail.com Thu Dec 11 13:00:38 2003 From: delliker at hotmail.com (Don Elliker) Date: Thu, 11 Dec 2003 14:00:38 -0500 Subject: [AccessD] Password text box/ insertion point problem Message-ID: John Under the Options / keyboard tab / Behavior entering field - you may want to alter it if it's pointing you to the end of the field. _D "Things are only free to the extent that you don't pay for them".-Don Elliker _________________________________________________________________ Cell phone ?switch? rules are taking effect ? find out more here. http://special.msn.com/msnbc/consumeradvocate.armx From cfoust at infostatsystems.com Thu Dec 11 13:07:15 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 11 Dec 2003 11:07:15 -0800 Subject: [AccessD] DAT file Message-ID: Since Clarion doesn't itself specify the file format, the file could be almost anything. Try text first. If that doesn't work, try another database format like dBase or bTrieve. Charlotte Foust -----Original Message----- From: accma at sympatico.ca [mailto:accma at sympatico.ca] Sent: Thursday, December 11, 2003 10:37 AM To: Access Developers discussion and problem solving Subject: Re: RE: [AccessD] DAT file Hi, It's a DAT file from a Clarion homemade program. It's really old so I don't know much more than that. I will try to change the extension to txt and see if I can import it. Thanks, Annie Courchesne, CMA > > De: "Charlotte Foust" > Date: 2003/12/11 jeu. AM 11:30:44 GMT-05:00 > ?: "Access Developers discussion and problem solving" > > Objet: RE: [AccessD] DAT file > > What format is the DAT file? There are a number of different kinds of > files, including digital audio, that use that extension, so the > extension itself isn't explanatory. If it is a text file, you can > import it into Access but 2000 and 2002 don't recognize dat as a text > extension unless you force them to. It's usually easier to just > change the extension to txt. > > Charlotte Foust > > -----Original Message----- > From: Annie Courchesne, cma [mailto:accma at sympatico.ca] > Sent: Thursday, December 11, 2003 4:02 AM > To: Accessd > Subject: [AccessD] DAT file > > > Hi group, > > I have a DAT file that contains all the information about the > customers of one of my customer. Is there any way that I can import > this to Access or another program that I could work with. > > Thanks. > > > Annie Courchesne, CMA > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Thu Dec 11 13:12:13 2003 From: reuben at gfconsultants.com (Reuben Cummings) Date: Thu, 11 Dec 2003 14:12:13 -0500 Subject: [AccessD] Export to dBase Message-ID: Anyone have a routine built to export several tables from A2K to dBase? If so, could I use it? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From pedro at plex.nl Thu Dec 11 15:55:31 2003 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 11 Dec 2003 22:55:31 +0100 Subject: [AccessD] matching field error References: <03e501c3bf67$cf8b3790$b274d0d5@minster33c3r25> Message-ID: <000001c3c031$ca4006b0$f1c581d5@pedro> Hello Andy and Charlotte, i explained before that the default value pro[perty of PrTestID is empty (no value) so this can't be the problem. Pedro ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, December 10, 2003 10:51 PM Subject: RE: [AccessD] matching field error > Well thought Charlotte, that sounds like the issue. Pedro, change the > properties of PrTestiD by removing its default value and see if that cures > it. > > Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Charlotte Foust > > Sent: 10 December 2003 20:52 > > To: Access Developers discussion and problem solving > > Subject: RE: [AccessD] matching field error > > > > > > The point is that if you don't have a record in the lookup > > table with zero as its primary key, having a default of zero > > will cause you problems with referential integrity in place. > > > > Charlotte Foust > > > > -----Original Message----- > > From: Pedro Janssen [mailto:pedro at plex.nl] > > Sent: Wednesday, December 10, 2003 11:30 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] matching field error > > > > > > The default value is zero, so this isn't the problem. > > Thanks for thinking with me. > > > > Anyone else some ideas. > > > > Pedro > > > > > > ----- Original Message ----- > > From: "Charlotte Foust" > > To: "Access Developers discussion and problem solving" > > > > Sent: Wednesday, December 10, 2003 5:51 PM > > Subject: RE: [AccessD] matching field error > > > > > > > Unless it is specifically set to null, a numeric field usually has a > > > default value of zero. If you're dealing with numeric keys, this > > > might be tripping you up. > > > > > > Charlotte Foust > > > > > > -----Original Message----- > > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > > Sent: Wednesday, December 10, 2003 3:33 AM > > > To: AccessD at databaseadvisors.com > > > Subject: RE: [AccessD] matching field error > > > > > > > > > Hello Andy, > > > > > > In the help function i saw what the error means. But it > > made no sence > > > to me. You say: "Is there any way they could have zeroes or > > > zero-length strings rather than nulls". When a field is > > empty i think > > > there is nothing in it. How can it be that a field is empty > > but a zero > > > > > is present?? > > > > > > Pedro > > > > > > > > > > > > > > > > > > In antwoord op: > > > > > > > From: "Andy Lacey" > > > > To: "'Access Developers discussion and problem solving'" > > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > Pedro > > > > The implication is that the you have Relationships defined with > > > > referential integrity. You are saving a record with a > > test id which > > > > doesn't match to a key value in the tblTest table. The > > odd thing is > > > > that this shouldn't occur if the fields are Null. Is > > there any way > > > > they could have zeroes or zero-length strings rather tha nulls, > > > > because that would do it. > > > > > > > > Andy Lacey > > > > http://www.minstersystems.co.uk > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Pedro > > > > > Janssen > > > > > Sent: 09 December 2003 22:41 > > > > > To: AccessD at databaseadvisors.com > > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > > > > Hello Group, > > > > > > > > > > i get the following error in a form, when i close it > > and the field > > > > > > > 'PrTestID' is empty: > > > > > > > > > > The microsoft Jet database engine cannot find a record in table > > > > > 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > > > > How is this possible, because the field isn't required? > > Al the ID > > > > > fields in the form give the same error when they are empty (and > > > > > all aren't reqiured). > > > > > > > > > > > > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Thu Dec 11 17:18:08 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 12 Dec 2003 00:18:08 +0100 Subject: [AccessD] youi must save the field before... Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFC3@stekelbes.ithelps.local> I believe this is because you execute the setfocus in a beforeupdateevent. You can not loose focus of an event in the middle of a beforeupdate event. You need to work with a boolean you set in beforeupdate and check in afterupdate to setfocus to other field. Or more simple compare password in the afterupdate event.... Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby Verzonden: donderdag 11 december 2003 19:38 Aan: AccessD Onderwerp: [AccessD] youi must save the field before... Unbound password change form. Enter data in txtNewPW. Enter data in txtRepeatNewPW. If they don't match, go to txtNewPW. I'm getting "you must save te field before you execute the goto method". What's up with that? John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Thu Dec 11 18:19:39 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Thu, 11 Dec 2003 19:19:39 -0500 Subject: [AccessD] youi must save the field before... In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CFC3@stekelbes.ithelps.local> Message-ID: Oh. That's simple. Too bad they can't just say that. Thanks!!! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Thursday, December 11, 2003 6:18 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] youi must save the field before... I believe this is because you execute the setfocus in a beforeupdateevent. You can not loose focus of an event in the middle of a beforeupdate event. You need to work with a boolean you set in beforeupdate and check in afterupdate to setfocus to other field. Or more simple compare password in the afterupdate event.... Erwin -----Oorspronkelijk bericht----- Van: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] Namens John W. Colby Verzonden: donderdag 11 december 2003 19:38 Aan: AccessD Onderwerp: [AccessD] youi must save the field before... Unbound password change form. Enter data in txtNewPW. Enter data in txtRepeatNewPW. If they don't match, go to txtNewPW. I'm getting "you must save te field before you execute the goto method". What's up with that? John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SDSSoftware at optusnet.com.au Thu Dec 11 20:03:54 2003 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Fri, 12 Dec 2003 13:03:54 +1100 Subject: [AccessD] OT: Friday humour Message-ID: <003101c3c054$32c9d5e0$6501a8c0@user> In case anyone missed this link in this week's Langalist newsletter, try this link to DeadTroll.com, and go to 'Video', and then run 'Welcome to the Internet Help Desk Studio Version'. http://www.deadtroll.com/ Fantastic stuff. Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 sdssoftware at optusnet.com.au From accessd at shaw.ca Thu Dec 11 20:28:00 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Dec 2003 18:28:00 -0800 Subject: [AccessD] The WebRing In-Reply-To: <003101c3c054$32c9d5e0$6501a8c0@user> Message-ID: Hi Folks: THE WEBRING IS OPERATIONAL. 8-) There is a bit of construction going on behind the scenes but everything is working fine. So if you what to link real people to your site; no spammers just continue to the webring at the DBA site. You can view the WebRing panel at http://www.databaseadvisors.com/webring.htm and from there you can join up through the join page by selecting: 1. The "Database Advisors Webring" button. 2. The select the 'Click here' button "The Database Advisors Webring is free to join, if you'd like to have your site considered for inclusion in the Database Advisors Webring then click here." 3. ...and then fill out the Join form and send it off. We will email you a set of instruction for getting set up. If you have any further question, comments or problems you can email us at; Andy at mailto:ringmaster at minstersystems.co.uk and Jim at mailto:webmaster at databaseadvisors.com . Jim Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Dec 11 20:38:10 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Dec 2003 18:38:10 -0800 Subject: [AccessD] SQL Union Query Help In-Reply-To: <67B2D43A2067B248A36B007650A2312C1451ED@psjoe2k1.vikingfreight.com> Message-ID: Hi Paul: Something like this works in Oracle and I presume MSSQL (...your select statement...) union all (...your other select statement...) Field count in both select statements have to match in number and in type, at least by conversion. Like no text into number fields but the reverse will work. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Millard, Paul --- Sr. Developer Analyst ---WGO Sent: Thursday, December 11, 2003 9:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] SQL Union Query Help Hello everyone. I'm trying to run the SQL union query and would like to have this shown into one record...Right now, the results are displayed into two records. This query is run against our SQL Server database. Also, in Oracle I'm able to use a SQL wrapper which helps my situation but won't work in SQL Server...For example, select CustNum, Shipments, Revenue, AdjCost from(...SQL query below). Eventually, I will be removing the Customer Number where clause to run against all customers. Thanks, Paul Millard San Jose, CA select t1.ShipNum as CustNum, Count(*) as Shipments, Sum(t1.Rev) as Revenue, Sum(t1.AdjCost) as AdjCost from tblRawAccess as t1 where t1.ShipNum = 'KKL2712SKM' and t1.FbType = 'P' and t1.Month = '0306' group by t1.ShipNum union select t1.CsgnNum as CustNum, Count(*) as Shipments, Sum(t1.Rev) as Revenue, Sum(t1.AdjCost) as AdjCost from tblRawAccess as t1 where t1.CsgnNum = 'KKL2712SKM' and t1.FbType = 'C' and t1.Month = '0306' group by t1.CsgnNum query results.... KKL2712SKM 1 72.910003662109375 129.64300537109375 KKL2712SKM 29 4155.4299850463867 3413.1434745788574 need into KKL2712SKM 30 4228 3543 ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Thu Dec 11 20:38:13 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 11 Dec 2003 18:38:13 -0800 Subject: [AccessD] DAT file In-Reply-To: <20031211183654.PUQR4010.tomts23-srv.bellnexxia.net@smtp.bellnexxia.net> Message-ID: Hi Anne: I use to be a bit of an expert in Clarion and if you need it converted just send the dat file and I will dump it and send it back. I still have the program on line as I was supporting a client until six months ago. Not many export options but if a flat base ascii file is OK. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of accma at sympatico.ca Sent: Thursday, December 11, 2003 10:37 AM To: Access Developers discussion and problem solving Subject: Re: RE: [AccessD] DAT file Hi, It's a DAT file from a Clarion homemade program. It's really old so I don't know much more than that. I will try to change the extension to txt and see if I can import it. Thanks, Annie Courchesne, CMA > > De: "Charlotte Foust" > Date: 2003/12/11 jeu. AM 11:30:44 GMT-05:00 > ?: "Access Developers discussion and problem solving" > > Objet: RE: [AccessD] DAT file > > What format is the DAT file? There are a number of different kinds of > files, including digital audio, that use that extension, so the > extension itself isn't explanatory. If it is a text file, you can > import it into Access but 2000 and 2002 don't recognize dat as a text > extension unless you force them to. It's usually easier to just change > the extension to txt. > > Charlotte Foust > > -----Original Message----- > From: Annie Courchesne, cma [mailto:accma at sympatico.ca] > Sent: Thursday, December 11, 2003 4:02 AM > To: Accessd > Subject: [AccessD] DAT file > > > Hi group, > > I have a DAT file that contains all the information about the customers > of one of my customer. Is there any way that I can import this to > Access or another program that I could work with. > > Thanks. > > > Annie Courchesne, CMA > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Dec 11 22:01:23 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 11 Dec 2003 23:01:23 -0500 Subject: [AccessD] OT: Friday humour References: <003101c3c054$32c9d5e0$6501a8c0@user> Message-ID: <000501c3c064$9bcdbc40$6101a8c0@dejpolsys> ...classic! ...I need to hire that guy! :)))) William Hindman "Congress may be going home for the holidays soon. How can you beat a Christmas gift like that?" --Bob Hope ----- Original Message ----- From: "Kath Pelletti" To: Sent: Thursday, December 11, 2003 9:03 PM Subject: [AccessD] OT: Friday humour In case anyone missed this link in this week's Langalist newsletter, try this link to DeadTroll.com, and go to 'Video', and then run 'Welcome to the Internet Help Desk Studio Version'. http://www.deadtroll.com/ Fantastic stuff. Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 sdssoftware at optusnet.com.au _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SDSSoftware at optusnet.com.au Thu Dec 11 23:25:40 2003 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Fri, 12 Dec 2003 16:25:40 +1100 Subject: [AccessD] OT: Friday humour References: <003101c3c054$32c9d5e0$6501a8c0@user> <000501c3c064$9bcdbc40$6101a8c0@dejpolsys> Message-ID: <001701c3c070$621cf180$6501a8c0@user> ..Yeah...each time I watch it I laugh more......."12'oclock flasher" is my favourite part...... Kath ----- Original Message ----- From: William Hindman To: Access Developers discussion and problem solving Sent: Friday, December 12, 2003 3:01 PM Subject: Re: [AccessD] OT: Friday humour ...classic! ...I need to hire that guy! :)))) William Hindman "Congress may be going home for the holidays soon. How can you beat a Christmas gift like that?" --Bob Hope ----- Original Message ----- From: "Kath Pelletti" To: Sent: Thursday, December 11, 2003 9:03 PM Subject: [AccessD] OT: Friday humour In case anyone missed this link in this week's Langalist newsletter, try this link to DeadTroll.com, and go to 'Video', and then run 'Welcome to the Internet Help Desk Studio Version'. http://www.deadtroll.com/ Fantastic stuff. Kath Pelletti Software Design & Solutions Pty Ltd. Ph: 9505-6714 Fax: 9505-6430 sdssoftware at optusnet.com.au _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Dec 12 01:34:29 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 07:34:29 -0000 Subject: [AccessD] matching field error In-Reply-To: <000001c3c031$ca4006b0$f1c581d5@pedro> Message-ID: <054d01c3c082$60e0e9e0$b274d0d5@minster33c3r25> Actually Pedro you said the default is zero (see your previous post below) , so we thought that was it. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Pedro Janssen > Sent: 11 December 2003 21:56 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] matching field error > > > Hello Andy and Charlotte, > > i explained before that the default value pro[perty of > PrTestID is empty (no > value) so this can't be the problem. > > Pedro > > > ----- Original Message ----- > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > > Sent: Wednesday, December 10, 2003 10:51 PM > Subject: RE: [AccessD] matching field error > > > > Well thought Charlotte, that sounds like the issue. Pedro, > change the > > properties of PrTestiD by removing its default value and > see if that > > cures it. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf > Of Charlotte > > > Foust > > > Sent: 10 December 2003 20:52 > > > To: Access Developers discussion and problem solving > > > Subject: RE: [AccessD] matching field error > > > > > > > > > The point is that if you don't have a record in the lookup table > > > with zero as its primary key, having a default of zero will cause > > > you problems with referential integrity in place. > > > > > > Charlotte Foust > > > > > > -----Original Message----- > > > From: Pedro Janssen [mailto:pedro at plex.nl] > > > Sent: Wednesday, December 10, 2003 11:30 AM > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] matching field error > > > > > > > > > The default value is zero, so this isn't the problem. Thanks for > > > thinking with me. > > > > > > Anyone else some ideas. > > > > > > Pedro > > > > > > > > > ----- Original Message ----- > > > From: "Charlotte Foust" > > > To: "Access Developers discussion and problem solving" > > > > > > Sent: Wednesday, December 10, 2003 5:51 PM > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > Unless it is specifically set to null, a numeric field > usually has > > > > a default value of zero. If you're dealing with numeric keys, > > > > this might be tripping you up. > > > > > > > > Charlotte Foust > > > > > > > > -----Original Message----- > > > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > > > Sent: Wednesday, December 10, 2003 3:33 AM > > > > To: AccessD at databaseadvisors.com > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > Hello Andy, > > > > > > > > In the help function i saw what the error means. But it > > > made no sence > > > > to me. You say: "Is there any way they could have zeroes or > > > > zero-length strings rather than nulls". When a field is > > > empty i think > > > > there is nothing in it. How can it be that a field is empty > > > but a zero > > > > > > > is present?? > > > > > > > > Pedro > > > > > > > > > > > > > > > > > > > > > > > > In antwoord op: > > > > > > > > > From: "Andy Lacey" > > > > > To: "'Access Developers discussion and problem solving'" > > > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > Pedro > > > > > The implication is that the you have Relationships > defined with > > > > > referential integrity. You are saving a record with a > > > test id which > > > > > doesn't match to a key value in the tblTest table. The > > > odd thing is > > > > > that this shouldn't occur if the fields are Null. Is > > > there any way > > > > > they could have zeroes or zero-length strings rather > tha nulls, > > > > > because that would do it. > > > > > > > > > > Andy Lacey > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > -----Original Message----- > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > > Pedro Janssen > > > > > > Sent: 09 December 2003 22:41 > > > > > > To: AccessD at databaseadvisors.com > > > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > > > > > > > Hello Group, > > > > > > > > > > > > i get the following error in a form, when i close it > > > and the field > > > > > > > > > 'PrTestID' is empty: > > > > > > > > > > > > The microsoft Jet database engine cannot find a record in > > > > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > > > > > > > How is this possible, because the field isn't required? > > > Al the ID > > > > > > fields in the form give the same error when they are empty > > > > > > (and all aren't reqiured). > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Fri Dec 12 04:46:18 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 10:46:18 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212104616.6C9BA24F0D6@smithers.nildram.co.uk> Morning everyone. Poets day is with us again but in the meantime I'm looking for bright ideas here. I have a biiiiig system here. I mention that it's big because any solution to this cannot involve changing every screen, report and query that's affected - far too much work. And the challenge is this: the users want/need to put selected parts of the system in front of customers. When they do so, however they do not want to show the names of other customers. So, for example, if they pull down a combo to select a customer they don't want to suddenly show that the customer's main competitor is also a customer. If they print a report of what the customer has received in the past 12 months they don't want to accidentally request All Customers and be embarrassed like that. In other words, in that situation, the system needs to be cast-iron certain to only ever show the details of one customer, or at least a controlled sub-set (may be more than one as the customer may belong to a group). So my idea was that before the meeting one could run a process which would extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB. Not all tables would be affected. Look-up tables, for example, would still point to the live MDB. But there would be quite a few involved because I'd need the customer table plus all related ones. This approach sounds ok, and an appropriate set of queries wouild soon do it, but it has its hassles, such as changes to the table structures which would require me to either keep the copy MDB up-to-date as well as the live one OR to create the copy one from scratch each time - but then I've also got to create indexes and relationships too and that's quite a job. Another idea I had, but I have to reject, was to rename the linked table (ie give it a different alias) then create a query with the same name as the table which filters the customers. All queries, screens and reports would then see that. But that's out because I use SEEKs on the customer table to access records quickly, and I can't SEEK on a query. So, has anyone got a better idea? Or a simple way of resolving the issue of changes in the table structures (can you somehow clone a set of tables complete with all indexes and relationships)? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From gustav at cactus.dk Fri Dec 12 05:03:06 2003 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Dec 2003 12:03:06 +0100 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212104616.6C9BA24F0D6@smithers.nildram.co.uk> References: <20031212104616.6C9BA24F0D6@smithers.nildram.co.uk> Message-ID: <12010993718.20031212120306@cactus.dk> Hi Andy We have the same need. As it is close to impossible to create and maintain a set of demo-data that mimics real life, we pick a copy of a relevant client's data and "anonymise" these by renaming all customers and other identifiable data (like employees' names and project names) to fantasy names. /gustav > Morning everyone. Poets day is with us again but in the meantime I'm looking > for bright ideas here. > I have a biiiiig system here. I mention that it's big because any solution > to this cannot involve changing every screen, report and query that's > affected - far too much work. And the challenge is this: the users want/need > to put selected parts of the system in front of customers. When they do so, > however they do not want to show the names of other customers. So, for > example, if they pull down a combo to select a customer they don't want to > suddenly show that the customer's main competitor is also a customer. If > they print a report of what the customer has received in the past 12 months > they don't want to accidentally request All Customers and be embarrassed > like that. In other words, in that situation, the system needs to be > cast-iron certain to only ever show the details of one customer, or at least > a controlled sub-set (may be more than one as the customer may belong to a > group). > So my idea was that before the meeting one could run a process which would > extract all data for the required customer(s) into an identical set of > tables in another MDB then relink to that MDB. Not all tables would be > affected. Look-up tables, for example, would still point to the live MDB. > But there would be quite a few involved because I'd need the customer table > plus all related ones. This approach sounds ok, and an appropriate set of > queries wouild soon do it, but it has its hassles, such as changes to the > table structures which would require me to either keep the copy MDB > up-to-date as well as the live one OR to create the copy one from scratch > each time - but then I've also got to create indexes and relationships too > and that's quite a job. > Another idea I had, but I have to reject, was to rename the linked table (ie > give it a different alias) then create a query with the same name as the > table which filters the customers. All queries, screens and reports would > then see that. But that's out because I use SEEKs on the customer table to > access records quickly, and I can't SEEK on a query. > So, has anyone got a better idea? Or a simple way of resolving the issue of > changes in the table structures (can you somehow clone a set of tables > complete with all indexes and relationships)? From mwp.reid at qub.ac.uk Fri Dec 12 05:08:55 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 12 Dec 2003 11:08:55 -0000 Subject: [AccessD] Sort of like a filter only not References: <20031212104616.6C9BA24F0D6@smithers.nildram.co.uk> <12010993718.20031212120306@cactus.dk> Message-ID: <010201c3c0a0$553ff0e0$9111758f@aine> Andy You need to show the real customer data to the specific customer while hiding all other data that is in the system for other customers? Martin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, December 12, 2003 11:03 AM Subject: Re: [AccessD] Sort of like a filter only not > Hi Andy > > We have the same need. As it is close to impossible to create and > maintain a set of demo-data that mimics real life, we pick a copy of a > relevant client's data and "anonymise" these by renaming all customers > and other identifiable data (like employees' names and project names) > to fantasy names. > > /gustav > > > > Morning everyone. Poets day is with us again but in the meantime I'm looking > > for bright ideas here. > > > I have a biiiiig system here. I mention that it's big because any solution > > to this cannot involve changing every screen, report and query that's > > affected - far too much work. And the challenge is this: the users want/need > > to put selected parts of the system in front of customers. When they do so, > > however they do not want to show the names of other customers. So, for > > example, if they pull down a combo to select a customer they don't want to > > suddenly show that the customer's main competitor is also a customer. If > > they print a report of what the customer has received in the past 12 months > > they don't want to accidentally request All Customers and be embarrassed > > like that. In other words, in that situation, the system needs to be > > cast-iron certain to only ever show the details of one customer, or at least > > a controlled sub-set (may be more than one as the customer may belong to a > > group). > > > So my idea was that before the meeting one could run a process which would > > extract all data for the required customer(s) into an identical set of > > tables in another MDB then relink to that MDB. Not all tables would be > > affected. Look-up tables, for example, would still point to the live MDB. > > But there would be quite a few involved because I'd need the customer table > > plus all related ones. This approach sounds ok, and an appropriate set of > > queries wouild soon do it, but it has its hassles, such as changes to the > > table structures which would require me to either keep the copy MDB > > up-to-date as well as the live one OR to create the copy one from scratch > > each time - but then I've also got to create indexes and relationships too > > and that's quite a job. > > > Another idea I had, but I have to reject, was to rename the linked table (ie > > give it a different alias) then create a query with the same name as the > > table which filters the customers. All queries, screens and reports would > > then see that. But that's out because I use SEEKs on the customer table to > > access records quickly, and I can't SEEK on a query. > > > So, has anyone got a better idea? Or a simple way of resolving the issue of > > changes in the table structures (can you somehow clone a set of tables > > complete with all indexes and relationships)? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From pedro at plex.nl Fri Dec 12 12:20:09 2003 From: pedro at plex.nl (pedro at plex.nl) Date: Fri, 12 Dec 2003 12:20:09 (MET) Subject: [AccessD] matching field error Message-ID: <200312121120.hBCBK9NA013727@mailhostC.plex.net> Sorry i mistyped: The default is Null (empty). With 0, zero, null it seems to be that i sometimes type something different as a think. Sorry for this. Any new ideas? Pedro In antwoord op: > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > Date: Fri, 12 Dec 2003 07:34:29 -0000 > Subject: RE: [AccessD] matching field error > > > Actually Pedro you said the default is zero (see your previous post below) , > so we thought that was it. > > Andy Lacey > http://www.minstersystems.co.uk > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Pedro Janssen > > Sent: 11 December 2003 21:56 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] matching field error > > > > > > Hello Andy and Charlotte, > > > > i explained before that the default value pro[perty of > > PrTestID is empty (no > > value) so this can't be the problem. > > > > Pedro > > > > > > ----- Original Message ----- > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Wednesday, December 10, 2003 10:51 PM > > Subject: RE: [AccessD] matching field error > > > > > > > Well thought Charlotte, that sounds like the issue. Pedro, > > change the > > > properties of PrTestiD by removing its default value and > > see if that > > > cures it. > > > > > > Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of Charlotte > > > > Foust > > > > Sent: 10 December 2003 20:52 > > > > To: Access Developers discussion and problem solving > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > The point is that if you don't have a record in the lookup table > > > > with zero as its primary key, having a default of zero will cause > > > > you problems with referential integrity in place. > > > > > > > > Charlotte Foust > > > > > > > > -----Original Message----- > > > > From: Pedro Janssen [mailto:pedro at plex.nl] > > > > Sent: Wednesday, December 10, 2003 11:30 AM > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] matching field error > > > > > > > > > > > > The default value is zero, so this isn't the problem. Thanks for > > > > thinking with me. > > > > > > > > Anyone else some ideas. > > > > > > > > Pedro > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Charlotte Foust" > > > > To: "Access Developers discussion and problem solving" > > > > > > > > Sent: Wednesday, December 10, 2003 5:51 PM > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > Unless it is specifically set to null, a numeric field > > usually has > > > > > a default value of zero. If you're dealing with numeric keys, > > > > > this might be tripping you up. > > > > > > > > > > Charlotte Foust > > > > > > > > > > -----Original Message----- > > > > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > > > > Sent: Wednesday, December 10, 2003 3:33 AM > > > > > To: AccessD at databaseadvisors.com > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > Hello Andy, > > > > > > > > > > In the help function i saw what the error means. But it > > > > made no sence > > > > > to me. You say: "Is there any way they could have zeroes or > > > > > zero-length strings rather than nulls". When a field is > > > > empty i think > > > > > there is nothing in it. How can it be that a field is empty > > > > but a zero > > > > > > > > > is present?? > > > > > > > > > > Pedro > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In antwoord op: > > > > > > > > > > > From: "Andy Lacey" > > > > > > To: "'Access Developers discussion and problem solving'" > > > > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > > > > Pedro > > > > > > The implication is that the you have Relationships > > defined with > > > > > > referential integrity. You are saving a record with a > > > > test id which > > > > > > doesn't match to a key value in the tblTest table. The > > > > odd thing is > > > > > > that this shouldn't occur if the fields are Null. Is > > > > there any way > > > > > > they could have zeroes or zero-length strings rather > > tha nulls, > > > > > > because that would do it. > > > > > > > > > > > > Andy Lacey > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > > > Pedro Janssen > > > > > > > Sent: 09 December 2003 22:41 > > > > > > > To: AccessD at databaseadvisors.com > > > > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > > > > > > > > > > Hello Group, > > > > > > > > > > > > > > i get the following error in a form, when i close it > > > > and the field > > > > > > > > > > > 'PrTestID' is empty: > > > > > > > > > > > > > > The microsoft Jet database engine cannot find a record in > > > > > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > > > > > > > > > > How is this possible, because the field isn't required? > > > > Al the ID > > > > > > > fields in the form give the same error when they are empty > > > > > > > (and all aren't reqiured). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Fri Dec 12 05:15:59 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 11:15:59 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212111556.E438024D519@smithers.nildram.co.uk> Now there's a thought. Thank you Gustav, I hadn't even considered that, and now will. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Sort of like a filter only not Date: 12/12/03 10:05 Hi Andy We have the same need. As it is close to impossible to create and maintain a set of demo-data that mimics real life, we pick a copy of a relevant client's data and "anonymise" these by renaming all customers and other identifiable data (like employees' names and project names) to fantasy names. /gustav > Morning everyone. Poets day is with us again but in the meantime I'm looking > for bright ideas here. > I have a biiiiig system here. I mention that it's big because any solution > to this cannot involve changing every screen, report and query that's > affected - far too much work. And the challenge is this: the users want/need > to put selected parts of the system in front of customers. When they do so, > however they do not want to show the names of other customers. So, for > example, if they pull down a combo to select a customer they don't want to > suddenly show that the customer's main competitor is also a customer. If > they print a report of what the customer has received in the past 12 months > they don't want to accidentally request All Customers and be embarrassed > like that. In other words, in that situation, the system needs to be > cast-iron certain to only ever show the details of one customer, or at least > a controlled sub-set (may be more than one as the customer may belong to a > group). > So my idea was that before the meeting one could run a process which would > extract all data for the required customer(s) into an identical set of > tables in another MDB then relink to that MDB. Not all tables would be > affected. Look-up tables, for example, would still point to the live MDB. > But there would be quite a few involved because I'd need the customer table > plus all related ones. This approach sounds ok, and an appropriate set of > queries wouild soon do it, but it has its hassles, such as changes to the > table structures which would require me to either keep the copy MDB > up-to-date as well as the live one OR to create the copy one from scratch > each time - but then I've also got to create indexes and relationships too > and that's quite a job. > Another idea I had, but I have to reject, was to rename the linked table (ie > give it a different alias) then create a query with the same name as the > table which filters the customers. All queries, screens and reports would > then see that. But that's out because I use SEEKs on the customer table to > access records quickly, and I can't SEEK on a query. > So, has anyone got a better idea? Or a simple way of resolving the issue of > changes in the table structures (can you somehow clone a set of tables > complete with all indexes and relationships)? _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Fri Dec 12 05:27:06 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 11:27:06 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212112704.991E2250A23@smithers.nildram.co.uk> Exactly. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Sort of like a filter only not Date: 12/12/03 11:11 Andy You need to show the real customer data to the specific customer while hiding all other data that is in the system for other customers? Martin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, December 12, 2003 11:03 AM Subject: Re: [AccessD] Sort of like a filter only not > Hi Andy > > We have the same need. As it is close to impossible to create and > maintain a set of demo-data that mimics real life, we pick a copy of a > relevant client's data and "anonymise" these by renaming all customers > and other identifiable data (like employees' names and project names) > to fantasy names. > > /gustav > > > > Morning everyone. Poets day is with us again but in the meantime I'm looking > > for bright ideas here. > > > I have a biiiiig system here. I mention that it's big because any solution > > to this cannot involve changing every screen, report and query that's > > affected - far too much work. And the challenge is this: the users want/need > > to put selected parts of the system in front of customers. When they do so, > > however they do not want to show the names of other customers. So, for > > example, if they pull down a combo to select a customer they don't want to > > suddenly show that the customer's main competitor is also a customer. If > > they print a report of what the customer has received in the past 12 months > > they don't want to accidentally request All Customers and be embarrassed > > like that. In other words, in that situation, the system needs to be > > cast-iron certain to only ever show the details of one customer, or at least > > a controlled sub-set (may be more than one as the customer may belong to a > > group). > > > So my idea was that before the meeting one could run a process which would > > extract all data for the required customer(s) into an identical set of > > tables in another MDB then relink to that MDB. Not all tables would be > > affected. Look-up tables, for example, would still point to the live MDB. > > But there would be quite a few involved because I'd need the customer table > > plus all related ones. This approach sounds ok, and an appropriate set of > > queries wouild soon do it, but it has its hassles, such as changes to the > > table structures which would require me to either keep the copy MDB > > up-to-date as well as the live one OR to create the copy one from scratch > > each time - but then I've also got to create indexes and relationships too > > and that's quite a job. > > > Another idea I had, but I have to reject, was to rename the linked table (ie > > give it a different alias) then create a query with the same name as the > > table which filters the customers. All queries, screens and reports would > > then see that. But that's out because I use SEEKs on the customer table to > > access records quickly, and I can't SEEK on a query. > > > So, has anyone got a better idea? Or a simple way of resolving the issue of > > changes in the table structures (can you somehow clone a set of tables > > complete with all indexes and relationships)? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Fri Dec 12 05:31:09 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 11:31:09 +0000 Subject: [AccessD] matching field error Message-ID: <20031212113106.E0FF3250D59@smithers.nildram.co.uk> No not really I'm afraid. Anyone else? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "AccessD at databaseadvisors.com" Subject: RE: [AccessD] matching field error Date: 12/12/03 11:23 Sorry i mistyped: The default is Null (empty). With 0, zero, null it seems to be that i sometimes type something different as a think. Sorry for this. Any new ideas? Pedro In antwoord op: > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > Date: Fri, 12 Dec 2003 07:34:29 -0000 > Subject: RE: [AccessD] matching field error > > > Actually Pedro you said the default is zero (see your previous post below) , > so we thought that was it. > > Andy Lacey > http://www.minstersystems.co.uk > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Pedro Janssen > > Sent: 11 December 2003 21:56 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] matching field error > > > > > > Hello Andy and Charlotte, > > > > i explained before that the default value pro[perty of > > PrTestID is empty (no > > value) so this can't be the problem. > > > > Pedro > > > > > > ----- Original Message ----- > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Wednesday, December 10, 2003 10:51 PM > > Subject: RE: [AccessD] matching field error > > > > > > > Well thought Charlotte, that sounds like the issue. Pedro, > > change the > > > properties of PrTestiD by removing its default value and > > see if that > > > cures it. > > > > > > Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of Charlotte > > > > Foust > > > > Sent: 10 December 2003 20:52 > > > > To: Access Developers discussion and problem solving > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > The point is that if you don't have a record in the lookup table > > > > with zero as its primary key, having a default of zero will cause > > > > you problems with referential integrity in place. > > > > > > > > Charlotte Foust > > > > > > > > -----Original Message----- > > > > From: Pedro Janssen [mailto:pedro at plex.nl] > > > > Sent: Wednesday, December 10, 2003 11:30 AM > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] matching field error > > > > > > > > > > > > The default value is zero, so this isn't the problem. Thanks for > > > > thinking with me. > > > > > > > > Anyone else some ideas. > > > > > > > > Pedro > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Charlotte Foust" > > > > To: "Access Developers discussion and problem solving" > > > > > > > > Sent: Wednesday, December 10, 2003 5:51 PM > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > Unless it is specifically set to null, a numeric field > > usually has > > > > > a default value of zero. If you're dealing with numeric keys, > > > > > this might be tripping you up. > > > > > > > > > > Charlotte Foust > > > > > > > > > > -----Original Message----- > > > > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > > > > Sent: Wednesday, December 10, 2003 3:33 AM > > > > > To: AccessD at databaseadvisors.com > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > Hello Andy, > > > > > > > > > > In the help function i saw what the error means. But it > > > > made no sence > > > > > to me. You say: "Is there any way they could have zeroes or > > > > > zero-length strings rather than nulls". When a field is > > > > empty i think > > > > > there is nothing in it. How can it be that a field is empty > > > > but a zero > > > > > > > > > is present?? > > > > > > > > > > Pedro > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In antwoord op: > > > > > > > > > > > From: "Andy Lacey" > > > > > > To: "'Access Developers discussion and problem solving'" > > > > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > > > > Pedro > > > > > > The implication is that the you have Relationships > > defined with > > > > > > referential integrity. You are saving a record with a > > > > test id which > > > > > > doesn't match to a key value in the tblTest table. The > > > > odd thing is > > > > > > that this shouldn't occur if the fields are Null. Is > > > > there any way > > > > > > they could have zeroes or zero-length strings rather > > tha nulls, > > > > > > because that would do it. > > > > > > > > > > > > Andy Lacey > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > > > Pedro Janssen > > > > > > > Sent: 09 December 2003 22:41 > > > > > > > To: AccessD at databaseadvisors.com > > > > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > > > > > > > > > > Hello Group, > > > > > > > > > > > > > > i get the following error in a form, when i close it > > > > and the field > > > > > > > > > > > 'PrTestID' is empty: > > > > > > > > > > > > > > The microsoft Jet database engine cannot find a record in > > > > > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > > > > > > > > > > How is this possible, because the field isn't required? > > > > Al the ID > > > > > > > fields in the form give the same error when they are empty > > > > > > > (and all aren't reqiured). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From Alun.Garraway at otto.de Fri Dec 12 07:30:33 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Fri, 12 Dec 2003 14:30:33 +0100 Subject: AW: [AccessD] Export to multiple Excel sheets Message-ID: hi Gina, do you have a solution for your problem? alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gina Hoopes Gesendet: Mittwoch, 10. Dezember 2003 20:35 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at karta.com Fri Dec 12 07:51:29 2003 From: JHewson at karta.com (Jim Hewson) Date: Fri, 12 Dec 2003 07:51:29 -0600 Subject: [AccessD] Sort of like a filter only not Message-ID: <4AE733BBEEE72647A9F950F7275F262E11263B@nt04.karta.com> May I suggest a filter form? When the user (an employee) accesses the database through the form, only the customers data is shown. If the user accesses the data through any other means all the customers data is available. A few changes to the queries should do the trick. HTH Jim -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Friday, December 12, 2003 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sort of like a filter only not Exactly. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Sort of like a filter only not Date: 12/12/03 11:11 Andy You need to show the real customer data to the specific customer while hiding all other data that is in the system for other customers? Martin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, December 12, 2003 11:03 AM Subject: Re: [AccessD] Sort of like a filter only not > Hi Andy > > We have the same need. As it is close to impossible to create and > maintain a set of demo-data that mimics real life, we pick a copy of a > relevant client's data and "anonymise" these by renaming all customers > and other identifiable data (like employees' names and project names) > to fantasy names. > > /gustav > > > > Morning everyone. Poets day is with us again but in the meantime I'm looking > > for bright ideas here. > > > I have a biiiiig system here. I mention that it's big because any solution > > to this cannot involve changing every screen, report and query that's > > affected - far too much work. And the challenge is this: the users want/need > > to put selected parts of the system in front of customers. When they do so, > > however they do not want to show the names of other customers. So, for > > example, if they pull down a combo to select a customer they don't want to > > suddenly show that the customer's main competitor is also a customer. If > > they print a report of what the customer has received in the past 12 months > > they don't want to accidentally request All Customers and be embarrassed > > like that. In other words, in that situation, the system needs to be > > cast-iron certain to only ever show the details of one customer, or at least > > a controlled sub-set (may be more than one as the customer may belong to a > > group). > > > So my idea was that before the meeting one could run a process which would > > extract all data for the required customer(s) into an identical set of > > tables in another MDB then relink to that MDB. Not all tables would be > > affected. Look-up tables, for example, would still point to the live MDB. > > But there would be quite a few involved because I'd need the customer table > > plus all related ones. This approach sounds ok, and an appropriate set of > > queries wouild soon do it, but it has its hassles, such as changes to the > > table structures which would require me to either keep the copy MDB > > up-to-date as well as the live one OR to create the copy one from scratch > > each time - but then I've also got to create indexes and relationships too > > and that's quite a job. > > > Another idea I had, but I have to reject, was to rename the linked table (ie > > give it a different alias) then create a query with the same name as the > > table which filters the customers. All queries, screens and reports would > > then see that. But that's out because I use SEEKs on the customer table to > > access records quickly, and I can't SEEK on a query. > > > So, has anyone got a better idea? Or a simple way of resolving the issue of > > changes in the table structures (can you somehow clone a set of tables > > complete with all indexes and relationships)? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Dec 12 08:01:40 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 12 Dec 2003 09:01:40 -0500 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212104616.6C9BA24F0D6@smithers.nildram.co.uk> Message-ID: Andy, Partial replication. Each customer would have a replicated MDB with only their data. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 5:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Sort of like a filter only not Morning everyone. Poets day is with us again but in the meantime I'm looking for bright ideas here. I have a biiiiig system here. I mention that it's big because any solution to this cannot involve changing every screen, report and query that's affected - far too much work. And the challenge is this: the users want/need to put selected parts of the system in front of customers. When they do so, however they do not want to show the names of other customers. So, for example, if they pull down a combo to select a customer they don't want to suddenly show that the customer's main competitor is also a customer. If they print a report of what the customer has received in the past 12 months they don't want to accidentally request All Customers and be embarrassed like that. In other words, in that situation, the system needs to be cast-iron certain to only ever show the details of one customer, or at least a controlled sub-set (may be more than one as the customer may belong to a group). So my idea was that before the meeting one could run a process which would extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB. Not all tables would be affected. Look-up tables, for example, would still point to the live MDB. But there would be quite a few involved because I'd need the customer table plus all related ones. This approach sounds ok, and an appropriate set of queries wouild soon do it, but it has its hassles, such as changes to the table structures which would require me to either keep the copy MDB up-to-date as well as the live one OR to create the copy one from scratch each time - but then I've also got to create indexes and relationships too and that's quite a job. Another idea I had, but I have to reject, was to rename the linked table (ie give it a different alias) then create a query with the same name as the table which filters the customers. All queries, screens and reports would then see that. But that's out because I use SEEKs on the customer table to access records quickly, and I can't SEEK on a query. So, has anyone got a better idea? Or a simple way of resolving the issue of changes in the table structures (can you somehow clone a set of tables complete with all indexes and relationships)? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Dec 12 08:03:54 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 14:03:54 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212140351.18E7A24F323@smithers.nildram.co.uk> Thanks for the response Jim but as I said at the start that's just not practical. The system has far too many screens, reports, queries to even contemplate putting filters into them all. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Sort of like a filter only not Date: 12/12/03 19:53 May I suggest a filter form? When the user (an employee) accesses the database through the form, only the customers data is shown. If the user accesses the data through any other means all the customers data is available. A few changes to the queries should do the trick. HTH Jim -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Friday, December 12, 2003 5:27 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sort of like a filter only not Exactly. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Sort of like a filter only not Date: 12/12/03 11:11 Andy You need to show the real customer data to the specific customer while hiding all other data that is in the system for other customers? Martin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, December 12, 2003 11:03 AM Subject: Re: [AccessD] Sort of like a filter only not > Hi Andy > > We have the same need. As it is close to impossible to create and > maintain a set of demo-data that mimics real life, we pick a copy of a > relevant client's data and "anonymise" these by renaming all customers > and other identifiable data (like employees' names and project names) > to fantasy names. > > /gustav > > > > Morning everyone. Poets day is with us again but in the meantime I'm looking > > for bright ideas here. > > > I have a biiiiig system here. I mention that it's big because any solution > > to this cannot involve changing every screen, report and query that's > > affected - far too much work. And the challenge is this: the users want/need > > to put selected parts of the system in front of customers. When they do so, > > however they do not want to show the names of other customers. So, for > > example, if they pull down a combo to select a customer they don't want to > > suddenly show that the customer's main competitor is also a customer. If > > they print a report of what the customer has received in the past 12 months > > they don't want to accidentally request All Customers and be embarrassed > > like that. In other words, in that situation, the system needs to be > > cast-iron certain to only ever show the details of one customer, or at least > > a controlled sub-set (may be more than one as the customer may belong to a > > group). > > > So my idea was that before the meeting one could run a process which would > > extract all data for the required customer(s) into an identical set of > > tables in another MDB then relink to that MDB. Not all tables would be > > affected. Look-up tables, for example, would still point to the live MDB. > > But there would be quite a few involved because I'd need the customer table > > plus all related ones. This approach sounds ok, and an appropriate set of > > queries wouild soon do it, but it has its hassles, such as changes to the > > table structures which would require me to either keep the copy MDB > > up-to-date as well as the live one OR to create the copy one from scratch > > each time - but then I've also got to create indexes and relationships too > > and that's quite a job. > > > Another idea I had, but I have to reject, was to rename the linked table (ie > > give it a different alias) then create a query with the same name as the > > table which filters the customers. All queries, screens and reports would > > then see that. But that's out because I use SEEKs on the customer table to > > access records quickly, and I can't SEEK on a query. > > > So, has anyone got a better idea? Or a simple way of resolving the issue of > > changes in the table structures (can you somehow clone a set of tables > > complete with all indexes and relationships)? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From hoopesg at hotmail.com Fri Dec 12 08:16:03 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Fri, 12 Dec 2003 08:16:03 -0600 Subject: AW: [AccessD] Export to multiple Excel sheets Message-ID: No, not yet. Have you got an idea? Thanks, Gina From: "Garraway, Alun" Reply-To: Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" Subject: AW: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:30:33 +0100 hi Gina, do you have a solution for your problem? alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gina Hoopes Gesendet: Mittwoch, 10. Dezember 2003 20:35 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Cell phone ?switch? rules are taking effect ? find out more here. http://special.msn.com/msnbc/consumeradvocate.armx From andy at minstersystems.co.uk Fri Dec 12 08:28:02 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 14:28:02 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212142759.5CD7124EED9@smithers.nildram.co.uk> Sorry, reading my original again I may have misled you Jim. We're not talking about a situation where a customer permanently has a system with their data on it. We're talking about situations such as customer A coming to these premises for a meeting for a day and my client wanting to be able to show them the system on-screen but limited only to their data, OR a sales person going travelling with a laptop onto which we have downloaded the system (this we do already - for enquiry purposes only) and having meetings with several customers over several days. So we need to be able, fairly quickly, to say "I'm going into a meeting with X so make the system show only X and Y's data (where Y is X's sister company)". -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Sort of like a filter only not Date: 12/12/03 19:03 Andy, Partial replication. Each customer would have a replicated MDB with only their data. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 5:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Sort of like a filter only not Morning everyone. Poets day is with us again but in the meantime I'm looking for bright ideas here. I have a biiiiig system here. I mention that it's big because any solution to this cannot involve changing every screen, report and query that's affected - far too much work. And the challenge is this: the users want/need to put selected parts of the system in front of customers. When they do so, however they do not want to show the names of other customers. So, for example, if they pull down a combo to select a customer they don't want to suddenly show that the customer's main competitor is also a customer. If they print a report of what the customer has received in the past 12 months they don't want to accidentally request All Customers and be embarrassed like that. In other words, in that situation, the system needs to be cast-iron certain to only ever show the details of one customer, or at least a controlled sub-set (may be more than one as the customer may belong to a group). So my idea was that before the meeting one could run a process which would extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB. Not all tables would be affected. Look-up tables, for example, would still point to the live MDB. But there would be quite a few involved because I'd need the customer table plus all related ones. This approach sounds ok, and an appropriate set of queries wouild soon do it, but it has its hassles, such as changes to the table structures which would require me to either keep the copy MDB up-to-date as well as the live one OR to create the copy one from scratch each time - but then I've also got to create indexes and relationships too and that's quite a job. Another idea I had, but I have to reject, was to rename the linked table (ie give it a different alias) then create a query with the same name as the table which filters the customers. All queries, screens and reports would then see that. But that's out because I use SEEKs on the customer table to access records quickly, and I can't SEEK on a query. So, has anyone got a better idea? Or a simple way of resolving the issue of changes in the table structures (can you somehow clone a set of tables complete with all indexes and relationships)? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From jimdettman at earthlink.net Fri Dec 12 08:36:43 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 12 Dec 2003 09:36:43 -0500 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212142759.5CD7124EED9@smithers.nildram.co.uk> Message-ID: Andy, <> Right. You also said: <> A good way to do that would be partial replication. You could even hand them the database to walk away with and never fear that their going to see another customers data. As you said, the system is far to extensive to go back and put filters into. Therefore the only thing you can do is manipulate the data. You your self said: "extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB." That first part is almost a definition for partial replication. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 9:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sort of like a filter only not Sorry, reading my original again I may have misled you Jim. We're not talking about a situation where a customer permanently has a system with their data on it. We're talking about situations such as customer A coming to these premises for a meeting for a day and my client wanting to be able to show them the system on-screen but limited only to their data, OR a sales person going travelling with a laptop onto which we have downloaded the system (this we do already - for enquiry purposes only) and having meetings with several customers over several days. So we need to be able, fairly quickly, to say "I'm going into a meeting with X so make the system show only X and Y's data (where Y is X's sister company)". -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Sort of like a filter only not Date: 12/12/03 19:03 Andy, Partial replication. Each customer would have a replicated MDB with only their data. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 5:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Sort of like a filter only not Morning everyone. Poets day is with us again but in the meantime I'm looking for bright ideas here. I have a biiiiig system here. I mention that it's big because any solution to this cannot involve changing every screen, report and query that's affected - far too much work. And the challenge is this: the users want/need to put selected parts of the system in front of customers. When they do so, however they do not want to show the names of other customers. So, for example, if they pull down a combo to select a customer they don't want to suddenly show that the customer's main competitor is also a customer. If they print a report of what the customer has received in the past 12 months they don't want to accidentally request All Customers and be embarrassed like that. In other words, in that situation, the system needs to be cast-iron certain to only ever show the details of one customer, or at least a controlled sub-set (may be more than one as the customer may belong to a group). So my idea was that before the meeting one could run a process which would extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB. Not all tables would be affected. Look-up tables, for example, would still point to the live MDB. But there would be quite a few involved because I'd need the customer table plus all related ones. This approach sounds ok, and an appropriate set of queries wouild soon do it, but it has its hassles, such as changes to the table structures which would require me to either keep the copy MDB up-to-date as well as the live one OR to create the copy one from scratch each time - but then I've also got to create indexes and relationships too and that's quite a job. Another idea I had, but I have to reject, was to rename the linked table (ie give it a different alias) then create a query with the same name as the table which filters the customers. All queries, screens and reports would then see that. But that's out because I use SEEKs on the customer table to access records quickly, and I can't SEEK on a query. So, has anyone got a better idea? Or a simple way of resolving the issue of changes in the table structures (can you somehow clone a set of tables complete with all indexes and relationships)? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Dec 12 08:38:14 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 12 Dec 2003 14:38:14 -0000 Subject: [AccessD] Sort of like a filter only not References: <20031212142759.5CD7124EED9@smithers.nildram.co.uk> Message-ID: <020301c3c0bd$93577480$9111758f@aine> If the data only has to be for a client at that specific time or for a sales meeting then it would be fairly simple to repopulate a duplicate DB with data for that client. Simple but time consuming. This seems to be one of those things that would need to be coded in from day one. Think I would go with your first idea and just bite the bullet instead of recoding the database. Martin ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Friday, December 12, 2003 2:28 PM Subject: RE: [AccessD] Sort of like a filter only not > Sorry, reading my original again I may have misled you Jim. We're not > talking about a situation where a customer permanently has a system with > their data on it. We're talking about situations such as customer A coming > to these premises for a meeting for a day and my client wanting to be able > to show them the system on-screen but limited only to their data, OR a sales > person going travelling with a laptop onto which we have downloaded the > system (this we do already - for enquiry purposes only) and having meetings > with several customers over several days. So we need to be able, fairly > quickly, to say "I'm going into a meeting with X so make the system show > only X and Y's data (where Y is X's sister company)". > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: RE: [AccessD] Sort of like a filter only not > Date: 12/12/03 19:03 > > > Andy, > > Partial replication. Each customer would have a replicated MDB with only > their data. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey > Sent: Friday, December 12, 2003 5:46 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Sort of like a filter only not > > > Morning everyone. Poets day is with us again but in the meantime I'm looking > for bright ideas here. > > I have a biiiiig system here. I mention that it's big because any solution > to this cannot involve changing every screen, report and query that's > affected - far too much work. And the challenge is this: the users want/need > to put selected parts of the system in front of customers. When they do so, > however they do not want to show the names of other customers. So, for > example, if they pull down a combo to select a customer they don't want to > suddenly show that the customer's main competitor is also a customer. If > they print a report of what the customer has received in the past 12 months > they don't want to accidentally request All Customers and be embarrassed > like that. In other words, in that situation, the system needs to be > cast-iron certain to only ever show the details of one customer, or at least > a controlled sub-set (may be more than one as the customer may belong to a > group). > > So my idea was that before the meeting one could run a process which would > extract all data for the required customer(s) into an identical set of > tables in another MDB then relink to that MDB. Not all tables would be > affected. Look-up tables, for example, would still point to the live MDB. > But there would be quite a few involved because I'd need the customer table > plus all related ones. This approach sounds ok, and an appropriate set of > queries wouild soon do it, but it has its hassles, such as changes to the > table structures which would require me to either keep the copy MDB > up-to-date as well as the live one OR to create the copy one from scratch > each time - but then I've also got to create indexes and relationships too > and that's quite a job. > > Another idea I had, but I have to reject, was to rename the linked table (ie > give it a different alias) then create a query with the same name as the > table which filters the customers. All queries, screens and reports would > then see that. But that's out because I use SEEKs on the customer table to > access records quickly, and I can't SEEK on a query. > > So, has anyone got a better idea? Or a simple way of resolving the issue of > changes in the table structures (can you somehow clone a set of tables > complete with all indexes and relationships)? > > > -- > Andy Lacey > http://www.minstersystems.co.uk > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ________________________________________________ > Message sent using UebiMiau 2.7.2 > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Fri Dec 12 08:41:49 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 14:41:49 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212144146.8617924CFD0@smithers.nildram.co.uk> Food for thought Jim certainly. To be perfectly honest I've always steered clear of replication since some early and unsuccessful forays into it so have little experience of it. I will, however, look into this, and thanks for the idea. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Sort of like a filter only not Date: 12/12/03 19:39 Andy, <> Right. You also said: <> A good way to do that would be partial replication. You could even hand them the database to walk away with and never fear that their going to see another customers data. As you said, the system is far to extensive to go back and put filters into. Therefore the only thing you can do is manipulate the data. You your self said: "extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB." That first part is almost a definition for partial replication. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 9:28 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sort of like a filter only not Sorry, reading my original again I may have misled you Jim. We're not talking about a situation where a customer permanently has a system with their data on it. We're talking about situations such as customer A coming to these premises for a meeting for a day and my client wanting to be able to show them the system on-screen but limited only to their data, OR a sales person going travelling with a laptop onto which we have downloaded the system (this we do already - for enquiry purposes only) and having meetings with several customers over several days. So we need to be able, fairly quickly, to say "I'm going into a meeting with X so make the system show only X and Y's data (where Y is X's sister company)". -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: RE: [AccessD] Sort of like a filter only not Date: 12/12/03 19:03 Andy, Partial replication. Each customer would have a replicated MDB with only their data. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 5:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Sort of like a filter only not Morning everyone. Poets day is with us again but in the meantime I'm looking for bright ideas here. I have a biiiiig system here. I mention that it's big because any solution to this cannot involve changing every screen, report and query that's affected - far too much work. And the challenge is this: the users want/need to put selected parts of the system in front of customers. When they do so, however they do not want to show the names of other customers. So, for example, if they pull down a combo to select a customer they don't want to suddenly show that the customer's main competitor is also a customer. If they print a report of what the customer has received in the past 12 months they don't want to accidentally request All Customers and be embarrassed like that. In other words, in that situation, the system needs to be cast-iron certain to only ever show the details of one customer, or at least a controlled sub-set (may be more than one as the customer may belong to a group). So my idea was that before the meeting one could run a process which would extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB. Not all tables would be affected. Look-up tables, for example, would still point to the live MDB. But there would be quite a few involved because I'd need the customer table plus all related ones. This approach sounds ok, and an appropriate set of queries wouild soon do it, but it has its hassles, such as changes to the table structures which would require me to either keep the copy MDB up-to-date as well as the live one OR to create the copy one from scratch each time - but then I've also got to create indexes and relationships too and that's quite a job. Another idea I had, but I have to reject, was to rename the linked table (ie give it a different alias) then create a query with the same name as the table which filters the customers. All queries, screens and reports would then see that. But that's out because I use SEEKs on the customer table to access records quickly, and I can't SEEK on a query. So, has anyone got a better idea? Or a simple way of resolving the issue of changes in the table structures (can you somehow clone a set of tables complete with all indexes and relationships)? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From gustav at cactus.dk Fri Dec 12 08:42:04 2003 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 12 Dec 2003 15:42:04 +0100 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212142759.5CD7124EED9@smithers.nildram.co.uk> References: <20031212142759.5CD7124EED9@smithers.nildram.co.uk> Message-ID: <13924131068.20031212154204@cactus.dk> Hi Andy Hmmm ... but why are the data initially mixed up? /gustav > Sorry, reading my original again I may have misled you Jim. We're not > talking about a situation where a customer permanently has a system with > their data on it. We're talking about situations such as customer A coming > to these premises for a meeting for a day and my client wanting to be able > to show them the system on-screen but limited only to their data, OR a sales > person going travelling with a laptop onto which we have downloaded the > system (this we do already - for enquiry purposes only) and having meetings > with several customers over several days. So we need to be able, fairly > quickly, to say "I'm going into a meeting with X so make the system show > only X and Y's data (where Y is X's sister company)". From mmmtbig at bellsouth.net Fri Dec 12 08:44:58 2003 From: mmmtbig at bellsouth.net (Myke Myers) Date: Fri, 12 Dec 2003 09:44:58 -0500 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: <001e01c3c0be$87295ce0$d401a8c0@tbig1> I am thinking of replacing my 17" CRT with two side-by-side 19" LCD monitors. Does anyone use such a setup? Can anyone recommend a brand/model for 19" LCD monitors? Myke From prosoft6 at hotmail.com Fri Dec 12 08:47:46 2003 From: prosoft6 at hotmail.com (Julie Reardon-Taylor) Date: Fri, 12 Dec 2003 09:47:46 -0500 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: Mike, I purchased "vison" from tigerdirect.com and haven't had any problems. They had a rebate at the time, so the purchase price was under $300. Julie Reardon-Taylor PRO-SOFT OF NY, INC. www.pro-soft.net _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx From Mike.W.Gowey at doc.state.or.us Fri Dec 12 08:49:31 2003 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Fri, 12 Dec 2003 07:49:31 -0700 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077801D9FE6A@srciml1.ds.doc.state.or.us> Myke, I use that set up here. It is awesome, allows a lot more work space. I am using two 19' Compaq 2025's. Excellent LCD's, very nice picture. Mike Gowey, MCSA, A+ Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: Myke Myers [mailto:mmmtbig at bellsouth.net] Sent: Friday, December 12, 2003 7:45 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: LCD Monitors for Development I am thinking of replacing my 17" CRT with two side-by-side 19" LCD monitors. Does anyone use such a setup? Can anyone recommend a brand/model for 19" LCD monitors? Myke _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Developer at UltraDNT.com Fri Dec 12 08:54:06 2003 From: Developer at UltraDNT.com (Developer) Date: Fri, 12 Dec 2003 09:54:06 -0500 Subject: AW: [AccessD] Export to multiple Excel sheets In-Reply-To: Message-ID: <000001c3c0bf$cac26590$7001a8c0@COA3> Gina: Use Nested loops .. Iterate thru depts, then look at centers belonging to each. Some rough psuedo-code: Set rsdept = "select * from tblDept" While not rsdept.eof set rsCenter="select * from tblCenter where deptid =" & rsdept!deptid while not rsCenter.eof excel.application.worksheets.add for each fld in rscenter.fields range(i,j)=rsdept(fld.index) next fld rscenter.movenext wend Rsdept.movenext wend Hth, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gina Hoopes Sent: Friday, December 12, 2003 9:16 AM To: accessd at databaseadvisors.com Subject: RE: AW: [AccessD] Export to multiple Excel sheets No, not yet. Have you got an idea? Thanks, Gina From: "Garraway, Alun" Reply-To: Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" Subject: AW: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:30:33 +0100 hi Gina, do you have a solution for your problem? alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gina Hoopes Gesendet: Mittwoch, 10. Dezember 2003 20:35 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Cell phone ?switch? rules are taking effect ? find out more here. http://special.msn.com/msnbc/consumeradvocate.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Dec 12 08:56:09 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Dec 2003 08:56:09 -0600 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE204@TAPPEEXCH01> I have a Sampo 17" LCD along side a 17" ADI (Sony Trinitron) CRT. The difference is amazing! The LCD is much crisper with more contrast than the CRT. Also, on a LCD the viewable area is equal to the screen size, unlike my 16" viewable CRT. Of course I have to field the daily stupid questions from non-IT people, like "why do you have 2 computers?" Should I ever switch employers, I would ask about the workstation setup in the interview. I simply couldn't survive without 2 screens (unless someone gave me a 42" wraparound plasma screen). -----Original Message----- From: Myke Myers [mailto:mmmtbig at bellsouth.net] Sent: Friday, December 12, 2003 8:45 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: LCD Monitors for Development I am thinking of replacing my 17" CRT with two side-by-side 19" LCD monitors. Does anyone use such a setup? Can anyone recommend a brand/model for 19" LCD monitors? Myke _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Alun.Garraway at otto.de Fri Dec 12 09:07:46 2003 From: Alun.Garraway at otto.de (Garraway, Alun) Date: Fri, 12 Dec 2003 16:07:46 +0100 Subject: AW: AW: [AccessD] Export to multiple Excel sheets Message-ID: this is something I've been working on, might be what your looking for.... you'll need to change it for your needs of course. here's a short outline: open recordset (rst) with (in your case) center numbers start excel und create new workbook whilst looping through rst add sheets to workbook and name them after center number and set names of the colums in first row open 2nd recordset (rstData) and place data in 2nd row save workbook (workbook will be saved to default location in this case) hth & have a nice weekend :-) If you have an questions I'll be back on monday. alun Sub ExcelAuto() Dim cnn As ADODB.Connection Dim rst As ADODB.Recordset Dim strSQl As String Dim lngArtNr As Long Dim oXL As Excel.Application Dim wb As Excel.Workbook Dim ws As Excel.Worksheets Dim wsName As String Dim strSQL_Data As String Dim rstData As ADODB.Recordset Set cnn = CurrentProject.Connection Set rst = New ADODB.Recordset 'open rst with center numbers strSQl = "SELECT CENTER_NR FROM tblWithCenterNumbers ORDER BY ID;" rst.Open strSQl, cnn, adOpenForwardOnly, adLockReadOnly 'create an Excel WB Set oXL = New Excel.Application oXL.Visible = True oXL.Workbooks.Add Set wb = oXL.ActiveWorkbook Do Until rst.EOF lngArtNr = rst.Fields("ID") Debug.Print lngArtNr 'rst with data per Set rstData = New ADODB.Recordset strSQL_Data = "SELECT * FROM tblWithData WHERE ID = " & lngArtNr & ";" '!!! is your ID a string or long/int??? !!!!! rstData.Open strSQL_Data, cnn, adOpenForwardOnly, adLockReadOnly wsName = lngArtNr 'loop through centers wb.Worksheets.Add.Name = lngArtNr 'centername/number wb.Worksheets(wsName).Range("A1") = "col1" 'name cols, optional wb.Worksheets(wsName).Range("B1") = "col2" wb.Worksheets(wsName).Range("C1") = "col3" wb.Worksheets(wsName).Range("D1") = "col4" wb.Worksheets(wsName).Range("E1") = "col5" wb.Worksheets(wsName).Range("F1") = "col6" wb.Worksheets(wsName).Range("G1") = "col7" wb.Worksheets(wsName).Range("H1") = "col8" wb.Worksheets(wsName).Range("I1") = "col9" wb.Worksheets(wsName).Range("J1") = "col10" wb.Worksheets(wsName).Range("A2") = rstData.Fields("myField1") 'Fill 2nd row with data wb.Worksheets(wsName).Range("B2") = rstData.Fields("myField2") wb.Worksheets(wsName).Range("C2") = rstData.Fields("myField3") wb.Worksheets(wsName).Range("D2") = rstData.Fields("myField4") wb.Worksheets(wsName).Range("E2") = rstData.Fields("myField5") wb.Worksheets(wsName).Range("F2") = rstData.Fields("myField6") wb.Worksheets(wsName).Range("G2") = rstData.Fields("myField7") wb.Worksheets(wsName).Range("H2") = rstData.Fields("myField8") wb.Worksheets(wsName).Range("I2") = rstData.Fields("myField9") wb.Worksheets(wsName).Range("J2") = rstData.Fields("myField10") rst.MoveNext Loop 'save workbook and set objects to nothing wb.SaveAs "alun" oXL.Quit Set oXL = Nothing rst.Close Set rst = Nothing rstData.Close Set rstData = Nothing cnn.Close Set cnn = Nothing End Sub -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gina Hoopes Gesendet: Freitag, 12. Dezember 2003 15:16 An: accessd at databaseadvisors.com Betreff: RE: AW: [AccessD] Export to multiple Excel sheets No, not yet. Have you got an idea? Thanks, Gina From: "Garraway, Alun" Reply-To: Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" Subject: AW: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:30:33 +0100 hi Gina, do you have a solution for your problem? alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gina Hoopes Gesendet: Mittwoch, 10. Dezember 2003 20:35 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Cell phone 'switch' rules are taking effect - find out more here. http://special.msn.com/msnbc/consumeradvocate.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Fri Dec 12 09:16:04 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 12 Dec 2003 15:16:04 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031212151602.53AA2251BF6@smithers.nildram.co.uk> Not sure what you mean by "mixed up" Gustav. Take one of many screens. Here you can select a financial period and year; select a customer or a customer group or leave blank for all customers, hit Print and a report will show the orders for those criteria, a summary of expenditure, render it into GBP if it was export and so on. And that's just one of many, many examples. Now the pitfalls are that a) the sales person may/will drop down the combo to choose the customer, thereby showing other customers or b) may inadvertently select the wrong customer and print the report (and hand it over to his client before he realises his mistake - aargh!) or c) hit Print without selecting a customer and therefore list activity for all customers. This is the sort of thing I'm talking about. And as I stressed right from the start there are oodles of such situations in the system so attacking each one individually is not an option. At the moment I like your idea Gustav of deliberately "corrupting" the rest of the data so that it's there but unrecognisable. If I did that to selected fields (names, addresses, phone nos, email addresses and so - not too many I don't think) I think that would do nicely. I guess I could even do it by encryption so that it's reversible. That way my on-the-road salesperson could "corrupt" all but one customer, then un-corrupt all after first meeting and re-corrupt all but a second customer when they get to the next place. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Sort of like a filter only not Date: 12/12/03 13:44 Hi Andy Hmmm ... but why are the data initially mixed up? /gustav > Sorry, reading my original again I may have misled you Jim. We're not > talking about a situation where a customer permanently has a system with > their data on it. We're talking about situations such as customer A coming > to these premises for a meeting for a day and my client wanting to be able > to show them the system on-screen but limited only to their data, OR a sales > person going travelling with a laptop onto which we have downloaded the > system (this we do already - for enquiry purposes only) and having meetings > with several customers over several days. So we need to be able, fairly > quickly, to say "I'm going into a meeting with X so make the system show > only X and Y's data (where Y is X's sister company)". _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From Lambert.Heenan at AIG.com Fri Dec 12 09:18:06 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 12 Dec 2003 10:18:06 -0500 Subject: [AccessD] Access 2002 - module modified dates all changing at once. Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7B41@xlivmbx12.aig.com> x-posted to Access-D and Access-L Access 2002: I just noticed that if I make any change to any module in Access 2002 then *all* the other modules have their modified date changed as well as the one that really was changed. This is a major pain in the neck as now I have to keep a manual record of what modules I just changed in my development copy so I know what to export to the production copy. Is it just me???? ;-( Lambert From jimdettman at earthlink.net Fri Dec 12 09:40:52 2003 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 12 Dec 2003 10:40:52 -0500 Subject: [AccessD] OT: LCD Monitors for Development In-Reply-To: <001e01c3c0be$87295ce0$d401a8c0@tbig1> Message-ID: Myke, I have a 19" Dell CRT and a new 19" Dell LCD. While the Dell LCD is nice, it's not as good as it could be. I've seen other brands that look better (the dot pitch is a bit higher than it should be). As far as using two screens: wouldn't live without it. A couple of points: 1. You get a lot more area on a LCD then a CRT. CRT tubes are measured on a diagonal and the tube extends well beyond the shell, so you don't get what you think your getting. On my 19" CRT, I end up with only 17" viewable. On a LCD, what's advertised is the viewable size (19" is 19"). So you may not need as large of LCD as you think you might. 2. LCD's look good at only one specific resolution. Ever other will appear fuzzy. My Dell 19" is best at 1280 x 1024, but I need to boost the font size. Otherwise, everything is too small even on a 19". 3. Don't adjust LCD's like you would CRT's in regard to refresh rate. Most LCD's work better at a *lower* rate then a higher one. Let the graphics card decide what's best for a given resolution (most have an auto adjust type feature or optimal setting). Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Myke Myers Sent: Friday, December 12, 2003 9:45 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: LCD Monitors for Development I am thinking of replacing my 17" CRT with two side-by-side 19" LCD monitors. Does anyone use such a setup? Can anyone recommend a brand/model for 19" LCD monitors? Myke _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Dec 12 09:49:12 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Dec 2003 09:49:12 -0600 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE205@TAPPEEXCH01> >2. LCD's look good at only one specific resolution. Ever other will appear >fuzzy. My Dell 19" is best at 1280 x 1024, but I need to boost the font >size. Otherwise, everything is too small even on a 19". This varies somewhat from monitor to monitor. My old 15" LCD looked awful with any resolution below 1024x768. My laptop is the same way. This one (which is a fairly cheap model) handles all of the sizes nicely. -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Friday, December 12, 2003 9:41 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: LCD Monitors for Development Myke, I have a 19" Dell CRT and a new 19" Dell LCD. While the Dell LCD is nice, it's not as good as it could be. I've seen other brands that look better (the dot pitch is a bit higher than it should be). As far as using two screens: wouldn't live without it. A couple of points: 1. You get a lot more area on a LCD then a CRT. CRT tubes are measured on a diagonal and the tube extends well beyond the shell, so you don't get what you think your getting. On my 19" CRT, I end up with only 17" viewable. On a LCD, what's advertised is the viewable size (19" is 19"). So you may not need as large of LCD as you think you might. 2. LCD's look good at only one specific resolution. Ever other will appear fuzzy. My Dell 19" is best at 1280 x 1024, but I need to boost the font size. Otherwise, everything is too small even on a 19". 3. Don't adjust LCD's like you would CRT's in regard to refresh rate. Most LCD's work better at a *lower* rate then a higher one. Let the graphics card decide what's best for a given resolution (most have an auto adjust type feature or optimal setting). Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Myke Myers Sent: Friday, December 12, 2003 9:45 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: LCD Monitors for Development I am thinking of replacing my 17" CRT with two side-by-side 19" LCD monitors. Does anyone use such a setup? Can anyone recommend a brand/model for 19" LCD monitors? Myke _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 john at winhaven.net Fri Dec 12 10:01:41 2003 From: john at winhaven.net (John Bartow) Date: Fri, 12 Dec 2003 10:01:41 -0600 Subject: [AccessD] OT: LCD Monitors for Development In-Reply-To: Message-ID: Jim, Good points. I checked the manual of the Monitor for my LCD and set it to what was listed as its best rate. I have no problems adjusting the resolutions as long as they are listed for the monitor. (In Win2k there is a setting to hide modes the monitor doesn't support so that prevent setting it wrong. It has some really bizarro settings - like 848x480. I would think that might come in handy if I had the monitor display turned sideways but I don't see how to do that. Must be something the graphic card has to do for it? 19" WOW! I have a 15" that I replace my 17" CRT with. I replaced my CRT with a like sized LCD and while I could probably go to a 17" I don't really think about it unless someone brings it up, so it must not be a burning need. I had a 21" CRT once and I didn't eally care for that big of a screen. I felt like I was in a tanning booth all day :o) Samsung SyncMaster 151s - very nice. JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman > Sent: Friday, December 12, 2003 9:41 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT: LCD Monitors for Development > > > Myke, > > I have a 19" Dell CRT and a new 19" Dell LCD. While the Dell > LCD is nice, > it's not as good as it could be. I've seen other brands that look better > (the dot pitch is a bit higher than it should be). > > As far as using two screens: wouldn't live without it. > > A couple of points: > > 1. You get a lot more area on a LCD then a CRT. CRT tubes are > measured on a > diagonal and the tube extends well beyond the shell, so you don't get what > you think your getting. On my 19" CRT, I end up with only 17" > viewable. On > a LCD, what's advertised is the viewable size (19" is 19"). So > you may not > need as large of LCD as you think you might. > > 2. LCD's look good at only one specific resolution. Ever other > will appear > fuzzy. My Dell 19" is best at 1280 x 1024, but I need to boost the font > size. Otherwise, everything is too small even on a 19". > > 3. Don't adjust LCD's like you would CRT's in regard to refresh > rate. Most > LCD's work better at a *lower* rate then a higher one. Let the graphics > card decide what's best for a given resolution (most have an auto adjust > type feature or optimal setting). > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Myke Myers > Sent: Friday, December 12, 2003 9:45 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] OT: LCD Monitors for Development > > > I am thinking of replacing my 17" CRT with two side-by-side 19" LCD > monitors. > > Does anyone use such a setup? > > Can anyone recommend a brand/model for 19" LCD monitors? > > Myke > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From Kenneth.Stoker at pnl.gov Fri Dec 12 10:24:24 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Fri, 12 Dec 2003 08:24:24 -0800 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: <249C1CB246997C48BB74963CCD361C1B07C930@pnlmse28.pnl.gov> I was fortunate enough this year to get two 20" Dell LCD monitors. I made the argument to my boss that if I had to go for the 19" Dell LCD, that I would just rather keep my 21" CRT. The reason was that the 19" LCD has a .295 dot pitch, the 20" LCD has a .255 and my 21" CRT had a .25. I didn't want to go to such a dot pitch that the 19" has. He stated that since I am the one who works at a computer all day, that if anybody in our department deserved such equipment, it was me. Great boss. I have to say, I love my current setup. Another thing to remember is that the output on your video card can make a great difference as well. My video card has one digital and one analog output. The monitor hooked up to the digital output is amazing in comparison to the analog output. I can really notice when looking at text. But, video cards that have two digital outputs are quite spendy right now. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: Myke Myers [mailto:mmmtbig at bellsouth.net] Sent: Friday, December 12, 2003 6:45 AM To: AccessD at databaseadvisors.com Subject: [AccessD] OT: LCD Monitors for Development I am thinking of replacing my 17" CRT with two side-by-side 19" LCD monitors. Does anyone use such a setup? Can anyone recommend a brand/model for 19" LCD monitors? Myke _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 12 10:26:21 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 08:26:21 -0800 Subject: [AccessD] matching field error Message-ID: Is the default Null or is there no default? It isn't the same thing. Charlotte Foust -----Original Message----- From: pedro at plex.nl [mailto:pedro at plex.nl] Sent: Friday, December 12, 2003 4:20 AM To: AccessD at databaseadvisors.com Subject: RE: [AccessD] matching field error Sorry i mistyped: The default is Null (empty). With 0, zero, null it seems to be that i sometimes type something different as a think. Sorry for this. Any new ideas? Pedro In antwoord op: > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > Date: Fri, 12 Dec 2003 07:34:29 -0000 > Subject: RE: [AccessD] matching field error > > > Actually Pedro you said the default is zero (see your previous post > below) , so we thought that was it. > > Andy Lacey > http://www.minstersystems.co.uk > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Pedro Janssen > > Sent: 11 December 2003 21:56 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] matching field error > > > > > > Hello Andy and Charlotte, > > > > i explained before that the default value pro[perty of > > PrTestID is empty (no > > value) so this can't be the problem. > > > > Pedro > > > > > > ----- Original Message ----- > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Wednesday, December 10, 2003 10:51 PM > > Subject: RE: [AccessD] matching field error > > > > > > > Well thought Charlotte, that sounds like the issue. Pedro, > > change the > > > properties of PrTestiD by removing its default value and > > see if that > > > cures it. > > > > > > Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > Of Charlotte > > > > Foust > > > > Sent: 10 December 2003 20:52 > > > > To: Access Developers discussion and problem solving > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > The point is that if you don't have a record in the lookup table > > > > with zero as its primary key, having a default of zero will cause > > > > you problems with referential integrity in place. > > > > > > > > Charlotte Foust > > > > > > > > -----Original Message----- > > > > From: Pedro Janssen [mailto:pedro at plex.nl] > > > > Sent: Wednesday, December 10, 2003 11:30 AM > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] matching field error > > > > > > > > > > > > The default value is zero, so this isn't the problem. Thanks for > > > > thinking with me. > > > > > > > > Anyone else some ideas. > > > > > > > > Pedro > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Charlotte Foust" > > > > To: "Access Developers discussion and problem solving" > > > > > > > > Sent: Wednesday, December 10, 2003 5:51 PM > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > Unless it is specifically set to null, a numeric field > > usually has > > > > > a default value of zero. If you're dealing with numeric keys, > > > > > this might be tripping you up. > > > > > > > > > > Charlotte Foust > > > > > > > > > > -----Original Message----- > > > > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > > > > Sent: Wednesday, December 10, 2003 3:33 AM > > > > > To: AccessD at databaseadvisors.com > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > Hello Andy, > > > > > > > > > > In the help function i saw what the error means. But it > > > > made no sence > > > > > to me. You say: "Is there any way they could have zeroes or > > > > > zero-length strings rather than nulls". When a field is > > > > empty i think > > > > > there is nothing in it. How can it be that a field is empty > > > > but a zero > > > > > > > > > is present?? > > > > > > > > > > Pedro > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In antwoord op: > > > > > > > > > > > From: "Andy Lacey" > > > > > > To: "'Access Developers discussion and problem solving'" > > > > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > > > > Pedro > > > > > > The implication is that the you have Relationships > > defined with > > > > > > referential integrity. You are saving a record with a > > > > test id which > > > > > > doesn't match to a key value in the tblTest table. The > > > > odd thing is > > > > > > that this shouldn't occur if the fields are Null. Is > > > > there any way > > > > > > they could have zeroes or zero-length strings rather > > tha nulls, > > > > > > because that would do it. > > > > > > > > > > > > Andy Lacey > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > > > Pedro Janssen > > > > > > > Sent: 09 December 2003 22:41 > > > > > > > To: AccessD at databaseadvisors.com > > > > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > > > > > > > > > > Hello Group, > > > > > > > > > > > > > > i get the following error in a form, when i close it > > > > and the field > > > > > > > > > > > 'PrTestID' is empty: > > > > > > > > > > > > > > The microsoft Jet database engine cannot find a record in > > > > > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > > > > > > > > > > How is this possible, because the field isn't required? > > > > Al the ID > > > > > > > fields in the form give the same error when they are empty > > > > > > > (and all aren't reqiured). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Fri Dec 12 10:56:57 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Fri, 12 Dec 2003 17:56:57 +0100 Subject: [AccessD] Access 2002 - module modified dates all changing at once. Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFC5@stekelbes.ithelps.local> Euh, Just replace the whole file as I do... But I conclude that your are not using the Front/Back End technique? You should put all your tables in one MDB (the backend) and all your other stuff (queries, forms, macro's, code, reports) in a seperate MDB (or MDE) (The Frontend) If you make changes to the front end you just give everyone the new file... At the level of the tables, those change less often, you have at least tree solutions. 1) Write them down. 2) On the database advisors website there's a tool that for automatic backend updater. 3) Use a tool like Access Detective from FMS to compare two MDB and change the changes manualy (is what I do). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, December 12, 2003 4:18 PM To: Access-D Email (E-mail); ACCESS-L Email (E-mail) Subject: [AccessD] Access 2002 - module modified dates all changing at once. x-posted to Access-D and Access-L Access 2002: I just noticed that if I make any change to any module in Access 2002 then *all* the other modules have their modified date changed as well as the one that really was changed. This is a major pain in the neck as now I have to keep a manual record of what modules I just changed in my development copy so I know what to export to the production copy. Is it just me???? ;-( Lambert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 12 11:03:54 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 09:03:54 -0800 Subject: [AccessD] Access 2002 - module modified dates all changing atonce. Message-ID: Still another alternative is to use a version control product like Visual Source Safe, which allows you to track the changes at the level of the individual objects, except for tables and references. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, December 12, 2003 8:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2002 - module modified dates all changing atonce. Euh, Just replace the whole file as I do... But I conclude that your are not using the Front/Back End technique? You should put all your tables in one MDB (the backend) and all your other stuff (queries, forms, macro's, code, reports) in a seperate MDB (or MDE) (The Frontend) If you make changes to the front end you just give everyone the new file... At the level of the tables, those change less often, you have at least tree solutions. 1) Write them down. 2) On the database advisors website there's a tool that for automatic backend updater. 3) Use a tool like Access Detective from FMS to compare two MDB and change the changes manualy (is what I do). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, December 12, 2003 4:18 PM To: Access-D Email (E-mail); ACCESS-L Email (E-mail) Subject: [AccessD] Access 2002 - module modified dates all changing at once. x-posted to Access-D and Access-L Access 2002: I just noticed that if I make any change to any module in Access 2002 then *all* the other modules have their modified date changed as well as the one that really was changed. This is a major pain in the neck as now I have to keep a manual record of what modules I just changed in my development copy so I know what to export to the production copy. Is it just me???? ;-( Lambert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Fri Dec 12 11:05:14 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 12 Dec 2003 12:05:14 -0500 (EST) Subject: [AccessD] Exporting to .txt In-Reply-To: <20031212144146.8617924CFD0@smithers.nildram.co.uk> References: <20031212144146.8617924CFD0@smithers.nildram.co.uk> Message-ID: <46135.12.3.132.98.1071248714.squirrel@heck.bay9.com> I need to export a file to either .scv or .txt format with fixed length. There are 2 date fields which should be in a mmddyyyy format. I specify in 'specification' that field should have be in a format MDY, 4 digit year. leading zeros, no dividers, yet I still get 12/7/2003 type results... in txt file.. ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From Lambert.Heenan at AIG.com Fri Dec 12 11:13:46 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 12 Dec 2003 12:13:46 -0500 Subject: [AccessD] Access 2002 - module modified dates all changing at once. Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7B49@xlivmbx12.aig.com> Yes I do use FE/BE databases. I *always* split my data from the interface. What I'm up to is developing in one copy, that's linked to test data, and exporting the changed objects to another mdb which is linked to live data. Then I turn the live one into an MDE for the users to play with. What I want to avoid is having to re-link the tables and change a reference from and MDB library file to an MDE library. Lambert -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, December 12, 2003 11:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2002 - module modified dates all changing at once. Euh, Just replace the whole file as I do... But I conclude that your are not using the Front/Back End technique? You should put all your tables in one MDB (the backend) and all your other stuff (queries, forms, macro's, code, reports) in a seperate MDB (or MDE) (The Frontend) If you make changes to the front end you just give everyone the new file... At the level of the tables, those change less often, you have at least tree solutions. 1) Write them down. 2) On the database advisors website there's a tool that for automatic backend updater. 3) Use a tool like Access Detective from FMS to compare two MDB and change the changes manualy (is what I do). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, December 12, 2003 4:18 PM To: Access-D Email (E-mail); ACCESS-L Email (E-mail) Subject: [AccessD] Access 2002 - module modified dates all changing at once. x-posted to Access-D and Access-L Access 2002: I just noticed that if I make any change to any module in Access 2002 then *all* the other modules have their modified date changed as well as the one that really was changed. This is a major pain in the neck as now I have to keep a manual record of what modules I just changed in my development copy so I know what to export to the production copy. Is it just me???? ;-( Lambert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Dec 12 11:13:57 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 09:13:57 -0800 Subject: [AccessD] Exporting to .txt Message-ID: You need to do the export from a query and use the format function to change the date to a string of the correct format. If you just export from the table, a date is going to be handled as a date. Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, December 12, 2003 9:05 AM To: accessd at databaseadvisors.com Subject: [AccessD] Exporting to .txt I need to export a file to either .scv or .txt format with fixed length. There are 2 date fields which should be in a mmddyyyy format. I specify in 'specification' that field should have be in a format MDY, 4 digit year. leading zeros, no dividers, yet I still get 12/7/2003 type results... in txt file.. ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Dec 12 11:16:04 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 12 Dec 2003 12:16:04 -0500 Subject: [AccessD] Access 2002 - module modified dates all changing at once. Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7B4A@xlivmbx12.aig.com> Ah Hah! So this stupid date changing scheme is all part of the great master plan to make us all upgrade to Developer's edition? Lambert -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, December 12, 2003 12:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2002 - module modified dates all changing atonce. Still another alternative is to use a version control product like Visual Source Safe, which allows you to track the changes at the level of the individual objects, except for tables and references. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, December 12, 2003 8:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2002 - module modified dates all changing atonce. Euh, Just replace the whole file as I do... But I conclude that your are not using the Front/Back End technique? You should put all your tables in one MDB (the backend) and all your other stuff (queries, forms, macro's, code, reports) in a seperate MDB (or MDE) (The Frontend) If you make changes to the front end you just give everyone the new file... At the level of the tables, those change less often, you have at least tree solutions. 1) Write them down. 2) On the database advisors website there's a tool that for automatic backend updater. 3) Use a tool like Access Detective from FMS to compare two MDB and change the changes manualy (is what I do). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, December 12, 2003 4:18 PM To: Access-D Email (E-mail); ACCESS-L Email (E-mail) Subject: [AccessD] Access 2002 - module modified dates all changing at once. x-posted to Access-D and Access-L Access 2002: I just noticed that if I make any change to any module in Access 2002 then *all* the other modules have their modified date changed as well as the one that really was changed. This is a major pain in the neck as now I have to keep a manual record of what modules I just changed in my development copy so I know what to export to the production copy. Is it just me???? ;-( Lambert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From alan.lawhon at us.army.mil Fri Dec 12 11:21:48 2003 From: alan.lawhon at us.army.mil (Lawhon, Alan C Contractor/Morgan Research) Date: Fri, 12 Dec 2003 11:21:48 -0600 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? Message-ID: This was posted on Slashdot last night. I'm sure some of the folks on here, (like maybe Susan Harkins, Martin Reid, and John Colby), might have an interesting opinion about whether or not Access is a good "training vehicle" for learning SQL. http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146&tid= 185&tid=99 P.S. About midway down in the reader postings, there are links to several articles comparing the pros and cons of Access [SQL] to other SQL products. Alan C. Lawhon From martyconnelly at shaw.ca Fri Dec 12 11:34:43 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 12 Dec 2003 09:34:43 -0800 Subject: [AccessD] OT: LCD Monitors for Development References: <249C1CB246997C48BB74963CCD361C1B07C930@pnlmse28.pnl.gov> Message-ID: <3FD9FC33.8000107@shaw.ca> William Hindman was looking at this setup for Xmas. Maybe your boss will spring for it. http://www.poetictech.com/aura/index.html Stoker, Kenneth E wrote: >I was fortunate enough this year to get two 20" Dell LCD monitors. I >made the argument to my boss that if I had to go for the 19" Dell LCD, >that I would just rather keep my 21" CRT. The reason was that the 19" >LCD has a .295 dot pitch, the 20" LCD has a .255 and my 21" CRT had a >.25. I didn't want to go to such a dot pitch that the 19" has. He >stated that since I am the one who works at a computer all day, that if >anybody in our department deserved such equipment, it was me. Great >boss. I have to say, I love my current setup. > >Another thing to remember is that the output on your video card can make >a great difference as well. My video card has one digital and one >analog output. The monitor hooked up to the digital output is amazing >in comparison to the analog output. I can really notice when looking at >text. But, video cards that have two digital outputs are quite spendy >right now. > >Ken Stoker >Technology Commercialization >Information Systems Administrator >PH: (509) 375-3758 >FAX: (509) 375-6731 >E-mail: Kenneth.Stoker at pnl.gov > > >-----Original Message----- >From: Myke Myers [mailto:mmmtbig at bellsouth.net] >Sent: Friday, December 12, 2003 6:45 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] OT: LCD Monitors for Development > > >I am thinking of replacing my 17" CRT with two side-by-side 19" LCD >monitors. > >Does anyone use such a setup? > >Can anyone recommend a brand/model for 19" LCD monitors? > >Myke > > > > > -- Marty Connelly Victoria, B.C. Canada From Oleg_123 at xuppa.com Fri Dec 12 11:42:51 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 12 Dec 2003 12:42:51 -0500 (EST) Subject: [AccessD] Exporting to .txt In-Reply-To: References: Message-ID: <57062.12.3.132.98.1071250971.squirrel@heck.bay9.com> Where can I do format ? in sql window of query ? SELECT SSN, PayDate, PeriodEndDate FROM op_TALX here ? > You need to do the export from a query and use the format function to > change the date to a string of the correct format. If you just export > from the table, a date is going to be handled as a date. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Friday, December 12, 2003 9:05 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Exporting to .txt > > > I need to export a file to either .scv or .txt format with fixed length. > There are 2 date fields which should be in a mmddyyyy format. I specify > in 'specification' that field should have be in a format MDY, 4 digit > year. leading zeros, no dividers, yet I still get 12/7/2003 type > results... in txt file.. > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Fri Dec 12 11:45:45 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 09:45:45 -0800 Subject: [AccessD] Access 2002 - module modified dates all changing atonce. Message-ID: Charlotte Foust -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com] Sent: Friday, December 12, 2003 9:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2002 - module modified dates all changing atonce. Ah Hah! So this stupid date changing scheme is all part of the great master plan to make us all upgrade to Developer's edition? Lambert -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, December 12, 2003 12:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2002 - module modified dates all changing atonce. Still another alternative is to use a version control product like Visual Source Safe, which allows you to track the changes at the level of the individual objects, except for tables and references. Charlotte Foust -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Friday, December 12, 2003 8:57 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Access 2002 - module modified dates all changing atonce. Euh, Just replace the whole file as I do... But I conclude that your are not using the Front/Back End technique? You should put all your tables in one MDB (the backend) and all your other stuff (queries, forms, macro's, code, reports) in a seperate MDB (or MDE) (The Frontend) If you make changes to the front end you just give everyone the new file... At the level of the tables, those change less often, you have at least tree solutions. 1) Write them down. 2) On the database advisors website there's a tool that for automatic backend updater. 3) Use a tool like Access Detective from FMS to compare two MDB and change the changes manualy (is what I do). Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, December 12, 2003 4:18 PM To: Access-D Email (E-mail); ACCESS-L Email (E-mail) Subject: [AccessD] Access 2002 - module modified dates all changing at once. x-posted to Access-D and Access-L Access 2002: I just noticed that if I make any change to any module in Access 2002 then *all* the other modules have their modified date changed as well as the one that really was changed. This is a major pain in the neck as now I have to keep a manual record of what modules I just changed in my development copy so I know what to export to the production copy. Is it just me???? ;-( Lambert _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Dec 12 11:46:11 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Dec 2003 11:46:11 -0600 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Conc epts? Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE208@TAPPEEXCH01> IMHO, the Access query designer is a rotten way to teach someone how to write SQL code. I have developed Access apps for 8 years now, and I still cannot get more than 2 tables to join without using the QBE grid. For example (using the Northwind database), if I wanted to join the Orders table to the Order Details and Employees tables in Transact SQL, it would look like: --- SELECT Orders.* FROM Orders INNER JOIN [Order Details] ON [Order Details].[Order ID] = Orders.[Order ID] INNER JOIN Employees ON Employees.[Employee ID] = Orders.[Employee ID] --- Simple, intuitive, easy to learn. In fact, I wrote that snippet just now in this email because it is so simple to do. Access, however, looks like (taken directly from the QBE grid contents): --- SELECT Orders.* FROM Employees INNER JOIN (Orders INNER JOIN [Order Details] ON Orders.[Order ID] = [Order Details].[Order ID]) ON Employees.[Employee ID] = Orders.[Employee ID]; --- How the h*ll are you supposed to teach the rules of this join syntax to someone just learning SQL? You could spend weeks just teaching them the various Jet engine rules for bracket placement! When I took SQL Server in college, we didn't have any visual design tools to use, just the query analyzer. Students completely new to SQL in general were writing complex queries after the first day! OTOH, the Access QBE grid is far more useful than the one in Enterprise Manager, which is a good thing since I need to use it for virtually all of my Access queries. Whereas I tend to manually type 90% of my SQL Server queries in the query analyzer. -----Original Message----- From: Lawhon, Alan C Contractor/Morgan Research [mailto:alan.lawhon at us.army.mil] Sent: Friday, December 12, 2003 11:22 AM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? This was posted on Slashdot last night. I'm sure some of the folks on here, (like maybe Susan Harkins, Martin Reid, and John Colby), might have an interesting opinion about whether or not Access is a good "training vehicle" for learning SQL. http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& tid= 185&tid=99 P.S. About midway down in the reader postings, there are links to several articles comparing the pros and cons of Access [SQL] to other SQL products. Alan C. Lawhon _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 cfoust at infostatsystems.com Fri Dec 12 11:47:24 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 09:47:24 -0800 Subject: [AccessD] Exporting to .txt Message-ID: SELECT SSN, Format([PayDate], "mmddyyyy"), Format([PeriodEndDate], "mmddyyyy" FROM op_TALX Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, December 12, 2003 9:43 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Exporting to .txt Where can I do format ? in sql window of query ? SELECT SSN, PayDate, PeriodEndDate FROM op_TALX here ? > You need to do the export from a query and use the format function to > change the date to a string of the correct format. If you just export > from the table, a date is going to be handled as a date. > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Friday, December 12, 2003 9:05 AM > To: accessd at databaseadvisors.com > Subject: [AccessD] Exporting to .txt > > > I need to export a file to either .scv or .txt format with fixed > length. There are 2 date fields which should be in a mmddyyyy format. > I specify in 'specification' that field should have be in a format > MDY, 4 digit year. leading zeros, no dividers, yet I still get > 12/7/2003 type results... in txt file.. > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Dec 12 11:53:00 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 12 Dec 2003 09:53:00 -0800 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? References: <426071E0B0A6D311B3C0006008B0AB23AFE208@TAPPEEXCH01> Message-ID: <004b01c3c0d8$c8fdefe0$c4f66e51@martin1> Is Access a suitable tool for teaching database concepts to students? Seems to be the subject I use Access to teach database design to students on a Computer Degree course. I use non graphical tools for teaching SQL because they are not permitted to sue them on the course same goes for HTML Martin ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 12, 2003 9:46 AM Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? > IMHO, the Access query designer is a rotten way to teach someone how to > write SQL code. I have developed Access apps for 8 years now, and I still > cannot get more than 2 tables to join without using the QBE grid. For > example (using the Northwind database), if I wanted to join the Orders table > to the Order Details and Employees tables in Transact SQL, it would look > like: > > --- > SELECT Orders.* > FROM Orders > INNER JOIN [Order Details] > ON [Order Details].[Order ID] = Orders.[Order ID] > INNER JOIN Employees > ON Employees.[Employee ID] = Orders.[Employee ID] > --- > > Simple, intuitive, easy to learn. In fact, I wrote that snippet just now in > this email because it is so simple to do. > > Access, however, looks like (taken directly from the QBE grid contents): > --- > SELECT Orders.* > FROM Employees > INNER JOIN (Orders > INNER JOIN [Order Details] > ON Orders.[Order ID] = [Order Details].[Order ID]) > ON Employees.[Employee ID] = Orders.[Employee ID]; > --- > > How the h*ll are you supposed to teach the rules of this join syntax to > someone just learning SQL? You could spend weeks just teaching them the > various Jet engine rules for bracket placement! > > When I took SQL Server in college, we didn't have any visual design tools to > use, just the query analyzer. Students completely new to SQL in general > were writing complex queries after the first day! > > OTOH, the Access QBE grid is far more useful than the one in Enterprise > Manager, which is a good thing since I need to use it for virtually all of > my Access queries. Whereas I tend to manually type 90% of my SQL Server > queries in the query analyzer. > > > -----Original Message----- > From: Lawhon, Alan C Contractor/Morgan Research > [mailto:alan.lawhon at us.army.mil] > Sent: Friday, December 12, 2003 11:22 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > This was posted on Slashdot last night. I'm sure some of the folks on here, > (like maybe Susan Harkins, Martin Reid, and John Colby), might have an > interesting opinion about whether or not Access is a good "training vehicle" > for > learning SQL. > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& > tid= > 185&tid=99 > > P.S. About midway down in the reader postings, there are links to several > articles comparing the pros and cons of Access [SQL] to other SQL products. > > > Alan C. Lawhon > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From BBarabash at TappeConstruction.com Fri Dec 12 11:58:32 2003 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 12 Dec 2003 11:58:32 -0600 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Conc epts? Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE209@TAPPEEXCH01> But do you teach them Access SQL, or a more standard variety? -----Original Message----- From: Martin Reid [mailto:mwp.reid at qub.ac.uk] Sent: Friday, December 12, 2003 11:53 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? Is Access a suitable tool for teaching database concepts to students? Seems to be the subject I use Access to teach database design to students on a Computer Degree course. I use non graphical tools for teaching SQL because they are not permitted to sue them on the course same goes for HTML Martin ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 12, 2003 9:46 AM Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? > IMHO, the Access query designer is a rotten way to teach someone how to > write SQL code. I have developed Access apps for 8 years now, and I still > cannot get more than 2 tables to join without using the QBE grid. For > example (using the Northwind database), if I wanted to join the Orders table > to the Order Details and Employees tables in Transact SQL, it would look > like: > > --- > SELECT Orders.* > FROM Orders > INNER JOIN [Order Details] > ON [Order Details].[Order ID] = Orders.[Order ID] > INNER JOIN Employees > ON Employees.[Employee ID] = Orders.[Employee ID] > --- > > Simple, intuitive, easy to learn. In fact, I wrote that snippet just now in > this email because it is so simple to do. > > Access, however, looks like (taken directly from the QBE grid contents): > --- > SELECT Orders.* > FROM Employees > INNER JOIN (Orders > INNER JOIN [Order Details] > ON Orders.[Order ID] = [Order Details].[Order ID]) > ON Employees.[Employee ID] = Orders.[Employee ID]; > --- > > How the h*ll are you supposed to teach the rules of this join syntax to > someone just learning SQL? You could spend weeks just teaching them the > various Jet engine rules for bracket placement! > > When I took SQL Server in college, we didn't have any visual design tools to > use, just the query analyzer. Students completely new to SQL in general > were writing complex queries after the first day! > > OTOH, the Access QBE grid is far more useful than the one in Enterprise > Manager, which is a good thing since I need to use it for virtually all of > my Access queries. Whereas I tend to manually type 90% of my SQL Server > queries in the query analyzer. > > > -----Original Message----- > From: Lawhon, Alan C Contractor/Morgan Research > [mailto:alan.lawhon at us.army.mil] > Sent: Friday, December 12, 2003 11:22 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > This was posted on Slashdot last night. I'm sure some of the folks on here, > (like maybe Susan Harkins, Martin Reid, and John Colby), might have an > interesting opinion about whether or not Access is a good "training vehicle" > for > learning SQL. > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& > tid= > 185&tid=99 > > P.S. About midway down in the reader postings, there are links to several > articles comparing the pros and cons of Access [SQL] to other SQL products. > > > Alan C. Lawhon > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Oleg_123 at xuppa.com Fri Dec 12 12:15:32 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 12 Dec 2003 13:15:32 -0500 (EST) Subject: [AccessD] Exporting to .txt In-Reply-To: References: Message-ID: <18773.12.3.132.98.1071252932.squirrel@heck.bay9.com> HURRRAAAAYYYYYYYYYYYYYYY !!!!! Thank you > SELECT SSN, Format([PayDate], "mmddyyyy"), Format([PeriodEndDate], > "mmddyyyy" > FROM op_TALX > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Friday, December 12, 2003 9:43 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Exporting to .txt > > > Where can I do format ? in sql window of query ? > > SELECT SSN, PayDate, PeriodEndDate > FROM op_TALX > > here ? > >> You need to do the export from a query and use the format function to >> change the date to a string of the correct format. If you just export > >> from the table, a date is going to be handled as a date. >> >> Charlotte Foust >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Friday, December 12, 2003 9:05 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Exporting to .txt >> >> >> I need to export a file to either .scv or .txt format with fixed >> length. There are 2 date fields which should be in a mmddyyyy format. >> I specify in 'specification' that field should have be in a format >> MDY, 4 digit year. leading zeros, no dividers, yet I still get >> 12/7/2003 type results... in txt file.. >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From mmmtbig at bellsouth.net Fri Dec 12 12:17:46 2003 From: mmmtbig at bellsouth.net (Myke Myers) Date: Fri, 12 Dec 2003 13:17:46 -0500 Subject: [AccessD] OT: LCD Monitors for Development In-Reply-To: <3FD9FC33.8000107@shaw.ca> Message-ID: <008c01c3c0dc$411c2ed0$d401a8c0@tbig1> My boss is a 21 year old Siamese cat. :-) (Home office, self-employed.) Myke -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 12, 2003 12:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: LCD Monitors for Development William Hindman was looking at this setup for Xmas. Maybe your boss will spring for it. http://www.poetictech.com/aura/index.html Stoker, Kenneth E wrote: >I was fortunate enough this year to get two 20" Dell LCD monitors. I >made the argument to my boss that if I had to go for the 19" Dell LCD, >that I would just rather keep my 21" CRT. The reason was that the 19" >LCD has a .295 dot pitch, the 20" LCD has a .255 and my 21" CRT had a >.25. I didn't want to go to such a dot pitch that the 19" has. He >stated that since I am the one who works at a computer all day, that if >anybody in our department deserved such equipment, it was me. Great >boss. I have to say, I love my current setup. > >Another thing to remember is that the output on your video card can >make a great difference as well. My video card has one digital and one >analog output. The monitor hooked up to the digital output is amazing >in comparison to the analog output. I can really notice when looking >at text. But, video cards that have two digital outputs are quite >spendy right now. > >Ken Stoker >Technology Commercialization >Information Systems Administrator >PH: (509) 375-3758 >FAX: (509) 375-6731 >E-mail: Kenneth.Stoker at pnl.gov > > >-----Original Message----- >From: Myke Myers [mailto:mmmtbig at bellsouth.net] >Sent: Friday, December 12, 2003 6:45 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] OT: LCD Monitors for Development > > >I am thinking of replacing my 17" CRT with two side-by-side 19" LCD >monitors. > >Does anyone use such a setup? > >Can anyone recommend a brand/model for 19" LCD monitors? > >Myke > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Oleg_123 at xuppa.com Fri Dec 12 12:28:42 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 12 Dec 2003 13:28:42 -0500 (EST) Subject: [AccessD] Exporting to .txt In-Reply-To: References: Message-ID: <23577.12.3.132.98.1071253722.squirrel@heck.bay9.com> Just one more little thing; There is a field "hours" which when gets transferred to .txt putes . at the end of numers like 60. or 70. I'd like to avoid it, i change datatype to text in the table, but result is the same. Should I do something in the query for it also ? > SELECT SSN, Format([PayDate], "mmddyyyy"), Format([PeriodEndDate], > "mmddyyyy" > FROM op_TALX > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Friday, December 12, 2003 9:43 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Exporting to .txt > > > Where can I do format ? in sql window of query ? > > SELECT SSN, PayDate, PeriodEndDate > FROM op_TALX > > here ? > >> You need to do the export from a query and use the format function to >> change the date to a string of the correct format. If you just export > >> from the table, a date is going to be handled as a date. >> >> Charlotte Foust >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Friday, December 12, 2003 9:05 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Exporting to .txt >> >> >> I need to export a file to either .scv or .txt format with fixed >> length. There are 2 date fields which should be in a mmddyyyy format. >> I specify in 'specification' that field should have be in a format >> MDY, 4 digit year. leading zeros, no dividers, yet I still get >> 12/7/2003 type results... in txt file.. >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Fri Dec 12 12:31:39 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 10:31:39 -0800 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: The breed doesn't matter. Cats are *always* the boss ... and I have 4 of them! Charlotte Foust -----Original Message----- From: Myke Myers [mailto:mmmtbig at bellsouth.net] Sent: Friday, December 12, 2003 10:18 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: LCD Monitors for Development My boss is a 21 year old Siamese cat. :-) (Home office, self-employed.) Myke -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, December 12, 2003 12:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: LCD Monitors for Development William Hindman was looking at this setup for Xmas. Maybe your boss will spring for it. http://www.poetictech.com/aura/index.html Stoker, Kenneth E wrote: >I was fortunate enough this year to get two 20" Dell LCD monitors. I >made the argument to my boss that if I had to go for the 19" Dell LCD, >that I would just rather keep my 21" CRT. The reason was that the 19" >LCD has a .295 dot pitch, the 20" LCD has a .255 and my 21" CRT had a >.25. I didn't want to go to such a dot pitch that the 19" has. He >stated that since I am the one who works at a computer all day, that if >anybody in our department deserved such equipment, it was me. Great >boss. I have to say, I love my current setup. > >Another thing to remember is that the output on your video card can >make a great difference as well. My video card has one digital and one >analog output. The monitor hooked up to the digital output is amazing >in comparison to the analog output. I can really notice when looking >at text. But, video cards that have two digital outputs are quite >spendy right now. > >Ken Stoker >Technology Commercialization >Information Systems Administrator >PH: (509) 375-3758 >FAX: (509) 375-6731 >E-mail: Kenneth.Stoker at pnl.gov > > >-----Original Message----- >From: Myke Myers [mailto:mmmtbig at bellsouth.net] >Sent: Friday, December 12, 2003 6:45 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] OT: LCD Monitors for Development > > >I am thinking of replacing my 17" CRT with two side-by-side 19" LCD >monitors. > >Does anyone use such a setup? > >Can anyone recommend a brand/model for 19" LCD monitors? > >Myke > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Fri Dec 12 12:37:52 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Fri, 12 Dec 2003 10:37:52 -0800 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? References: <426071E0B0A6D311B3C0006008B0AB23AFE209@TAPPEEXCH01> Message-ID: <002901c3c0df$0eaf5f00$c4f66e51@martin1> We teach then standard SQL as once they leave me they move onto various systems but mainly Ingres which is the "corporate" db we use in the University. Also doing a MySQL course on Tuesday. That should be interesting. Martin ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 12, 2003 9:58 AM Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? > But do you teach them Access SQL, or a more standard variety? > > > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Friday, December 12, 2003 11:53 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > Is Access a suitable tool for teaching database concepts to students? > > Seems to be the subject > > I use Access to teach database design to students on a Computer Degree > course. I use non graphical tools for teaching SQL because they are not > permitted to sue them on the course same goes for HTML > > > Martin > > > ----- Original Message ----- > From: "Brett Barabash" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, December 12, 2003 9:46 AM > Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > > IMHO, the Access query designer is a rotten way to teach someone how to > > write SQL code. I have developed Access apps for 8 years now, and I still > > cannot get more than 2 tables to join without using the QBE grid. For > > example (using the Northwind database), if I wanted to join the Orders > table > > to the Order Details and Employees tables in Transact SQL, it would look > > like: > > > > --- > > SELECT Orders.* > > FROM Orders > > INNER JOIN [Order Details] > > ON [Order Details].[Order ID] = Orders.[Order ID] > > INNER JOIN Employees > > ON Employees.[Employee ID] = Orders.[Employee ID] > > --- > > > > Simple, intuitive, easy to learn. In fact, I wrote that snippet just now > in > > this email because it is so simple to do. > > > > Access, however, looks like (taken directly from the QBE grid contents): > > --- > > SELECT Orders.* > > FROM Employees > > INNER JOIN (Orders > > INNER JOIN [Order Details] > > ON Orders.[Order ID] = [Order Details].[Order ID]) > > ON Employees.[Employee ID] = Orders.[Employee ID]; > > --- > > > > How the h*ll are you supposed to teach the rules of this join syntax to > > someone just learning SQL? You could spend weeks just teaching them the > > various Jet engine rules for bracket placement! > > > > When I took SQL Server in college, we didn't have any visual design tools > to > > use, just the query analyzer. Students completely new to SQL in general > > were writing complex queries after the first day! > > > > OTOH, the Access QBE grid is far more useful than the one in Enterprise > > Manager, which is a good thing since I need to use it for virtually all of > > my Access queries. Whereas I tend to manually type 90% of my SQL Server > > queries in the query analyzer. > > > > > > -----Original Message----- > > From: Lawhon, Alan C Contractor/Morgan Research > > [mailto:alan.lawhon at us.army.mil] > > Sent: Friday, December 12, 2003 11:22 AM > > To: 'accessd at databaseadvisors.com' > > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > > Concepts? > > > > > > This was posted on Slashdot last night. I'm sure some of the folks on > here, > > (like maybe Susan Harkins, Martin Reid, and John Colby), might have an > > interesting opinion about whether or not Access is a good "training > vehicle" > > for > > learning SQL. > > > > > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& > > tid= > > 185&tid=99 > > > > P.S. About midway down in the reader postings, there are links to several > > articles comparing the pros and cons of Access [SQL] to other SQL > products. > > > > > > Alan C. Lawhon > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: 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. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Oleg_123 at xuppa.com Fri Dec 12 12:42:10 2003 From: Oleg_123 at xuppa.com (Oleg_123 at xuppa.com) Date: Fri, 12 Dec 2003 13:42:10 -0500 (EST) Subject: [AccessD] Exporting to .txt In-Reply-To: <23577.12.3.132.98.1071253722.squirrel@heck.bay9.com> References: <23577.12.3.132.98.1071253722.squirrel@heck.bay9.com> Message-ID: <26716.12.3.132.98.1071254530.squirrel@heck.bay9.com> never mind, done > Just one more little thing; > There is a field "hours" which when gets transferred to .txt putes . at > the end of numers like 60. or 70. > I'd like to avoid it, i change datatype to text in the table, but result > is the same. Should I do something in the query for it also ? > > >> SELECT SSN, Format([PayDate], "mmddyyyy"), Format([PeriodEndDate], >> "mmddyyyy" >> FROM op_TALX >> >> Charlotte Foust >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Friday, December 12, 2003 9:43 AM >> To: accessd at databaseadvisors.com >> Subject: RE: [AccessD] Exporting to .txt >> >> >> Where can I do format ? in sql window of query ? >> >> SELECT SSN, PayDate, PeriodEndDate >> FROM op_TALX >> >> here ? >> >>> You need to do the export from a query and use the format function to >>> change the date to a string of the correct format. If you just >>> export >> >>> from the table, a date is going to be handled as a date. >>> >>> Charlotte Foust >>> >>> -----Original Message----- >>> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >>> Sent: Friday, December 12, 2003 9:05 AM >>> To: accessd at databaseadvisors.com >>> Subject: [AccessD] Exporting to .txt >>> >>> >>> I need to export a file to either .scv or .txt format with fixed >>> length. There are 2 date fields which should be in a mmddyyyy format. >>> I specify in 'specification' that field should have be in a format >>> MDY, 4 digit year. leading zeros, no dividers, yet I still get >>> 12/7/2003 type results... in txt file.. >>> >>> >>> ----------------------------------------- >>> Get Breaking News from CNN, ABC, NBC, CBS Now. >>> http://www.xuppa.com/news/?link=webmail >>> >>> >>> _______________________________________________ >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> _______________________________________________ >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > > > > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail From cfoust at infostatsystems.com Fri Dec 12 13:15:43 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 12 Dec 2003 11:15:43 -0800 Subject: [AccessD] Exporting to .txt Message-ID: Sorry, but you don't have "hours" in your SQL, so I'm not sure what you're trying to do with it. What happens at the end of numbers like 60 or 70? Charlotte Foust -----Original Message----- From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] Sent: Friday, December 12, 2003 10:29 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Exporting to .txt Just one more little thing; There is a field "hours" which when gets transferred to .txt putes . at the end of numers like 60. or 70. I'd like to avoid it, i change datatype to text in the table, but result is the same. Should I do something in the query for it also ? > SELECT SSN, Format([PayDate], "mmddyyyy"), Format([PeriodEndDate], > "mmddyyyy" FROM op_TALX > > Charlotte Foust > > -----Original Message----- > From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] > Sent: Friday, December 12, 2003 9:43 AM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Exporting to .txt > > > Where can I do format ? in sql window of query ? > > SELECT SSN, PayDate, PeriodEndDate > FROM op_TALX > > here ? > >> You need to do the export from a query and use the format function to >> change the date to a string of the correct format. If you just >> export > >> from the table, a date is going to be handled as a date. >> >> Charlotte Foust >> >> -----Original Message----- >> From: Oleg_123 at xuppa.com [mailto:Oleg_123 at xuppa.com] >> Sent: Friday, December 12, 2003 9:05 AM >> To: accessd at databaseadvisors.com >> Subject: [AccessD] Exporting to .txt >> >> >> I need to export a file to either .scv or .txt format with fixed >> length. There are 2 date fields which should be in a mmddyyyy format. >> I specify in 'specification' that field should have be in a format >> MDY, 4 digit year. leading zeros, no dividers, yet I still get >> 12/7/2003 type results... in txt file.. >> >> >> ----------------------------------------- >> Get Breaking News from CNN, ABC, NBC, CBS Now. >> http://www.xuppa.com/news/?link=webmail >> >> >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > > ----------------------------------------- > Get Breaking News from CNN, ABC, NBC, CBS Now. > http://www.xuppa.com/news/?link=webmail > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ----------------------------------------- Get Breaking News from CNN, ABC, NBC, CBS Now. http://www.xuppa.com/news/?link=webmail _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Dec 12 12:04:13 2003 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 12 Dec 2003 13:04:13 -0500 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? References: <426071E0B0A6D311B3C0006008B0AB23AFE208@TAPPEEXCH01> Message-ID: <008701c3c0e5$8539b020$210110ac@SUSANONE> If the person being trained is going to be so involved with the data that they need to write SQL statements, then Access probably isn't the best tool. There's SQL and then there's Jet SQL, Transact-SQL, Oracle SQL, and on and on. You wouldn't use Oracle to teach someone Transact-SQL, so why use Access? On the other hand, an .adp file uses Transact-SQL against SQL Server tables. In addition, the objects are very similar to those in SQL Servers -- views, stored procedures, etc. are all used in SQL Server, but not the traditional mdb file. So, using an .adp file would work very well in a training environment, I would think. Susan H. > IMHO, the Access query designer is a rotten way to teach someone how to > write SQL code. I have developed Access apps for 8 years now, and I still > cannot get more than 2 tables to join without using the QBE grid. For > example (using the Northwind database), if I wanted to join the Orders table > to the Order Details and Employees tables in Transact SQL, it would look > like: > > --- > SELECT Orders.* > FROM Orders > INNER JOIN [Order Details] > ON [Order Details].[Order ID] = Orders.[Order ID] > INNER JOIN Employees > ON Employees.[Employee ID] = Orders.[Employee ID] > --- > > Simple, intuitive, easy to learn. In fact, I wrote that snippet just now in > this email because it is so simple to do. > > Access, however, looks like (taken directly from the QBE grid contents): > --- > SELECT Orders.* > FROM Employees > INNER JOIN (Orders > INNER JOIN [Order Details] > ON Orders.[Order ID] = [Order Details].[Order ID]) > ON Employees.[Employee ID] = Orders.[Employee ID]; > --- > > How the h*ll are you supposed to teach the rules of this join syntax to > someone just learning SQL? You could spend weeks just teaching them the > various Jet engine rules for bracket placement! > > When I took SQL Server in college, we didn't have any visual design tools to > use, just the query analyzer. Students completely new to SQL in general > were writing complex queries after the first day! > > OTOH, the Access QBE grid is far more useful than the one in Enterprise > Manager, which is a good thing since I need to use it for virtually all of > my Access queries. Whereas I tend to manually type 90% of my SQL Server > queries in the query analyzer. > > > -----Original Message----- > From: Lawhon, Alan C Contractor/Morgan Research > [mailto:alan.lawhon at us.army.mil] > Sent: Friday, December 12, 2003 11:22 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > This was posted on Slashdot last night. I'm sure some of the folks on here, > (like maybe Susan Harkins, Martin Reid, and John Colby), might have an > interesting opinion about whether or not Access is a good "training vehicle" > for > learning SQL. > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& > tid= > 185&tid=99 > > P.S. About midway down in the reader postings, there are links to several > articles comparing the pros and cons of Access [SQL] to other SQL products. > > > Alan C. Lawhon > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Fri Dec 12 14:36:06 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 12 Dec 2003 14:36:06 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: <2F8793082E00D4119A1700B0D0216BF802227684@main2.marlow.com> What's the strSQL? (I know it's your SQL string, but what is it's value?) Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 4:19 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Thanks, Gina _________________________________________________________________ Take advantage of our best MSN Dial-up offer of the year - six months @$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Fri Dec 12 14:29:48 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 12 Dec 2003 12:29:48 -0800 Subject: [AccessD] Access 2002 - module modified dates all changing at once. References: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7B41@xlivmbx12.aig.com> Message-ID: <3FDA253C.7020907@shaw.ca> In Access 2003 Beta 2 in the database window the created and modified date look okay I seem to remember this as a problem in Access XP However if you run this code below in Access 2003, there is no difference between Date Created and LastUpdated Date. It never seems to change the lastupdated date. CloseObject "Modules", acModule 5 Module1 12/12/2003 9:52:09 AM 12/12/2003 9:52:09 AM 5 Module2 12/12/2003 10:21:07 AM 12/12/2003 10:21:07 AM 'sample call 'CloseObject "Modules", acModule Function CloseObject(strContainerName As String, intContainerType As Integer) 'From the Developer Solutions database 'Close open database objects of the specified type Dim dbs As Database Dim ctr As Container Dim intX As Integer Set dbs = CurrentDb Set ctr = dbs.Containers(strContainerName) For intX = 0 To ctr.Documents.Count - 1 ' DoCmd.Close intContainerType, ctr.Documents(intX).Name Debug.Print intContainerType, ctr.Documents(intX).Name, _ ctr.Documents(intX).DateCreated, ctr.Documents(intX).LastUpdated Next intX End Function Heenan, Lambert wrote: >x-posted to Access-D and Access-L > >Access 2002: I just noticed that if I make any change to any module in >Access 2002 then *all* the other modules have their modified date changed as >well as the one that really was changed. > >This is a major pain in the neck as now I have to keep a manual record of >what modules I just changed in my development copy so I know what to export >to the production copy. > >Is it just me???? ;-( > >Lambert > > > -- Marty Connelly Victoria, B.C. Canada From Lambert.Heenan at AIG.com Fri Dec 12 14:49:20 2003 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 12 Dec 2003 15:49:20 -0500 Subject: [AccessD] Access 2002 - module modified dates all changing at once. Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD7B53@xlivmbx12.aig.com> Ah Hah!!! So it's actually a conspiracy to get us all to upgrade to Access 2003. Lambert > -----Original Message----- > From: MartyConnelly [SMTP:martyconnelly at shaw.ca] > Sent: Friday, December 12, 2003 3:30 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Access 2002 - module modified dates all > changing at once. > > In Access 2003 Beta 2 in the database window the created and modified > date look okay > I seem to remember this as a problem in Access XP > > However if you run this code below in Access 2003, there is no > difference between > Date Created and LastUpdated Date. It never seems to change the > lastupdated date. > > > CloseObject "Modules", acModule > 5 Module1 12/12/2003 9:52:09 AM 12/12/2003 > 9:52:09 AM > 5 Module2 12/12/2003 10:21:07 AM 12/12/2003 > 10:21:07 AM > 'sample call > 'CloseObject "Modules", acModule > > Function CloseObject(strContainerName As String, intContainerType As > Integer) > 'From the Developer Solutions database > 'Close open database objects of the specified type > > Dim dbs As Database > Dim ctr As Container > Dim intX As Integer > > Set dbs = CurrentDb > Set ctr = dbs.Containers(strContainerName) > > For intX = 0 To ctr.Documents.Count - 1 > ' DoCmd.Close intContainerType, ctr.Documents(intX).Name > Debug.Print intContainerType, ctr.Documents(intX).Name, _ > ctr.Documents(intX).DateCreated, ctr.Documents(intX).LastUpdated > > Next intX > > End Function > > Heenan, Lambert wrote: > > >x-posted to Access-D and Access-L > > > >Access 2002: I just noticed that if I make any change to any module in > >Access 2002 then *all* the other modules have their modified date changed > as > >well as the one that really was changed. > > > >This is a major pain in the neck as now I have to keep a manual record of > >what modules I just changed in my development copy so I know what to > export > >to the production copy. > > > >Is it just me???? ;-( > > > >Lambert > > > > > > > > -- > Marty Connelly > Victoria, B.C. > Canada > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From kathryn at bassett.net Fri Dec 12 15:40:28 2003 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 12 Dec 2003 13:40:28 -0800 Subject: [AccessD] 4up postcard "labels" - overflow? Message-ID: For my problem, I've posted a bunch of screen shots at: http://ourmailinglist.org/misc I have some 4up postcards and want to use access to print the "label" side of the card, but I'm getting strange overflow error and the report doesn't look like I want to. 4uppostcards1.jpg (1) shows all the sizes for the custom label I designed. I've added it up several times, and the total does match 8.5x11 landscape. (2) shows what is on the label (3) shows error number one - overflow and I click finish again (4) shows error number two - sort by (I've tried this with sorting and not sorting) (5) I click on cancel instead of finish and see what it looks like and this is wrong. It should be two across by two down, looking more like the mockup I made in Word Perfect (6) (7) shows all the properties So, what is wrong? Why won't this print 2 x 2? -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net From hoopesg at hotmail.com Fri Dec 12 16:17:59 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Fri, 12 Dec 2003 16:17:59 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: Here's the full procedure: Sub CenterGroupSheets() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = CurrentProject.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "e:\entprs\billina\budget fy05\mcoBudget_fe.mdb" End With ExcelConnection cnn, "e:\entprs\billina\budget fy05\MCOBudget_Macro.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Area FROM qryGroupRpt GROUP BY Area" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:36:06 -0600 What's the strSQL? (I know it's your SQL string, but what is it's value?) Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 4:19 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com From wdhindman at bellsouth.net Fri Dec 12 18:08:01 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 12 Dec 2003 19:08:01 -0500 Subject: [AccessD] 4up postcard "labels" - overflow? References: Message-ID: <000701c3c10d$2bfe7d60$6101a8c0@dejpolsys> Kati ...can't tell from the snapshots but most report "overflow" errors I've seen come from some control in the detail section with "can grow" set to on and something is making it expand the detail section beyond Access' default limits for a page size ...iirc that's 22 inches ...could be a long vertical line as well ...maybe that will give you a point to start looking ...sorry I can't help more :( William Hindman "Congress may be going home for the holidays soon. How can you beat a Christmas gift like that?" --Bob Hope ----- Original Message ----- From: "Kathryn Bassett" To: "dbAdvisors (AccessD)" Sent: Friday, December 12, 2003 4:40 PM Subject: [AccessD] 4up postcard "labels" - overflow? > For my problem, I've posted a bunch of screen shots at: > http://ourmailinglist.org/misc > I have some 4up postcards and want to use access to print the "label" side of the card, but I'm getting strange overflow error and the report doesn't look like I want to. > > 4uppostcards1.jpg (1) shows all the sizes for the custom label I designed. I've added it up several times, and the total does match 8.5x11 landscape. > (2) shows what is on the label > (3) shows error number one - overflow and I click finish again > (4) shows error number two - sort by (I've tried this with sorting and not sorting) > (5) I click on cancel instead of finish and see what it looks like and this is wrong. It should be two across by two down, looking more like the mockup I made in Word Perfect (6) > (7) shows all the properties > > So, what is wrong? Why won't this print 2 x 2? > > -- > Kathryn Rhinehart Bassett (Pasadena CA) > "Genealogy is my bag" "GH is my soap" > kathryn at bassett.net > http://bassett.net > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From SP1KEMAG00 at aol.com Fri Dec 12 18:25:48 2003 From: SP1KEMAG00 at aol.com (SP1KEMAG00) Date: Sat, 13 Dec 2003 00:25:48 -0000 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212151602.53AA2251BF6@smithers.nildram.co.uk> Message-ID: <000501c3c10f$d8341cf0$87eebcac@mycomputer> Andy, How about storing all your customer data in one master table and have an option to extract only the data for the current customer into a table your queries/forms then use? Shaun -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: 12 December 2003 15:16 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sort of like a filter only not Not sure what you mean by "mixed up" Gustav. Take one of many screens. Here you can select a financial period and year; select a customer or a customer group or leave blank for all customers, hit Print and a report will show the orders for those criteria, a summary of expenditure, render it into GBP if it was export and so on. And that's just one of many, many examples. Now the pitfalls are that a) the sales person may/will drop down the combo to choose the customer, thereby showing other customers or b) may inadvertently select the wrong customer and print the report (and hand it over to his client before he realises his mistake - aargh!) or c) hit Print without selecting a customer and therefore list activity for all customers. This is the sort of thing I'm talking about. And as I stressed right from the start there are oodles of such situations in the system so attacking each one individually is not an option. At the moment I like your idea Gustav of deliberately "corrupting" the rest of the data so that it's there but unrecognisable. If I did that to selected fields (names, addresses, phone nos, email addresses and so - not too many I don't think) I think that would do nicely. I guess I could even do it by encryption so that it's reversible. That way my on-the-road salesperson could "corrupt" all but one customer, then un-corrupt all after first meeting and re-corrupt all but a second customer when they get to the next place. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Sort of like a filter only not Date: 12/12/03 13:44 Hi Andy Hmmm ... but why are the data initially mixed up? /gustav > Sorry, reading my original again I may have misled you Jim. We're not > talking about a situation where a customer permanently has a system > with their data on it. We're talking about situations such as customer > A coming to these premises for a meeting for a day and my client > wanting to be able to show them the system on-screen but limited only > to their data, OR a sales > person going travelling with a laptop onto which we have downloaded > the system (this we do already - for enquiry purposes only) and having meetings > with several customers over several days. So we need to be able, > fairly quickly, to say "I'm going into a meeting with X so make the > system show only X and Y's data (where Y is X's sister company)". _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From SP1KEMAG00 at aol.com Fri Dec 12 18:25:48 2003 From: SP1KEMAG00 at aol.com (SP1KEMAG00) Date: Sat, 13 Dec 2003 00:25:48 -0000 Subject: AW: [AccessD] Export to multiple Excel sheets In-Reply-To: Message-ID: <000601c3c10f$da9d7bd0$87eebcac@mycomputer> Gina, I've done something similar several times, using the DoCmd.TransferSpreadsheet command. Despite what it says under Help, if you export using this command with a value in the [Range] parameter/option, it'll create a new worksheet with your value as the sheet name. The following example loops through a table called 'Categories', updates an output query and then exports the results. By using the 'CategoryTitle' field from the table, a new sheet is created for each Title in the table. I've tested this in Access 97 and Access XP. Hope this helps, Shaun ------------------------------------- Sub ExportToMultipleExcelSheets() Dim rstCategories As Recordset Dim strSQL As String Dim strOutputFile As String Dim strOutputQry As String strOutputFile = "C:\CategoryExportTest.xls" strOutputQry = "qryCategoryOutputQuery" ' If necessary, delete any existing copy of the output file Kill (strOutputFile) ' This loops through the 'Categories' table, updates the ' output query and then exports it Set rstCategories = CurrentDb.OpenRecordset("Categories") With rstCategories Do Until .EOF ' Update the output queries SQL string ' .Fields(0) is the Category ID number strSQL = "SELECT Details.Title FROM Details INNER JOIN " & _ "Categories ON Details.CatergoryID = Categories.CatergoryID " & _ "WHERE (((Details.CatergoryID) = " & .Fields("CatergoryID").Value & ")) GROUP " & _ "BY Details.Title ORDER BY Details.Title;" CurrentDb.QueryDefs(strOutputQry).SQL = strSQL ' Using the [RANGE] option of the TransferSpreadsheet command ' creates a new sheet for each Category found ' .Fields(1) is the Category title DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, _ strOutputQry, strOutputFile, False, .Fields("CatergoryTitle").Value .MoveNext Loop End With rstCategories.Close Set rstCategories = Nothing End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gina Hoopes Sent: 12 December 2003 14:16 To: accessd at databaseadvisors.com Subject: RE: AW: [AccessD] Export to multiple Excel sheets No, not yet. Have you got an idea? Thanks, Gina From: "Garraway, Alun" Reply-To: Access Developers discussion and problem solving To: "Access Developers discussion and problem solving" Subject: AW: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:30:33 +0100 hi Gina, do you have a solution for your problem? alun -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Gina Hoopes Gesendet: Mittwoch, 10. Dezember 2003 20:35 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Cell phone ?switch? rules are taking effect ? find out more here. http://special.msn.com/msnbc/consumeradvocate.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Kenneth.Stoker at pnl.gov Fri Dec 12 18:27:02 2003 From: Kenneth.Stoker at pnl.gov (Stoker, Kenneth E) Date: Fri, 12 Dec 2003 16:27:02 -0800 Subject: [AccessD] OT: LCD Monitors for Development Message-ID: <249C1CB246997C48BB74963CCD361C1B014A0303@pnlmse28.pnl.gov> LOL. My boss loves it. Star Trek/Battlestar Galactica were the first things out of his mouth. Have a great weekend everyone. Ken Stoker Technology Commercialization Information Systems Administrator PH: (509) 375-3758 FAX: (509) 375-6731 E-mail: Kenneth.Stoker at pnl.gov -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Friday, December 12, 2003 9:35 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: LCD Monitors for Development William Hindman was looking at this setup for Xmas. Maybe your boss will spring for it. http://www.poetictech.com/aura/index.html Stoker, Kenneth E wrote: >I was fortunate enough this year to get two 20" Dell LCD monitors. I >made the argument to my boss that if I had to go for the 19" Dell LCD, >that I would just rather keep my 21" CRT. The reason was that the 19" >LCD has a .295 dot pitch, the 20" LCD has a .255 and my 21" CRT had a >.25. I didn't want to go to such a dot pitch that the 19" has. He >stated that since I am the one who works at a computer all day, that if >anybody in our department deserved such equipment, it was me. Great >boss. I have to say, I love my current setup. > >Another thing to remember is that the output on your video card can >make a great difference as well. My video card has one digital and one >analog output. The monitor hooked up to the digital output is amazing >in comparison to the analog output. I can really notice when looking >at text. But, video cards that have two digital outputs are quite >spendy right now. > >Ken Stoker >Technology Commercialization >Information Systems Administrator >PH: (509) 375-3758 >FAX: (509) 375-6731 >E-mail: Kenneth.Stoker at pnl.gov > > >-----Original Message----- >From: Myke Myers [mailto:mmmtbig at bellsouth.net] >Sent: Friday, December 12, 2003 6:45 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] OT: LCD Monitors for Development > > >I am thinking of replacing my 17" CRT with two side-by-side 19" LCD >monitors. > >Does anyone use such a setup? > >Can anyone recommend a brand/model for 19" LCD monitors? > >Myke > > > > > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Fri Dec 12 19:39:38 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 12 Dec 2003 19:39:38 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: <2F8793082E00D4119A1700B0D0216BF802227688@main2.marlow.com> Aha, found the problem. Here's the strSQL statement: strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" The problem is the 'FROM qryGroupRpt' part. You are going to run this SQL against EXCEL, not the Access database, so you need to add an IN statement to the FROM clause, so it would read : 'FROM qryGroupRpt IN "C:\PathToDB\MyDatabase.mdb"' Make sense? Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Friday, December 12, 2003 4:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Here's the full procedure: Sub CenterGroupSheets() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = CurrentProject.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "e:\entprs\billina\budget fy05\mcoBudget_fe.mdb" End With ExcelConnection cnn, "e:\entprs\billina\budget fy05\MCOBudget_Macro.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Area FROM qryGroupRpt GROUP BY Area" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:36:06 -0600 What's the strSQL? (I know it's your SQL string, but what is it's value?) Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 4:19 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Browse styles for all ages, from the latest looks to cozy weekend wear at MSN Shopping. And check out the beauty products! http://shopping.msn.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Fri Dec 12 19:52:12 2003 From: joeget at vgernet.net (John Eget) Date: Fri, 12 Dec 2003 20:52:12 -0500 Subject: [AccessD] merry xmas card Message-ID: <035801c3c11b$bb863b40$9ac2f63f@Desktop> It requires a trip to the Internet, but this is a MERRY CHRISTMAS Card. http://www.found-pets.org/JLCards/xmas2001.htm> john eget From accessd at shaw.ca Fri Dec 12 19:41:12 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 12 Dec 2003 17:41:12 -0800 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212104616.6C9BA24F0D6@smithers.nildram.co.uk> Message-ID: Hi Andy: Why not simple copy the MDB, run a process on the copy that clears inappropriate information and finally relink the FE to the new/temporary BE. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Friday, December 12, 2003 2:46 AM To: accessd at databaseadvisors.com Subject: [AccessD] Sort of like a filter only not Morning everyone. Poets day is with us again but in the meantime I'm looking for bright ideas here. I have a biiiiig system here. I mention that it's big because any solution to this cannot involve changing every screen, report and query that's affected - far too much work. And the challenge is this: the users want/need to put selected parts of the system in front of customers. When they do so, however they do not want to show the names of other customers. So, for example, if they pull down a combo to select a customer they don't want to suddenly show that the customer's main competitor is also a customer. If they print a report of what the customer has received in the past 12 months they don't want to accidentally request All Customers and be embarrassed like that. In other words, in that situation, the system needs to be cast-iron certain to only ever show the details of one customer, or at least a controlled sub-set (may be more than one as the customer may belong to a group). So my idea was that before the meeting one could run a process which would extract all data for the required customer(s) into an identical set of tables in another MDB then relink to that MDB. Not all tables would be affected. Look-up tables, for example, would still point to the live MDB. But there would be quite a few involved because I'd need the customer table plus all related ones. This approach sounds ok, and an appropriate set of queries wouild soon do it, but it has its hassles, such as changes to the table structures which would require me to either keep the copy MDB up-to-date as well as the live one OR to create the copy one from scratch each time - but then I've also got to create indexes and relationships too and that's quite a job. Another idea I had, but I have to reject, was to rename the linked table (ie give it a different alias) then create a query with the same name as the table which filters the customers. All queries, screens and reports would then see that. But that's out because I use SEEKs on the customer table to access records quickly, and I can't SEEK on a query. So, has anyone got a better idea? Or a simple way of resolving the issue of changes in the table structures (can you somehow clone a set of tables complete with all indexes and relationships)? -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Sat Dec 13 05:45:55 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sat, 13 Dec 2003 12:45:55 +0100 Subject: [AccessD] Effect of XP SP2 for developpers? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFCA@stekelbes.ithelps.local> I understood something about Windows XP SP2 thats gonna get in beta at he end of year having important effect for developers... Is this gooing to effect or app's in any way? Erwin From gustav at cactus.dk Sat Dec 13 06:01:40 2003 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Dec 2003 13:01:40 +0100 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <20031212151602.53AA2251BF6@smithers.nildram.co.uk> References: <20031212151602.53AA2251BF6@smithers.nildram.co.uk> Message-ID: <1699306822.20031213130140@cactus.dk> Hi Andy I see. But my idea wouldn't work if the sales person was visiting several clients per day - except if all customers were scrambled and he brings a list telling which real customer, say, "McAllen & Daughters Ltd." represents. /gustav > Not sure what you mean by "mixed up" Gustav. Take one of many screens. Here > you can select a financial period and year; select a customer or a customer > group or leave blank for all customers, hit Print and a report will show the > orders for those criteria, a summary of expenditure, render it into GBP if > it was export and so on. And that's just one of many, many examples. Now the > pitfalls are that a) the sales person may/will drop down the combo to choose > the customer, thereby showing other customers or b) may inadvertently select > the wrong customer and print the report (and hand it over to his client > before he realises his mistake - aargh!) or c) hit Print without selecting a > customer and therefore list activity for all customers. This is the sort of > thing I'm talking about. And as I stressed right from the start there are > oodles of such situations in the system so attacking each one individually > is not an option. > At the moment I like your idea Gustav of deliberately "corrupting" the rest > of the data so that it's there but unrecognisable. If I did that to selected > fields (names, addresses, phone nos, email addresses and so - not too many I > don't think) I think that would do nicely. I guess I could even do it by > encryption so that it's reversible. That way my on-the-road salesperson > could "corrupt" all but one customer, then un-corrupt all after first > meeting and re-corrupt all but a second customer when they get to the next > place. > -- > Andy Lacey > http://www.minstersystems.co.uk > --------- Original Message -------- > From: "Access Developers discussion and problem solving" > > To: "Access Developers discussion and problem solving" > > Subject: Re: [AccessD] Sort of like a filter only not > Date: 12/12/03 13:44 > Hi Andy > Hmmm ... but why are the data initially mixed up? From gustav at cactus.dk Sat Dec 13 06:13:36 2003 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 13 Dec 2003 13:13:36 +0100 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? In-Reply-To: <008701c3c0e5$8539b020$210110ac@SUSANONE> References: <426071E0B0A6D311B3C0006008B0AB23AFE208@TAPPEEXCH01> <008701c3c0e5$8539b020$210110ac@SUSANONE> Message-ID: <11610022932.20031213131336@cactus.dk> Hi Susan, Brett et all It's interesting that a few messages from this list gives useful and much better view on the subject than the lot of wild shooting opinions and raves on Slashdot. I browsed some of them briefly only to wonder why so many people are wasting their time reading - not to say writing - messages to that forum. Reminds me of the days of FidoNet ... /gustav > If the person being trained is going to be so involved with the data that > they need to write SQL statements, then Access probably isn't the best tool. > There's SQL and then there's Jet SQL, Transact-SQL, Oracle SQL, and on and > on. You wouldn't use Oracle to teach someone Transact-SQL, so why use > Access? > On the other hand, an .adp file uses Transact-SQL against SQL Server tables. > In addition, the objects are very similar to those in SQL Servers -- views, > stored procedures, etc. are all used in SQL Server, but not the traditional > mdb file. So, using an .adp file would work very well in a training > environment, I would think. > Susan H. >> IMHO, the Access query designer is a rotten way to teach someone how to >> write SQL code. I have developed Access apps for 8 years now, and I still >> cannot get more than 2 tables to join without using the QBE grid. For >> example (using the Northwind database), if I wanted to join the Orders >> table >> to the Order Details and Employees tables in Transact SQL, it would look >> like: >> >> --- >> SELECT Orders.* >> FROM Orders >> INNER JOIN [Order Details] >> ON [Order Details].[Order ID] = Orders.[Order ID] >> INNER JOIN Employees >> ON Employees.[Employee ID] = Orders.[Employee ID] >> --- >> >> Simple, intuitive, easy to learn. In fact, I wrote that snippet just now >> in >> this email because it is so simple to do. >> >> Access, however, looks like (taken directly from the QBE grid contents): >> --- >> SELECT Orders.* >> FROM Employees >> INNER JOIN (Orders >> INNER JOIN [Order Details] >> ON Orders.[Order ID] = [Order Details].[Order ID]) >> ON Employees.[Employee ID] = Orders.[Employee ID]; >> --- >> >> How the h*ll are you supposed to teach the rules of this join syntax to >> someone just learning SQL? You could spend weeks just teaching them the >> various Jet engine rules for bracket placement! >> >> When I took SQL Server in college, we didn't have any visual design tools >> to >> use, just the query analyzer. Students completely new to SQL in general >> were writing complex queries after the first day! >> >> OTOH, the Access QBE grid is far more useful than the one in Enterprise >> Manager, which is a good thing since I need to use it for virtually all of >> my Access queries. Whereas I tend to manually type 90% of my SQL Server >> queries in the query analyzer. From andy at minstersystems.co.uk Sat Dec 13 07:44:34 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 13 Dec 2003 13:44:34 -0000 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <1699306822.20031213130140@cactus.dk> Message-ID: <003a01c3c17f$3ea676d0$b274d0d5@minster33c3r25> No, but if I encrypt (ie scramble in a structured way) then I can unencrypt that one and encrypt another customer afterwards. Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 13 December 2003 12:02 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sort of like a filter only not > > > Hi Andy > > I see. But my idea wouldn't work if the sales person was > visiting several clients per day - except if all customers > were scrambled and he brings a list telling which real > customer, say, "McAllen & Daughters Ltd." represents. > > /gustav > > > > Not sure what you mean by "mixed up" Gustav. Take one of > many screens. > > Here you can select a financial period and year; select a > customer or > > a customer group or leave blank for all customers, hit Print and a > > report will show the orders for those criteria, a summary of > > expenditure, render it into GBP if it was export and so on. > And that's > > just one of many, many examples. Now the pitfalls are that a) the > > sales person may/will drop down the combo to choose the customer, > > thereby showing other customers or b) may inadvertently select the > > wrong customer and print the report (and hand it over to his client > > before he realises his mistake - aargh!) or c) hit Print without > > selecting a customer and therefore list activity for all customers. > > This is the sort of thing I'm talking about. And as I > stressed right > > from the start there are oodles of such situations in the system so > > attacking each one individually is not an option. > > > At the moment I like your idea Gustav of deliberately > "corrupting" the > > rest of the data so that it's there but unrecognisable. If > I did that > > to selected fields (names, addresses, phone nos, email > addresses and > > so - not too many I don't think) I think that would do > nicely. I guess > > I could even do it by encryption so that it's reversible. > That way my > > on-the-road salesperson could "corrupt" all but one customer, then > > un-corrupt all after first meeting and re-corrupt all but a second > > customer when they get to the next place. > > > -- > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > --------- Original Message -------- > > From: "Access Developers discussion and problem solving" > > > > To: "Access Developers discussion and problem solving" > > > > Subject: Re: [AccessD] Sort of like a filter only not > > Date: 12/12/03 13:44 > > > > Hi Andy > > > Hmmm ... but why are the data initially mixed up? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From mwp.reid at qub.ac.uk Sat Dec 13 09:26:04 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 13 Dec 2003 07:26:04 -0800 Subject: [AccessD] Sort of like a filter only not References: <003a01c3c17f$3ea676d0$b274d0d5@minster33c3r25> Message-ID: <000f01c3c18d$6d7aa6d0$c4f66e51@martin1> Of course the simple appraoch is to train up the users. Martin ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Saturday, December 13, 2003 5:44 AM Subject: RE: [AccessD] Sort of like a filter only not > No, but if I encrypt (ie scramble in a structured way) then I can unencrypt > that one and encrypt another customer afterwards. > > Andy > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Gustav Brock > > Sent: 13 December 2003 12:02 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Hi Andy > > > > I see. But my idea wouldn't work if the sales person was > > visiting several clients per day - except if all customers > > were scrambled and he brings a list telling which real > > customer, say, "McAllen & Daughters Ltd." represents. > > > > /gustav > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > many screens. > > > Here you can select a financial period and year; select a > > customer or > > > a customer group or leave blank for all customers, hit Print and a > > > report will show the orders for those criteria, a summary of > > > expenditure, render it into GBP if it was export and so on. > > And that's > > > just one of many, many examples. Now the pitfalls are that a) the > > > sales person may/will drop down the combo to choose the customer, > > > thereby showing other customers or b) may inadvertently select the > > > wrong customer and print the report (and hand it over to his client > > > before he realises his mistake - aargh!) or c) hit Print without > > > selecting a customer and therefore list activity for all customers. > > > This is the sort of thing I'm talking about. And as I > > stressed right > > > from the start there are oodles of such situations in the system so > > > attacking each one individually is not an option. > > > > > At the moment I like your idea Gustav of deliberately > > "corrupting" the > > > rest of the data so that it's there but unrecognisable. If > > I did that > > > to selected fields (names, addresses, phone nos, email > > addresses and > > > so - not too many I don't think) I think that would do > > nicely. I guess > > > I could even do it by encryption so that it's reversible. > > That way my > > > on-the-road salesperson could "corrupt" all but one customer, then > > > un-corrupt all after first meeting and re-corrupt all but a second > > > customer when they get to the next place. > > > > > -- > > > Andy Lacey > > > http://www.minstersystems.co.uk > > > > > > > > > > > --------- Original Message -------- > > > From: "Access Developers discussion and problem solving" > > > > > > To: "Access Developers discussion and problem solving" > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > Date: 12/12/03 13:44 > > > > > > > Hi Andy > > > > > Hmmm ... but why are the data initially mixed up? > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Sat Dec 13 09:41:39 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 13 Dec 2003 15:41:39 -0000 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <000f01c3c18d$6d7aa6d0$c4f66e51@martin1> Message-ID: <004701c3c18f$99f796d0$b274d0d5@minster33c3r25> No Martin that's just not so in this case. How, for example, do you use a combo to select something without displaying the records around the one you need? It's not a training issue. Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 13 December 2003 15:26 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sort of like a filter only not > > > Of course the simple appraoch is to train up the users. > > Martin > > > ----- Original Message ----- > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, December 13, 2003 5:44 AM > Subject: RE: [AccessD] Sort of like a filter only not > > > > No, but if I encrypt (ie scramble in a structured way) then I can > unencrypt > > that one and encrypt another customer afterwards. > > > > Andy > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > > > Brock > > > Sent: 13 December 2003 12:02 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > Hi Andy > > > > > > I see. But my idea wouldn't work if the sales person was visiting > > > several clients per day - except if all customers were > scrambled and > > > he brings a list telling which real customer, say, "McAllen & > > > Daughters Ltd." represents. > > > > > > /gustav > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > many screens. > > > > Here you can select a financial period and year; select a > > > customer or > > > > a customer group or leave blank for all customers, hit > Print and a > > > > report will show the orders for those criteria, a summary of > > > > expenditure, render it into GBP if it was export and so on. > > > And that's > > > > just one of many, many examples. Now the pitfalls are > that a) the > > > > sales person may/will drop down the combo to choose the > customer, > > > > thereby showing other customers or b) may inadvertently > select the > > > > wrong customer and print the report (and hand it over to his > > > > client before he realises his mistake - aargh!) or c) hit Print > > > > without selecting a customer and therefore list > activity for all > > > > customers. This is the sort of thing I'm talking about. And as I > > > stressed right > > > > from the start there are oodles of such situations in > the system > > > > so attacking each one individually is not an option. > > > > > > > At the moment I like your idea Gustav of deliberately > > > "corrupting" the > > > > rest of the data so that it's there but unrecognisable. If > > > I did that > > > > to selected fields (names, addresses, phone nos, email > > > addresses and > > > > so - not too many I don't think) I think that would do > > > nicely. I guess > > > > I could even do it by encryption so that it's reversible. > > > That way my > > > > on-the-road salesperson could "corrupt" all but one > customer, then > > > > un-corrupt all after first meeting and re-corrupt all > but a second > > > > customer when they get to the next place. > > > > > > > -- > > > > Andy Lacey > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > From: "Access Developers discussion and problem solving" > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > Date: 12/12/03 13:44 > > > > > > > > > > Hi Andy > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From ssharkins at bellsouth.net Sat Dec 13 10:07:16 2003 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 13 Dec 2003 11:07:16 -0500 Subject: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? References: <426071E0B0A6D311B3C0006008B0AB23AFE208@TAPPEEXCH01> <008701c3c0e5$8539b020$210110ac@SUSANONE> <11610022932.20031213131336@cactus.dk> Message-ID: <001301c3c194$46e83710$210110ac@SUSANONE> It is the best around as far as I'm concerned. :) Susan H. ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Saturday, December 13, 2003 7:13 AM Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? > Hi Susan, Brett et all > > It's interesting that a few messages from this list gives useful and > much better view on the subject than the lot of wild shooting opinions > and raves on Slashdot. I browsed some of them briefly only to wonder > why so many people are wasting their time reading - not to say writing > - messages to that forum. Reminds me of the days of FidoNet ... > > /gustav From ssharkins at bellsouth.net Sat Dec 13 10:15:07 2003 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 13 Dec 2003 11:15:07 -0500 Subject: [AccessD] Sort of like a filter only not References: <004701c3c18f$99f796d0$b274d0d5@minster33c3r25> Message-ID: <001701c3c194$4a9141e0$210110ac@SUSANONE> What are you selecting that would display other records? I guess that's where I'm getting lost. If you're using a combo to select "something" -- what is something? I'm guessing it isn't a specific customer then right? You might even start out with a new start screen -- one that says -- are you at a customer's site, they say Yes -- it asks for the customer and then from then right then -- only customer records are made available, regardless of where they go? I'm not sure how you'd implement it and of course, it would take more work than you'd really like, but ultimately less work than some others. But if you could somehow limit the records from the beginning, it would solve the problem wouldn't it? If the data is already stored separately from the front end, it might just mean updating a few connection objects. Sorry if this is no help. Susan H. > No Martin that's just not so in this case. How, for example, do you use a > combo to select something without displaying the records around the one you > need? It's not a training issue. > > Andy > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > > Sent: 13 December 2003 15:26 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Of course the simple appraoch is to train up the users. > > > > Martin > > > > > > ----- Original Message ----- > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Saturday, December 13, 2003 5:44 AM > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > No, but if I encrypt (ie scramble in a structured way) then I can > > unencrypt > > > that one and encrypt another customer afterwards. > > > > > > Andy > > > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > > > > Brock > > > > Sent: 13 December 2003 12:02 > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > Hi Andy > > > > > > > > I see. But my idea wouldn't work if the sales person was visiting > > > > several clients per day - except if all customers were > > scrambled and > > > > he brings a list telling which real customer, say, "McAllen & > > > > Daughters Ltd." represents. > > > > > > > > /gustav > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > many screens. > > > > > Here you can select a financial period and year; select a > > > > customer or > > > > > a customer group or leave blank for all customers, hit > > Print and a > > > > > report will show the orders for those criteria, a summary of > > > > > expenditure, render it into GBP if it was export and so on. > > > > And that's > > > > > just one of many, many examples. Now the pitfalls are > > that a) the > > > > > sales person may/will drop down the combo to choose the > > customer, > > > > > thereby showing other customers or b) may inadvertently > > select the > > > > > wrong customer and print the report (and hand it over to his > > > > > client before he realises his mistake - aargh!) or c) hit Print > > > > > without selecting a customer and therefore list > > activity for all > > > > > customers. This is the sort of thing I'm talking about. And as I > > > > stressed right > > > > > from the start there are oodles of such situations in > > the system > > > > > so attacking each one individually is not an option. > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > "corrupting" the > > > > > rest of the data so that it's there but unrecognisable. If > > > > I did that > > > > > to selected fields (names, addresses, phone nos, email > > > > addresses and > > > > > so - not too many I don't think) I think that would do > > > > nicely. I guess > > > > > I could even do it by encryption so that it's reversible. > > > > That way my > > > > > on-the-road salesperson could "corrupt" all but one > > customer, then > > > > > un-corrupt all after first meeting and re-corrupt all > > but a second > > > > > customer when they get to the next place. > > > > > > > > > -- > > > > > Andy Lacey > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > From: "Access Developers discussion and problem solving" > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > Hi Andy > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > Website: > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From artful at rogers.com Sat Dec 13 17:24:17 2003 From: artful at rogers.com (Arthur Fuller) Date: Sat, 13 Dec 2003 15:24:17 -0800 Subject: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? In-Reply-To: <002901c3c0df$0eaf5f00$c4f66e51@martin1> Message-ID: <000001c3c1d0$42c71ed0$6701a8c0@rock> All of this could just as well be taught in an MBA course. When the late Doctor Codd enunciated the first rules (NOT SQL -- most emphatically NOT SQL), the concept was a portable language that all vendors could implement. Since then the marketing crew at every company has promoted vendor-specific additions to the core language. The result is, pretty much, that if you are an Oracle expert you have a lot to learn about MS-SQL, and if you're a Postgres expert ditto, and if you're an MS-SQL ditto. You can write sprocs for Oracle in Java. MS responds by letting us write sprocs in ADO.NET. It's still unclear what MySQL intends. I don't know anytbing about DB2 so cannot provide a similar statement. Now as to the statement about Access not being a good tool for teaching SQL. I think that the real question is whether a GUI query designer is the right tool. On this question, I think the answer is yes. Graphical tools are infinitely better than command line tools, because a picture is 1000 words. Imagine typing "turn left 90 degrees" into the keyboard in your car. A steering wheel is a graphical tool. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, December 12, 2003 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? We teach then standard SQL as once they leave me they move onto various systems but mainly Ingres which is the "corporate" db we use in the University. Also doing a MySQL course on Tuesday. That should be interesting. Martin ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 12, 2003 9:58 AM Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? > But do you teach them Access SQL, or a more standard variety? > > > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Friday, December 12, 2003 11:53 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > Is Access a suitable tool for teaching database concepts to students? > > Seems to be the subject > > I use Access to teach database design to students on a Computer Degree > course. I use non graphical tools for teaching SQL because they are > not permitted to sue them on the course same goes for HTML > > > Martin > > > ----- Original Message ----- > From: "Brett Barabash" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, December 12, 2003 9:46 AM > Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > > IMHO, the Access query designer is a rotten way to teach someone how > > to write SQL code. I have developed Access apps for 8 years now, > > and I still > > cannot get more than 2 tables to join without using the QBE grid. > > For example (using the Northwind database), if I wanted to join the > > Orders > table > > to the Order Details and Employees tables in Transact SQL, it would > > look > > like: > > > > --- > > SELECT Orders.* > > FROM Orders > > INNER JOIN [Order Details] > > ON [Order Details].[Order ID] = Orders.[Order ID] > > INNER JOIN Employees > > ON Employees.[Employee ID] = Orders.[Employee ID] > > --- > > > > Simple, intuitive, easy to learn. In fact, I wrote that snippet > > just now > in > > this email because it is so simple to do. > > > > Access, however, looks like (taken directly from the QBE grid > > contents): > > --- > > SELECT Orders.* > > FROM Employees > > INNER JOIN (Orders > > INNER JOIN [Order Details] > > ON Orders.[Order ID] = [Order Details].[Order ID]) > > ON Employees.[Employee ID] = Orders.[Employee ID]; > > --- > > > > How the h*ll are you supposed to teach the rules of this join syntax > > to someone just learning SQL? You could spend weeks just teaching > > them the various Jet engine rules for bracket placement! > > > > When I took SQL Server in college, we didn't have any visual design tools > to > > use, just the query analyzer. Students completely new to SQL in > > general were writing complex queries after the first day! > > > > OTOH, the Access QBE grid is far more useful than the one in > > Enterprise Manager, which is a good thing since I need to use it for > > virtually all of > > my Access queries. Whereas I tend to manually type 90% of my SQL > > Server queries in the query analyzer. > > > > > > -----Original Message----- > > From: Lawhon, Alan C Contractor/Morgan Research > > [mailto:alan.lawhon at us.army.mil] > > Sent: Friday, December 12, 2003 11:22 AM > > To: 'accessd at databaseadvisors.com' > > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > > Concepts? > > > > > > This was posted on Slashdot last night. I'm sure some of the folks > > on > here, > > (like maybe Susan Harkins, Martin Reid, and John Colby), might have > > an interesting opinion about whether or not Access is a good > > "training > vehicle" > > for > > learning SQL. > > > > > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid= 146& > > tid= > > 185&tid=99 > > > > P.S. About midway down in the reader postings, there are links to several > > articles comparing the pros and cons of Access [SQL] to other SQL > products. > > > > > > Alan C. Lawhon > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: 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. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Sat Dec 13 15:34:50 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sat, 13 Dec 2003 16:34:50 -0500 Subject: [AccessD] Shift+F2 using code Message-ID: <002901c3c1c0$f099d1c0$dec40a44@hr.cox.net> Is there a way to programatically (i.e., in VBA) to execute a Shift+F2 (in order to "Zoom in" on a field on a form) without using Sendkeys? Thanks, Barb Ryan From wdhindman at bellsouth.net Sat Dec 13 16:00:19 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 13 Dec 2003 17:00:19 -0500 Subject: [AccessD] Shift+F2 using code References: <002901c3c1c0$f099d1c0$dec40a44@hr.cox.net> Message-ID: <001601c3c1c4$7fbefe40$6101a8c0@dejpolsys> Barb ...I use a popup zoom box form that displays the data in the field on a dblclick and lets your user edit it ...if that sounds like what you want, go to http://www.candace-tripp.com and download the popups.mdb there ...its an A97 sample but converts readily ...hth :) William Hindman "Congress may be going home for the holidays soon. How can you beat a Christmas gift like that?" --Bob Hope ----- Original Message ----- From: "Barbara Ryan" To: "Access List" Sent: Saturday, December 13, 2003 4:34 PM Subject: [AccessD] Shift+F2 using code Is there a way to programatically (i.e., in VBA) to execute a Shift+F2 (in order to "Zoom in" on a field on a form) without using Sendkeys? Thanks, Barb Ryan _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Sat Dec 13 16:22:06 2003 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Sat, 13 Dec 2003 17:22:06 -0500 Subject: [AccessD] Shift+F2 using code References: <002901c3c1c0$f099d1c0$dec40a44@hr.cox.net> <001601c3c1c4$7fbefe40$6101a8c0@dejpolsys> Message-ID: <004c01c3c1c7$8acdc660$dec40a44@hr.cox.net> William..... This is perfect...........Thanks! Barb ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Saturday, December 13, 2003 5:00 PM Subject: Re: [AccessD] Shift+F2 using code > Barb > > ...I use a popup zoom box form that displays the data in the field on a > dblclick and lets your user edit it ...if that sounds like what you want, go > to http://www.candace-tripp.com and download the popups.mdb there ...its an > A97 sample but converts readily ...hth :) > > William Hindman > "Congress may be going home for the holidays soon. How can you > beat a Christmas gift like that?" --Bob Hope > > > ----- Original Message ----- > From: "Barbara Ryan" > To: "Access List" > Sent: Saturday, December 13, 2003 4:34 PM > Subject: [AccessD] Shift+F2 using code > > > Is there a way to programatically (i.e., in VBA) to execute a Shift+F2 (in > order to "Zoom in" on a field on a form) without using Sendkeys? > > Thanks, > Barb Ryan > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From john at winhaven.net Sat Dec 13 16:47:07 2003 From: john at winhaven.net (John Bartow) Date: Sat, 13 Dec 2003 16:47:07 -0600 Subject: [AccessD] Shift+F2 using code In-Reply-To: <002901c3c1c0$f099d1c0$dec40a44@hr.cox.net> Message-ID: Barb: Place this code in the double click event of the control: DoCmd.RunCommand acCmdZoomBox Or, you could place a command buttton on the form that zooms for any control, with this code in the command button's click event: Screen.PreviousControl.SetFocus DoCmd.RunCommand acCmdZoomBox HTH John B. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan > Sent: Saturday, December 13, 2003 3:35 PM > To: Access List > Subject: [AccessD] Shift+F2 using code > > > Is there a way to programatically (i.e., in VBA) to execute a > Shift+F2 (in order to "Zoom in" on a field on a form) without > using Sendkeys? > > Thanks, > Barb Ryan > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Sat Dec 13 17:29:32 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 13 Dec 2003 15:29:32 -0800 Subject: [AccessD] Shift+F2 using code References: <002901c3c1c0$f099d1c0$dec40a44@hr.cox.net> Message-ID: <3FDBA0DC.5070204@shaw.ca> On your form set focus to textbox and call snapzoom routine Private Sub Command9_Click() Me.Text7.SetFocus SnapZoom End Sub In a module Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte,ByVal _ bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) public Sub SnapZoom() 'use the following code inside form or focused window or text box 'to simulate the F2/Shift = key combination: ' then press and then release the F2 Shift key 'order of pressing important keybd_event vbKeyShift, 0, 0, 0 keybd_event vbKeyF2, 0, 0, 0 keybd_event vbKeyF2, 0, KEYEVENTF_KEYUP, 0 'weird things happen if you don't up the shiftkey; looks like capslock keybd_event vbKeyShift, 0, KEYEVENTF_KEYUP, 0 DoEvents End Sub Barbara Ryan wrote: >Is there a way to programatically (i.e., in VBA) to execute a Shift+F2 (in order to "Zoom in" on a field on a form) without using Sendkeys? > >Thanks, >Barb Ryan > > > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Sat Dec 13 19:12:22 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 13 Dec 2003 17:12:22 -0800 Subject: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? In-Reply-To: <000001c3c1d0$42c71ed0$6701a8c0@rock> Message-ID: Well said Arthur: The SQL versions that each company has designed is different but if you know one version well that knowledge can be leveraged to any of these platforms. Recently, I tested a function in A2K and when it was running perfectly, just cut and pasted into an Oracle function and after about fifteen minutes of twiddling around it was operation...elseif to elsif, = to :=, ; at the end of each statement and a slightly different set of declaration.. done. I suggest that if you learn to program one you learn them all. My two cents worth. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Saturday, December 13, 2003 3:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? All of this could just as well be taught in an MBA course. When the late Doctor Codd enunciated the first rules (NOT SQL -- most emphatically NOT SQL), the concept was a portable language that all vendors could implement. Since then the marketing crew at every company has promoted vendor-specific additions to the core language. The result is, pretty much, that if you are an Oracle expert you have a lot to learn about MS-SQL, and if you're a Postgres expert ditto, and if you're an MS-SQL ditto. You can write sprocs for Oracle in Java. MS responds by letting us write sprocs in ADO.NET. It's still unclear what MySQL intends. I don't know anytbing about DB2 so cannot provide a similar statement. Now as to the statement about Access not being a good tool for teaching SQL. I think that the real question is whether a GUI query designer is the right tool. On this question, I think the answer is yes. Graphical tools are infinitely better than command line tools, because a picture is 1000 words. Imagine typing "turn left 90 degrees" into the keyboard in your car. A steering wheel is a graphical tool. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Friday, December 12, 2003 10:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? We teach then standard SQL as once they leave me they move onto various systems but mainly Ingres which is the "corporate" db we use in the University. Also doing a MySQL course on Tuesday. That should be interesting. Martin ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, December 12, 2003 9:58 AM Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? > But do you teach them Access SQL, or a more standard variety? > > > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Friday, December 12, 2003 11:53 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > Is Access a suitable tool for teaching database concepts to students? > > Seems to be the subject > > I use Access to teach database design to students on a Computer Degree > course. I use non graphical tools for teaching SQL because they are > not permitted to sue them on the course same goes for HTML > > > Martin > > > ----- Original Message ----- > From: "Brett Barabash" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, December 12, 2003 9:46 AM > Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > > IMHO, the Access query designer is a rotten way to teach someone how > > to write SQL code. I have developed Access apps for 8 years now, > > and I still > > cannot get more than 2 tables to join without using the QBE grid. > > For example (using the Northwind database), if I wanted to join the > > Orders > table > > to the Order Details and Employees tables in Transact SQL, it would > > look > > like: > > > > --- > > SELECT Orders.* > > FROM Orders > > INNER JOIN [Order Details] > > ON [Order Details].[Order ID] = Orders.[Order ID] > > INNER JOIN Employees > > ON Employees.[Employee ID] = Orders.[Employee ID] > > --- > > > > Simple, intuitive, easy to learn. In fact, I wrote that snippet > > just now > in > > this email because it is so simple to do. > > > > Access, however, looks like (taken directly from the QBE grid > > contents): > > --- > > SELECT Orders.* > > FROM Employees > > INNER JOIN (Orders > > INNER JOIN [Order Details] > > ON Orders.[Order ID] = [Order Details].[Order ID]) > > ON Employees.[Employee ID] = Orders.[Employee ID]; > > --- > > > > How the h*ll are you supposed to teach the rules of this join syntax > > to someone just learning SQL? You could spend weeks just teaching > > them the various Jet engine rules for bracket placement! > > > > When I took SQL Server in college, we didn't have any visual design tools > to > > use, just the query analyzer. Students completely new to SQL in > > general were writing complex queries after the first day! > > > > OTOH, the Access QBE grid is far more useful than the one in > > Enterprise Manager, which is a good thing since I need to use it for > > virtually all of > > my Access queries. Whereas I tend to manually type 90% of my SQL > > Server queries in the query analyzer. > > > > > > -----Original Message----- > > From: Lawhon, Alan C Contractor/Morgan Research > > [mailto:alan.lawhon at us.army.mil] > > Sent: Friday, December 12, 2003 11:22 AM > > To: 'accessd at databaseadvisors.com' > > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > > Concepts? > > > > > > This was posted on Slashdot last night. I'm sure some of the folks > > on > here, > > (like maybe Susan Harkins, Martin Reid, and John Colby), might have > > an interesting opinion about whether or not Access is a good > > "training > vehicle" > > for > > learning SQL. > > > > > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid= 146& > > tid= > > 185&tid=99 > > > > P.S. About midway down in the reader postings, there are links to several > > articles comparing the pros and cons of Access [SQL] to other SQL > products. > > > > > > Alan C. Lawhon > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: 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. > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: 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. > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Sat Dec 13 20:56:36 2003 From: john at winhaven.net (John Bartow) Date: Sat, 13 Dec 2003 20:56:36 -0600 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? In-Reply-To: Message-ID: I would think of sticking to ANSI SQL and just touch on the various proprietary implementations. That's pretty much how I learned SQL. It's served me well. I think the various proprietary implementations could be an elective course on their own. I also second Arthur's comment, its not about what tool but what interface - GUI or text based. Access has little to do with the discussion until you decide you should use a GUI. Mentioning Access just polarizes the issue. I learned using text base on Unix. I love the GUI but then that's not how I learned it so I have a good reason for loving it :o) JB > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Friday, December 12, 2003 11:22 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > This was posted on Slashdot last night. I'm sure some of the > folks on here, > (like maybe Susan Harkins, Martin Reid, and John Colby), might have an > interesting opinion about whether or not Access is a good > "training vehicle" for > learning SQL. > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=threa d&tid=146&tid= 185&tid=99 P.S. About midway down in the reader postings, there are links to several articles comparing the pros and cons of Access [SQL] to other SQL products. Alan C. Lawhon _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Sun Dec 14 03:04:39 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 Dec 2003 01:04:39 -0800 Subject: [AccessD] Sort of like a filter only not References: <004701c3c18f$99f796d0$b274d0d5@minster33c3r25> Message-ID: <000701c3c221$500574b0$c4f66e51@martin1> Could you drop the combo and have them key in the company name then do a filter? Open a blank form? Just bouncing ideas to avoid a rewrite Martin ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Saturday, December 13, 2003 7:41 AM Subject: RE: [AccessD] Sort of like a filter only not > No Martin that's just not so in this case. How, for example, do you use a > combo to select something without displaying the records around the one you > need? It's not a training issue. > > Andy > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > > Sent: 13 December 2003 15:26 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Of course the simple appraoch is to train up the users. > > > > Martin > > > > > > ----- Original Message ----- > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Saturday, December 13, 2003 5:44 AM > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > No, but if I encrypt (ie scramble in a structured way) then I can > > unencrypt > > > that one and encrypt another customer afterwards. > > > > > > Andy > > > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > > > > Brock > > > > Sent: 13 December 2003 12:02 > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > Hi Andy > > > > > > > > I see. But my idea wouldn't work if the sales person was visiting > > > > several clients per day - except if all customers were > > scrambled and > > > > he brings a list telling which real customer, say, "McAllen & > > > > Daughters Ltd." represents. > > > > > > > > /gustav > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > many screens. > > > > > Here you can select a financial period and year; select a > > > > customer or > > > > > a customer group or leave blank for all customers, hit > > Print and a > > > > > report will show the orders for those criteria, a summary of > > > > > expenditure, render it into GBP if it was export and so on. > > > > And that's > > > > > just one of many, many examples. Now the pitfalls are > > that a) the > > > > > sales person may/will drop down the combo to choose the > > customer, > > > > > thereby showing other customers or b) may inadvertently > > select the > > > > > wrong customer and print the report (and hand it over to his > > > > > client before he realises his mistake - aargh!) or c) hit Print > > > > > without selecting a customer and therefore list > > activity for all > > > > > customers. This is the sort of thing I'm talking about. And as I > > > > stressed right > > > > > from the start there are oodles of such situations in > > the system > > > > > so attacking each one individually is not an option. > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > "corrupting" the > > > > > rest of the data so that it's there but unrecognisable. If > > > > I did that > > > > > to selected fields (names, addresses, phone nos, email > > > > addresses and > > > > > so - not too many I don't think) I think that would do > > > > nicely. I guess > > > > > I could even do it by encryption so that it's reversible. > > > > That way my > > > > > on-the-road salesperson could "corrupt" all but one > > customer, then > > > > > un-corrupt all after first meeting and re-corrupt all > > but a second > > > > > customer when they get to the next place. > > > > > > > > > -- > > > > > Andy Lacey > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > From: "Access Developers discussion and problem solving" > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > Hi Andy > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > Website: > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Sun Dec 14 06:41:26 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 14 Dec 2003 12:41:26 -0000 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <000701c3c221$500574b0$c4f66e51@martin1> Message-ID: <00ce01c3c23f$97235830$b274d0d5@minster33c3r25> Hi Susan and Martin Actually I'm really happy with Gustav's suggestion to scramble the other data, so there's no rewite involved but to clarify. To access the main customer screen with the customer's basic details one needs to identify the customer. Ok you can enter his unique code but who's going to remember all of those? No, what you do is pull down the combo, enter the start the start of his name and navigate to the right entry. And being as a single customer name (imagine a large conglomerate) may appear many times because each subsidiary is a customer you need to be looking out for the right company name and location. Then customers have orders, they have projects, they have invoices, they have contact names, quotations, contracts, manufacturing jobs and so on and so on and so on. So, to give an example, to display a contract's details (without going via the main customer screen which you can do but don't hve to) one can, if one knows it, enter a contract number, but no-one does, so what the user does is pull down a combo which again shows customer and enough details to identify the contract. And this kind of exercise is repeated over and over again in order to give users rapid access to the screens and/or reports they want. And the info on the combos varies according to the type of data being sought (financial, production, quality, distribution....). So it ain't easy - but I think a variation on Gustav's approach (encrypting and de-encrypting the data) will work great, and thanks to everyone who contributed their ideas. Cheers Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 14 December 2003 09:05 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sort of like a filter only not > > > Could you drop the combo and have them key in the company > name then do a filter? > > Open a blank form? > > Just bouncing ideas to avoid a rewrite > > Martin > > ----- Original Message ----- > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, December 13, 2003 7:41 AM > Subject: RE: [AccessD] Sort of like a filter only not > > > > No Martin that's just not so in this case. How, for example, do you > > use a combo to select something without displaying the > records around > > the one > you > > need? It's not a training issue. > > > > Andy > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin > > > Reid > > > Sent: 13 December 2003 15:26 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > Of course the simple appraoch is to train up the users. > > > > > > Martin > > > > > > > > > ----- Original Message ----- > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > > > > Sent: Saturday, December 13, 2003 5:44 AM > > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > > > > No, but if I encrypt (ie scramble in a structured way) > then I can > > > unencrypt > > > > that one and encrypt another customer afterwards. > > > > > > > > Andy > > > > > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > Gustav Brock > > > > > Sent: 13 December 2003 12:02 > > > > > To: Access Developers discussion and problem solving > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > I see. But my idea wouldn't work if the sales person was > > > > > visiting several clients per day - except if all > customers were > > > scrambled and > > > > > he brings a list telling which real customer, say, "McAllen & > > > > > Daughters Ltd." represents. > > > > > > > > > > /gustav > > > > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > > many screens. > > > > > > Here you can select a financial period and year; select a > > > > > customer or > > > > > > a customer group or leave blank for all customers, hit > > > Print and a > > > > > > report will show the orders for those criteria, a > summary of > > > > > > expenditure, render it into GBP if it was export and so on. > > > > > And that's > > > > > > just one of many, many examples. Now the pitfalls are > > > that a) the > > > > > > sales person may/will drop down the combo to choose the > > > customer, > > > > > > thereby showing other customers or b) may inadvertently > > > select the > > > > > > wrong customer and print the report (and hand it > over to his > > > > > > client before he realises his mistake - aargh!) or c) hit > > > > > > Print without selecting a customer and therefore list > > > activity for all > > > > > > customers. This is the sort of thing I'm talking > about. And as > > > > > > I > > > > > stressed right > > > > > > from the start there are oodles of such situations in > > > the system > > > > > > so attacking each one individually is not an option. > > > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > > "corrupting" the > > > > > > rest of the data so that it's there but unrecognisable. If > > > > > I did that > > > > > > to selected fields (names, addresses, phone nos, email > > > > > addresses and > > > > > > so - not too many I don't think) I think that would do > > > > > nicely. I guess > > > > > > I could even do it by encryption so that it's reversible. > > > > > That way my > > > > > > on-the-road salesperson could "corrupt" all but one > > > customer, then > > > > > > un-corrupt all after first meeting and re-corrupt all > > > but a second > > > > > > customer when they get to the next place. > > > > > > > > > > > -- > > > > > > Andy Lacey > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > > From: "Access Developers discussion and problem solving" > > > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > > Website: > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From mwp.reid at qub.ac.uk Sun Dec 14 08:37:19 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sun, 14 Dec 2003 06:37:19 -0800 Subject: [AccessD] Sort of like a filter only not References: <00ce01c3c23f$97235830$b274d0d5@minster33c3r25> Message-ID: <002701c3c24f$f2d005b0$c4f66e51@martin1> Andy I missed that post. Just out of interest can you explain how it would work? Martin ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Sunday, December 14, 2003 4:41 AM Subject: RE: [AccessD] Sort of like a filter only not > Hi Susan and Martin > > Actually I'm really happy with Gustav's suggestion to scramble the other > data, so there's no rewite involved but to clarify. > > To access the main customer screen with the customer's basic details one > needs to identify the customer. Ok you can enter his unique code but who's > going to remember all of those? No, what you do is pull down the combo, > enter the start the start of his name and navigate to the right entry. And > being as a single customer name (imagine a large conglomerate) may appear > many times because each subsidiary is a customer you need to be looking out > for the right company name and location. > > Then customers have orders, they have projects, they have invoices, they > have contact names, quotations, contracts, manufacturing jobs and so on and > so on and so on. So, to give an example, to display a contract's details > (without going via the main customer screen which you can do but don't hve > to) one can, if one knows it, enter a contract number, but no-one does, so > what the user does is pull down a combo which again shows customer and > enough details to identify the contract. And this kind of exercise is > repeated over and over again in order to give users rapid access to the > screens and/or reports they want. And the info on the combos varies > according to the type of data being sought (financial, production, quality, > distribution....). > > So it ain't easy - but I think a variation on Gustav's approach (encrypting > and de-encrypting the data) will work great, and thanks to everyone who > contributed their ideas. > > Cheers > > Andy Lacey > http://www.minstersystems.co.uk > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > > Sent: 14 December 2003 09:05 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Could you drop the combo and have them key in the company > > name then do a filter? > > > > Open a blank form? > > > > Just bouncing ideas to avoid a rewrite > > > > Martin > > > > ----- Original Message ----- > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > > > Sent: Saturday, December 13, 2003 7:41 AM > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > No Martin that's just not so in this case. How, for example, do you > > > use a combo to select something without displaying the > > records around > > > the one > > you > > > need? It's not a training issue. > > > > > > Andy > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin > > > > Reid > > > > Sent: 13 December 2003 15:26 > > > > To: Access Developers discussion and problem solving > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > Of course the simple appraoch is to train up the users. > > > > > > > > Martin > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Andy Lacey" > > > > To: "'Access Developers discussion and problem solving'" > > > > > > > > Sent: Saturday, December 13, 2003 5:44 AM > > > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > No, but if I encrypt (ie scramble in a structured way) > > then I can > > > > unencrypt > > > > > that one and encrypt another customer afterwards. > > > > > > > > > > Andy > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > > Gustav Brock > > > > > > Sent: 13 December 2003 12:02 > > > > > > To: Access Developers discussion and problem solving > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > > I see. But my idea wouldn't work if the sales person was > > > > > > visiting several clients per day - except if all > > customers were > > > > scrambled and > > > > > > he brings a list telling which real customer, say, "McAllen & > > > > > > Daughters Ltd." represents. > > > > > > > > > > > > /gustav > > > > > > > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > > > many screens. > > > > > > > Here you can select a financial period and year; select a > > > > > > customer or > > > > > > > a customer group or leave blank for all customers, hit > > > > Print and a > > > > > > > report will show the orders for those criteria, a > > summary of > > > > > > > expenditure, render it into GBP if it was export and so on. > > > > > > And that's > > > > > > > just one of many, many examples. Now the pitfalls are > > > > that a) the > > > > > > > sales person may/will drop down the combo to choose the > > > > customer, > > > > > > > thereby showing other customers or b) may inadvertently > > > > select the > > > > > > > wrong customer and print the report (and hand it > > over to his > > > > > > > client before he realises his mistake - aargh!) or c) hit > > > > > > > Print without selecting a customer and therefore list > > > > activity for all > > > > > > > customers. This is the sort of thing I'm talking > > about. And as > > > > > > > I > > > > > > stressed right > > > > > > > from the start there are oodles of such situations in > > > > the system > > > > > > > so attacking each one individually is not an option. > > > > > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > > > "corrupting" the > > > > > > > rest of the data so that it's there but unrecognisable. If > > > > > > I did that > > > > > > > to selected fields (names, addresses, phone nos, email > > > > > > addresses and > > > > > > > so - not too many I don't think) I think that would do > > > > > > nicely. I guess > > > > > > > I could even do it by encryption so that it's reversible. > > > > > > That way my > > > > > > > on-the-road salesperson could "corrupt" all but one > > > > customer, then > > > > > > > un-corrupt all after first meeting and re-corrupt all > > > > but a second > > > > > > > customer when they get to the next place. > > > > > > > > > > > > > -- > > > > > > > Andy Lacey > > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > > > From: "Access Developers discussion and problem solving" > > > > > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > > > > > _______________________________________________ > > > > > > AccessD mailing list > > > > > > AccessD at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > > > Website: > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > Website: > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From andy at minstersystems.co.uk Sun Dec 14 10:31:21 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 14 Dec 2003 16:31:21 -0000 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <002701c3c24f$f2d005b0$c4f66e51@martin1> Message-ID: <00ec01c3c25f$b5279e20$b274d0d5@minster33c3r25> Martin Well Gustav originally said: >>We have the same need. As it is close to impossible to create and maintain a set of demo-data that mimics real life, we >>pick a copy of a relevant client's data and "anonymise" these by renaming all customers and other identifiable data (like >>employees' names and project names) to fantasy names." I took that a little further with: >>At the moment I like your idea Gustav of deliberately "corrupting" the rest of the data so that it's there but >>unrecognisable. If I did that to selected fields (names, addresses, phone nos, email addresses and so - not too many I >> don't think) I think that would do nicely. I guess I could even do it by encryption so that it's reversible. That way my >>on-the-road salesperson could "corrupt" all but one customer, then un-corrupt all after first meeting and re-corrupt all >>but a second customer when they get to the next place." Andy > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 14 December 2003 14:37 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sort of like a filter only not > > > Andy > > I missed that post. Just out of interest can you explain how > it would work? > > Martin > > > ----- Original Message ----- > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, December 14, 2003 4:41 AM > Subject: RE: [AccessD] Sort of like a filter only not > > > > Hi Susan and Martin > > > > Actually I'm really happy with Gustav's suggestion to scramble the > > other data, so there's no rewite involved but to clarify. > > > > To access the main customer screen with the customer's > basic details > > one needs to identify the customer. Ok you can enter his > unique code > > but who's going to remember all of those? No, what you do > is pull down > > the combo, enter the start the start of his name and > navigate to the > > right entry. And being as a single customer name (imagine a large > > conglomerate) may appear many times because each subsidiary is a > > customer you need to be looking > out > > for the right company name and location. > > > > Then customers have orders, they have projects, they have invoices, > > they have contact names, quotations, contracts, > manufacturing jobs and > > so on > and > > so on and so on. So, to give an example, to display a contract's > > details (without going via the main customer screen which > you can do > > but don't hve > > to) one can, if one knows it, enter a contract number, but > no-one does, so > > what the user does is pull down a combo which again shows > customer and > > enough details to identify the contract. And this kind of > exercise is > > repeated over and over again in order to give users rapid > access to the > > screens and/or reports they want. And the info on the combos varies > > according to the type of data being sought (financial, production, > quality, > > distribution....). > > > > So it ain't easy - but I think a variation on Gustav's approach > (encrypting > > and de-encrypting the data) will work great, and thanks to everyone > > who contributed their ideas. > > > > Cheers > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin > > > Reid > > > Sent: 14 December 2003 09:05 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > Could you drop the combo and have them key in the company > name then > > > do a filter? > > > > > > Open a blank form? > > > > > > Just bouncing ideas to avoid a rewrite > > > > > > Martin > > > > > > ----- Original Message ----- > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > > > > Sent: Saturday, December 13, 2003 7:41 AM > > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > > > > No Martin that's just not so in this case. How, for example, do > > > > you use a combo to select something without displaying the > > > records around > > > > the one > > > you > > > > need? It's not a training issue. > > > > > > > > Andy > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > Martin Reid > > > > > Sent: 13 December 2003 15:26 > > > > > To: Access Developers discussion and problem solving > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > Of course the simple appraoch is to train up the users. > > > > > > > > > > Martin > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: "Andy Lacey" > > > > > To: "'Access Developers discussion and problem solving'" > > > > > > > > > > Sent: Saturday, December 13, 2003 5:44 AM > > > > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > > No, but if I encrypt (ie scramble in a structured way) > > > then I can > > > > > unencrypt > > > > > > that one and encrypt another customer afterwards. > > > > > > > > > > > > Andy > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On > Behalf Of > > > > > > > Gustav Brock > > > > > > > Sent: 13 December 2003 12:02 > > > > > > > To: Access Developers discussion and problem solving > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > > > > I see. But my idea wouldn't work if the sales person was > > > > > > > visiting several clients per day - except if all > > > customers were > > > > > scrambled and > > > > > > > he brings a list telling which real customer, > say, "McAllen > > > > > > > & Daughters Ltd." represents. > > > > > > > > > > > > > > /gustav > > > > > > > > > > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > > > > many screens. > > > > > > > > Here you can select a financial period and > year; select a > > > > > > > customer or > > > > > > > > a customer group or leave blank for all customers, hit > > > > > Print and a > > > > > > > > report will show the orders for those criteria, a > > > summary of > > > > > > > > expenditure, render it into GBP if it was export and so > > > > > > > > on. > > > > > > > And that's > > > > > > > > just one of many, many examples. Now the pitfalls are > > > > > that a) the > > > > > > > > sales person may/will drop down the combo to choose the > > > > > customer, > > > > > > > > thereby showing other customers or b) may inadvertently > > > > > select the > > > > > > > > wrong customer and print the report (and hand it > > > over to his > > > > > > > > client before he realises his mistake - aargh!) > or c) hit > > > > > > > > Print without selecting a customer and therefore list > > > > > activity for all > > > > > > > > customers. This is the sort of thing I'm talking > > > about. And as > > > > > > > > I > > > > > > > stressed right > > > > > > > > from the start there are oodles of such situations in > > > > > the system > > > > > > > > so attacking each one individually is not an option. > > > > > > > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > > > > "corrupting" the > > > > > > > > rest of the data so that it's there but > unrecognisable. If > > > > > > > I did that > > > > > > > > to selected fields (names, addresses, phone nos, email > > > > > > > addresses and > > > > > > > > so - not too many I don't think) I think that would do > > > > > > > nicely. I guess > > > > > > > > I could even do it by encryption so that it's > reversible. > > > > > > > That way my > > > > > > > > on-the-road salesperson could "corrupt" all but one > > > > > customer, then > > > > > > > > un-corrupt all after first meeting and re-corrupt all > > > > > but a second > > > > > > > > customer when they get to the next place. > > > > > > > > > > > > > > > -- > > > > > > > > Andy Lacey > > > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > > > > From: "Access Developers discussion and problem > solving" > > > > > > > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > > > > > > > _______________________________________________ > > > > > > > AccessD mailing list > > > > > > > AccessD at databaseadvisors.com > > > > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > > > > Website: > > > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > AccessD mailing list > > > > > > AccessD at databaseadvisors.com > > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > > Website: > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From hoopesg at hotmail.com Sun Dec 14 11:21:33 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Sun, 14 Dec 2003 11:21:33 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: I feel like I'm so, so close, but I'm getting another error message. This time it's in the Execute strSQL statement: Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt IN 'H:\Gouldnan\HSL\mcobudget_fe_NG.mdb'" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Clo When it reaches cnn.Execute strSQL, I get an error that says "The SELECT statement contains a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect." Drew, if you can figure out this one I'd appreciate your help. I'm also going to try the solutions offered by Steve, Alun and Shaun. Thank you all for your ideas, I hope this project can be put in the can tomorrow. From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 19:39:38 -0600 Aha, found the problem. Here's the strSQL statement: strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" The problem is the 'FROM qryGroupRpt' part. You are going to run this SQL against EXCEL, not the Access database, so you need to add an IN statement to the FROM clause, so it would read : 'FROM qryGroupRpt IN "C:\PathToDB\MyDatabase.mdb"' Make sense? Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Friday, December 12, 2003 4:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Here's the full procedure: Sub CenterGroupSheets() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = CurrentProject.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "e:\entprs\billina\budget fy05\mcoBudget_fe.mdb" End With ExcelConnection cnn, "e:\entprs\billina\budget fy05\MCOBudget_Macro.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Area FROM qryGroupRpt GROUP BY Area" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:36:06 -0600 What's the strSQL? (I know it's your SQL string, but what is it's value?) Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 4:19 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Tired of slow downloads and busy signals? Get a high-speed Internet connection! Comparison-shop your local high-speed providers here. https://broadband.msn.com From gustav at cactus.dk Sun Dec 14 11:36:18 2003 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 14 Dec 2003 18:36:18 +0100 Subject: [AccessD] Export to multiple Excel sheets In-Reply-To: References: Message-ID: <11124670233.20031214183618@cactus.dk> Hi Gina > When it reaches cnn.Execute strSQL, I get an error that says "The SELECT > statement contains a reserved word or an argument name that is misspelled or > missing, or the punctuation is incorrect." That word could very well be "Desc". /gustav > strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, From dwaters at usinternet.com Sun Dec 14 11:45:47 2003 From: dwaters at usinternet.com (Dan Waters) Date: Sun, 14 Dec 2003 11:45:47 -0600 Subject: [AccessD] Effect of XP SP2 for developpers? In-Reply-To: <27697232.1071316310840.JavaMail.root@sniper.marix.com> Message-ID: <000001c3c26a$1b739f30$de1811d8@DanWaters> The following site address this question. Personally, I can't tell if Access is affected, but Windows developers definitely will be affected. (Watch for wrap) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/ securityinxpsp2.asp Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Saturday, December 13, 2003 5:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Effect of XP SP2 for developpers? I understood something about Windows XP SP2 thats gonna get in beta at he end of year having important effect for developers... Is this gooing to effect or app's in any way? Erwin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Sun Dec 14 11:55:41 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Sun, 14 Dec 2003 18:55:41 +0100 Subject: [AccessD] Effect of XP SP2 for developpers? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFCD@stekelbes.ithelps.local> Thx I'll take a look. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Sunday, December 14, 2003 6:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Effect of XP SP2 for developpers? The following site address this question. Personally, I can't tell if Access is affected, but Windows developers definitely will be affected. (Watch for wrap) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/h tml/ securityinxpsp2.asp Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Saturday, December 13, 2003 5:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Effect of XP SP2 for developpers? I understood something about Windows XP SP2 thats gonna get in beta at he end of year having important effect for developers... Is this gooing to effect or app's in any way? Erwin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hoopesg at hotmail.com Sun Dec 14 12:19:47 2003 From: hoopesg at hotmail.com (Gina Hoopes) Date: Sun, 14 Dec 2003 12:19:47 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: Oh, how I wish that would have solved it! I ran a make-table query on my query so I could change that field name to Descrip (and changed the references to look at the table) but I got the same error. :( Thank you, Gina From: Gustav Brock Reply-To: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: Re: [AccessD] Export to multiple Excel sheets Date: Sun, 14 Dec 2003 18:36:18 +0100 Hi Gina > When it reaches cnn.Execute strSQL, I get an error that says "The SELECT > statement contains a reserved word or an argument name that is misspelled or > missing, or the punctuation is incorrect." That word could very well be "Desc". /gustav > strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, _________________________________________________________________ Tired of slow downloads and busy signals? Get a high-speed Internet connection! Comparison-shop your local high-speed providers here. https://broadband.msn.com From pedro at plex.nl Sun Dec 14 10:55:12 2003 From: pedro at plex.nl (Pedro Janssen) Date: Sun, 14 Dec 2003 17:55:12 +0100 Subject: [AccessD] matching field error References: Message-ID: <004701c3c270$9d631d30$f6c581d5@pedro> Hello Charlotte, I now that that's a difference. The default field is empty (no default or: is null, (what i wrote in my last mail)) Pedro ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Friday, December 12, 2003 5:26 PM Subject: RE: [AccessD] matching field error > Is the default Null or is there no default? It isn't the same thing. > > Charlotte Foust > > -----Original Message----- > From: pedro at plex.nl [mailto:pedro at plex.nl] > Sent: Friday, December 12, 2003 4:20 AM > To: AccessD at databaseadvisors.com > Subject: RE: [AccessD] matching field error > > > Sorry i mistyped: The default is Null (empty). > With 0, zero, null it seems to be that i sometimes type something > different as a think. Sorry for this. > > Any new ideas? > > Pedro > > > > > In antwoord op: > > > From: "Andy Lacey" > > To: "'Access Developers discussion and problem solving'" > > Date: Fri, 12 Dec 2003 07:34:29 -0000 > > Subject: RE: [AccessD] matching field error > > > > > > Actually Pedro you said the default is zero (see your previous post > > below) , so we thought that was it. > > > > Andy Lacey > > http://www.minstersystems.co.uk > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > Pedro Janssen > > > Sent: 11 December 2003 21:56 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] matching field error > > > > > > > > > Hello Andy and Charlotte, > > > > > > i explained before that the default value pro[perty of > > > PrTestID is empty (no > > > value) so this can't be the problem. > > > > > > Pedro > > > > > > > > > ----- Original Message ----- > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > > > > Sent: Wednesday, December 10, 2003 10:51 PM > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > Well thought Charlotte, that sounds like the issue. Pedro, > > > change the > > > > properties of PrTestiD by removing its default value and > > > see if that > > > > cures it. > > > > > > > > Andy Lacey > > > > http://www.minstersystems.co.uk > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf > > > Of Charlotte > > > > > Foust > > > > > Sent: 10 December 2003 20:52 > > > > > To: Access Developers discussion and problem solving > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > The point is that if you don't have a record in the lookup table > > > > > with zero as its primary key, having a default of zero will > cause > > > > > you problems with referential integrity in place. > > > > > > > > > > Charlotte Foust > > > > > > > > > > -----Original Message----- > > > > > From: Pedro Janssen [mailto:pedro at plex.nl] > > > > > Sent: Wednesday, December 10, 2003 11:30 AM > > > > > To: Access Developers discussion and problem solving > > > > > Subject: Re: [AccessD] matching field error > > > > > > > > > > > > > > > The default value is zero, so this isn't the problem. Thanks for > > > > > thinking with me. > > > > > > > > > > Anyone else some ideas. > > > > > > > > > > Pedro > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > From: "Charlotte Foust" > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > Sent: Wednesday, December 10, 2003 5:51 PM > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > > Unless it is specifically set to null, a numeric field > > > usually has > > > > > > a default value of zero. If you're dealing with numeric keys, > > > > > > this might be tripping you up. > > > > > > > > > > > > Charlotte Foust > > > > > > > > > > > > -----Original Message----- > > > > > > From: pedro at plex.nl [mailto:pedro at plex.nl] > > > > > > Sent: Wednesday, December 10, 2003 3:33 AM > > > > > > To: AccessD at databaseadvisors.com > > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > > > > Hello Andy, > > > > > > > > > > > > In the help function i saw what the error means. But it > > > > > made no sence > > > > > > to me. You say: "Is there any way they could have zeroes or > > > > > > zero-length strings rather than nulls". When a field is > > > > > empty i think > > > > > > there is nothing in it. How can it be that a field is empty > > > > > but a zero > > > > > > > > > > > is present?? > > > > > > > > > > > > Pedro > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > In antwoord op: > > > > > > > > > > > > > From: "Andy Lacey" > > > > > > > To: "'Access Developers discussion and problem solving'" > > > > > > > Date: Wed, 10 Dec 2003 09:10:22 -0000 > > > > > > > Subject: RE: [AccessD] matching field error > > > > > > > > > > > > > > > > > > > > > Pedro > > > > > > > The implication is that the you have Relationships > > > defined with > > > > > > > referential integrity. You are saving a record with a > > > > > test id which > > > > > > > doesn't match to a key value in the tblTest table. The > > > > > odd thing is > > > > > > > that this shouldn't occur if the fields are Null. Is > > > > > there any way > > > > > > > they could have zeroes or zero-length strings rather > > > tha nulls, > > > > > > > because that would do it. > > > > > > > > > > > > > > Andy Lacey > > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: accessd-bounces at databaseadvisors.com > > > > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > > > > Pedro Janssen > > > > > > > > Sent: 09 December 2003 22:41 > > > > > > > > To: AccessD at databaseadvisors.com > > > > > > > > Subject: [AccessD] matching field error > > > > > > > > > > > > > > > > > > > > > > > > Hello Group, > > > > > > > > > > > > > > > > i get the following error in a form, when i close it > > > > > and the field > > > > > > > > > > > > > 'PrTestID' is empty: > > > > > > > > > > > > > > > > The microsoft Jet database engine cannot find a record in > > > > > > > > table 'tblTest' with key matching field(s) 'PrTestID' > > > > > > > > > > > > > > > > > > > > > > > > How is this possible, because the field isn't required? > > > > > Al the ID > > > > > > > > fields in the form give the same error when they are empty > > > > > > > > (and all aren't reqiured). > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From d.dick at uws.edu.au Sun Dec 14 16:58:50 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Dec 2003 09:58:50 +1100 Subject: [AccessD] Sort of like a filter only not References: <00ce01c3c23f$97235830$b274d0d5@minster33c3r25> Message-ID: <015d01c3c295$d75a4980$41619a89@DDICK> Hi Andy I am coming in late on this one - it may have already been solved for you. My suggestion may also be off the mark as I only skimmed a few of the posts. What about adding one extra field to the real customers table and call it say...CustomerID2 or something equally benign :-) - data type = number Then add a local table, let's call it ...tblCompaniesICanSee - One field only called CompanyID (Same data type as Company ID in the real Companies Table) Then just add the real company id value to the tblCompaniesICanSee table for the companies you want 'em to see. So the tblCompaniesICanSee table may have 3 entries say... 9, 15 and 26 in it. Loop through all the records in tblCompaniesICanSee and populate your combos or forms with the resultant list of companies that have a CompanyID of 9,15 and 26. You can then manage and administer (or someone you nominate) the companies they can or cannot see. You could even set it up with a 2 field set up to show ranges. eg companies 9 to 26 inclusive etc. Anyway just my offering Have a great day Darren From d.dick at uws.edu.au Sun Dec 14 18:30:36 2003 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 15 Dec 2003 11:30:36 +1100 Subject: [AccessD] A2K: Word Merge not working on XP Message-ID: <01c001c3c2a2$a8777f40$41619a89@DDICK> Hello all I have the following command working well through Access 2000 running Windows 2000 DoCmd.RunCommand acCmdWordMailMerge But in windows XP also running Access 2000 no joy. The whole process locks (after clicking the relevant button) Any ideas???? Many thanks in advance Darren From rgilimited at btconnect.com Mon Dec 15 02:55:05 2003 From: rgilimited at btconnect.com (Robin Lawrence) Date: Mon, 15 Dec 2003 08:55:05 -0000 Subject: [AccessD] Sort of like a filter only not In-Reply-To: <00ce01c3c23f$97235830$b274d0d5@minster33c3r25> Message-ID: <000101c3c2e9$228ed3a0$5373a8c0@local> Andy, Probably in a bit late on this - what I would do would be to add a yes/no column to your customers table - add the condition to your combo query - you can then enable or disable the customers who will display in the combo. You could make this table accessible from a form for the operator to change the selection as he goes to different customers... Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: 14 December 2003 12:41 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Sort of like a filter only not Hi Susan and Martin Actually I'm really happy with Gustav's suggestion to scramble the other data, so there's no rewite involved but to clarify. To access the main customer screen with the customer's basic details one needs to identify the customer. Ok you can enter his unique code but who's going to remember all of those? No, what you do is pull down the combo, enter the start the start of his name and navigate to the right entry. And being as a single customer name (imagine a large conglomerate) may appear many times because each subsidiary is a customer you need to be looking out for the right company name and location. Then customers have orders, they have projects, they have invoices, they have contact names, quotations, contracts, manufacturing jobs and so on and so on and so on. So, to give an example, to display a contract's details (without going via the main customer screen which you can do but don't hve to) one can, if one knows it, enter a contract number, but no-one does, so what the user does is pull down a combo which again shows customer and enough details to identify the contract. And this kind of exercise is repeated over and over again in order to give users rapid access to the screens and/or reports they want. And the info on the combos varies according to the type of data being sought (financial, production, quality, distribution....). So it ain't easy - but I think a variation on Gustav's approach (encrypting and de-encrypting the data) will work great, and thanks to everyone who contributed their ideas. Cheers Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 14 December 2003 09:05 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sort of like a filter only not > > > Could you drop the combo and have them key in the company > name then do a filter? > > Open a blank form? > > Just bouncing ideas to avoid a rewrite > > Martin > > ----- Original Message ----- > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, December 13, 2003 7:41 AM > Subject: RE: [AccessD] Sort of like a filter only not > > > > No Martin that's just not so in this case. How, for example, do you > > use a combo to select something without displaying the > records around > > the one > you > > need? It's not a training issue. > > > > Andy > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin > > > Reid > > > Sent: 13 December 2003 15:26 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > Of course the simple appraoch is to train up the users. > > > > > > Martin > > > > > > > > > ----- Original Message ----- > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > > > > Sent: Saturday, December 13, 2003 5:44 AM > > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > > > > No, but if I encrypt (ie scramble in a structured way) > then I can > > > unencrypt > > > > that one and encrypt another customer afterwards. > > > > > > > > Andy > > > > > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > Gustav Brock > > > > > Sent: 13 December 2003 12:02 > > > > > To: Access Developers discussion and problem solving > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > I see. But my idea wouldn't work if the sales person was > > > > > visiting several clients per day - except if all > customers were > > > scrambled and > > > > > he brings a list telling which real customer, say, "McAllen & > > > > > Daughters Ltd." represents. > > > > > > > > > > /gustav > > > > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > > many screens. > > > > > > Here you can select a financial period and year; select a > > > > > customer or > > > > > > a customer group or leave blank for all customers, hit > > > Print and a > > > > > > report will show the orders for those criteria, a > summary of > > > > > > expenditure, render it into GBP if it was export and so on. > > > > > And that's > > > > > > just one of many, many examples. Now the pitfalls are > > > that a) the > > > > > > sales person may/will drop down the combo to choose the > > > customer, > > > > > > thereby showing other customers or b) may inadvertently > > > select the > > > > > > wrong customer and print the report (and hand it > over to his > > > > > > client before he realises his mistake - aargh!) or c) hit > > > > > > Print without selecting a customer and therefore list > > > activity for all > > > > > > customers. This is the sort of thing I'm talking > about. And as > > > > > > I > > > > > stressed right > > > > > > from the start there are oodles of such situations in > > > the system > > > > > > so attacking each one individually is not an option. > > > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > > "corrupting" the > > > > > > rest of the data so that it's there but unrecognisable. If > > > > > I did that > > > > > > to selected fields (names, addresses, phone nos, email > > > > > addresses and > > > > > > so - not too many I don't think) I think that would do > > > > > nicely. I guess > > > > > > I could even do it by encryption so that it's reversible. > > > > > That way my > > > > > > on-the-road salesperson could "corrupt" all but one > > > customer, then > > > > > > un-corrupt all after first meeting and re-corrupt all > > > but a second > > > > > > customer when they get to the next place. > > > > > > > > > > > -- > > > > > > Andy Lacey > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > > From: "Access Developers discussion and problem solving" > > > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > > Website: > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Mon Dec 15 04:12:13 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 15 Dec 2003 10:12:13 +0000 Subject: [AccessD] Sort of like a filter only not Message-ID: <20031215101211.D12CF24E4FA@smithers.nildram.co.uk> To Darren and Robin Thanks for the ideas but my original proviso was that the system is too big to contemplate visiting every place where customers are involved and altering combos, queries, reports or whatever. Yours are both good ways to achieve what I'm after, but only if I'd been designing for this from scratch. But the system is now too wide-ranging (see earlier posts) to contemplate going through and changing the FE like this. The solution must, therefore, I think, address the data rather than the FE, which is why I like Gustav's "scrambling the data" approach. But thanks for the interest in my little problem. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Sort of like a filter only not Date: 15/12/03 08:54 Andy, Probably in a bit late on this - what I would do would be to add a yes/no column to your customers table - add the condition to your combo query - you can then enable or disable the customers who will display in the combo. You could make this table accessible from a form for the operator to change the selection as he goes to different customers... Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: 14 December 2003 12:41 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Sort of like a filter only not Hi Susan and Martin Actually I'm really happy with Gustav's suggestion to scramble the other data, so there's no rewite involved but to clarify. To access the main customer screen with the customer's basic details one needs to identify the customer. Ok you can enter his unique code but who's going to remember all of those? No, what you do is pull down the combo, enter the start the start of his name and navigate to the right entry. And being as a single customer name (imagine a large conglomerate) may appear many times because each subsidiary is a customer you need to be looking out for the right company name and location. Then customers have orders, they have projects, they have invoices, they have contact names, quotations, contracts, manufacturing jobs and so on and so on and so on. So, to give an example, to display a contract's details (without going via the main customer screen which you can do but don't hve to) one can, if one knows it, enter a contract number, but no-one does, so what the user does is pull down a combo which again shows customer and enough details to identify the contract. And this kind of exercise is repeated over and over again in order to give users rapid access to the screens and/or reports they want. And the info on the combos varies according to the type of data being sought (financial, production, quality, distribution....). So it ain't easy - but I think a variation on Gustav's approach (encrypting and de-encrypting the data) will work great, and thanks to everyone who contributed their ideas. Cheers Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid > Sent: 14 December 2003 09:05 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Sort of like a filter only not > > > Could you drop the combo and have them key in the company > name then do a filter? > > Open a blank form? > > Just bouncing ideas to avoid a rewrite > > Martin > > ----- Original Message ----- > From: "Andy Lacey" > To: "'Access Developers discussion and problem solving'" > > Sent: Saturday, December 13, 2003 7:41 AM > Subject: RE: [AccessD] Sort of like a filter only not > > > > No Martin that's just not so in this case. How, for example, do you > > use a combo to select something without displaying the > records around > > the one > you > > need? It's not a training issue. > > > > Andy > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin > > > Reid > > > Sent: 13 December 2003 15:26 > > > To: Access Developers discussion and problem solving > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > Of course the simple appraoch is to train up the users. > > > > > > Martin > > > > > > > > > ----- Original Message ----- > > > From: "Andy Lacey" > > > To: "'Access Developers discussion and problem solving'" > > > > > > Sent: Saturday, December 13, 2003 5:44 AM > > > Subject: RE: [AccessD] Sort of like a filter only not > > > > > > > > > > No, but if I encrypt (ie scramble in a structured way) > then I can > > > unencrypt > > > > that one and encrypt another customer afterwards. > > > > > > > > Andy > > > > > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > > > > Gustav Brock > > > > > Sent: 13 December 2003 12:02 > > > > > To: Access Developers discussion and problem solving > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > I see. But my idea wouldn't work if the sales person was > > > > > visiting several clients per day - except if all > customers were > > > scrambled and > > > > > he brings a list telling which real customer, say, "McAllen & > > > > > Daughters Ltd." represents. > > > > > > > > > > /gustav > > > > > > > > > > > > > > > > Not sure what you mean by "mixed up" Gustav. Take one of > > > > > many screens. > > > > > > Here you can select a financial period and year; select a > > > > > customer or > > > > > > a customer group or leave blank for all customers, hit > > > Print and a > > > > > > report will show the orders for those criteria, a > summary of > > > > > > expenditure, render it into GBP if it was export and so on. > > > > > And that's > > > > > > just one of many, many examples. Now the pitfalls are > > > that a) the > > > > > > sales person may/will drop down the combo to choose the > > > customer, > > > > > > thereby showing other customers or b) may inadvertently > > > select the > > > > > > wrong customer and print the report (and hand it > over to his > > > > > > client before he realises his mistake - aargh!) or c) hit > > > > > > Print without selecting a customer and therefore list > > > activity for all > > > > > > customers. This is the sort of thing I'm talking > about. And as > > > > > > I > > > > > stressed right > > > > > > from the start there are oodles of such situations in > > > the system > > > > > > so attacking each one individually is not an option. > > > > > > > > > > > At the moment I like your idea Gustav of deliberately > > > > > "corrupting" the > > > > > > rest of the data so that it's there but unrecognisable. If > > > > > I did that > > > > > > to selected fields (names, addresses, phone nos, email > > > > > addresses and > > > > > > so - not too many I don't think) I think that would do > > > > > nicely. I guess > > > > > > I could even do it by encryption so that it's reversible. > > > > > That way my > > > > > > on-the-road salesperson could "corrupt" all but one > > > customer, then > > > > > > un-corrupt all after first meeting and re-corrupt all > > > but a second > > > > > > customer when they get to the next place. > > > > > > > > > > > -- > > > > > > Andy Lacey > > > > > > http://www.minstersystems.co.uk > > > > > > > > > > > > > > > > > > > > > > > > > > --------- Original Message -------- > > > > > > From: "Access Developers discussion and problem solving" > > > > > > > > > > > > To: "Access Developers discussion and problem solving" > > > > > > > > > > > > Subject: Re: [AccessD] Sort of like a filter only not > > > > > > Date: 12/12/03 13:44 > > > > > > > > > > > > > > > > Hi Andy > > > > > > > > > > > Hmmm ... but why are the data initially mixed up? > > > > > > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > > > Website: > > > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > > Website: > > > http://www.databaseadvisors.com > > > > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From viner at eunet.yu Mon Dec 15 06:15:29 2003 From: viner at eunet.yu (Ervin Brindza) Date: Mon, 15 Dec 2003 13:15:29 +0100 Subject: [AccessD] Report from separated tables Message-ID: <000e01c3c305$369e4260$0100a8c0@razvoj> Hi, the situation is: there are 3 tables: tblMain(Id, fldDate) tblFirst(Id, fldItemId, Amount1, Amount2) tblSecond(Id, fldItemId, Amount3, Amount4) The tblMain is on the 1 side, and tblFirst and tblSecond are on the many side. And there is a need for summing only those records (all of them) where are the sum of Amount1>0 or Amount2>0; and Amount3>0 or Amount4>0 E.g. tblMain 1 01/01/2003 2 02/02/2003 (I'll use ItemName instead of ItemId) tblFirst 1 sugar 1.00 2.00 1 salt 3.00 4.00 2 sugar 10.00 12.00 2 water 13.00 14.00 2 pepper 0.00 0.00 tblSecond 1 sugar 11.00 2.00 1 salt 3.00 4.00 2 sugar 10.00 12.00 2 vine 23.00 24.00 The report should show all used ingredients and sum the aomunts separately: 1 sugar 32.00 28.00 2 salt 6.00 8.00 3 water 13.00 14.00 4 vine 23.00 24.00 May I use union query, subreport or something else? Many TIA, Ervin From pcs at azizaz.com Mon Dec 15 07:35:18 2003 From: pcs at azizaz.com (pcs at azizaz.com) Date: Mon, 15 Dec 2003 23:35:18 +1000 Subject: [AccessD] A97 and Axp coexisting in peace Message-ID: <200312151335.ACQ10378@dommail.onthenet.com.au> Hi, I have had hell the last week recovering from an Windows XP crash.... will not go into details.... But I have two questions, I hope you can help out with: 1) Working in the code window in A97, VBA no longer 'works' properly..... when doing a dim statement like dim strText as ..... at that point the different datatypes are not prompted. Instead MS comes to the rescue and says 'terribly sorry, but we have to shut down' etc. I know under certain circumstances the two versions of VBA of A97 and Axp are not happy coexisting.... Question is : How do we get them 'reconciled' and happy living together again????? Any help appreciated... I can start up Axp and work with VBA apparently with no problems, (apart from my own coding errors ;) .... 2) Second question: The replacement media I got from MS is WindowsXP including Service Pack 1. Any 'pitfalls' or 'gotchas' with the install of the service pack 1 ??? I seem to remember from the exchange on the list that service pack 1 somehow effects adversely Outlook Express (attachments!?) Thanks, Borge From gustav at cactus.dk Mon Dec 15 08:05:21 2003 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 15 Dec 2003 15:05:21 +0100 Subject: [AccessD] Report from separated tables In-Reply-To: <000e01c3c305$369e4260$0100a8c0@razvoj> References: <000e01c3c305$369e4260$0100a8c0@razvoj> Message-ID: <4220063559.20031215150521@cactus.dk> Hi Ervin You should be able to use a Union All query for tblFirst and tblSecond filtering for records with amounts larger than zero. Then use this as the source for a totals query where you Group By ItemID and Sum the amounts. /gustav > the situation is: there are 3 tables: > tblMain(Id, fldDate) > tblFirst(Id, fldItemId, Amount1, Amount2) > tblSecond(Id, fldItemId, Amount3, Amount4) > The tblMain is on the 1 side, and tblFirst and tblSecond are on the many side. > And there is a need for summing only those records (all of them) where are the sum of Amount1>0 or Amount2>0; and Amount3>0 or Amount4>0 > E.g. > tblMain > 1 01/01/2003 > 2 02/02/2003 > (I'll use ItemName instead of ItemId) > tblFirst > 1 sugar 1.00 2.00 > 1 salt 3.00 4.00 > 2 sugar 10.00 12.00 > 2 water 13.00 14.00 > 2 pepper 0.00 0.00 > tblSecond > 1 sugar 11.00 2.00 > 1 salt 3.00 4.00 > 2 sugar 10.00 12.00 > 2 vine 23.00 24.00 > The report should show all used ingredients and sum the aomunts separately: > 1 sugar 32.00 28.00 > 2 salt 6.00 8.00 > 3 water 13.00 14.00 > 4 vine 23.00 24.00 > May I use union query, subreport or something else? From askolits at ot.com Mon Dec 15 08:40:30 2003 From: askolits at ot.com (John Skolits) Date: Mon, 15 Dec 2003 09:40:30 -0500 Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? In-Reply-To: Message-ID: If I went back to college and had to learn SQl syntax, my guess would be that learning how to code without a GUI tool would be a better method of learning. But, I have learned my database knowledge on my own since the days of Cornerstone. (Let's see if anyone remembers that one! It was way ahead of its time). I then learned the database tools and macros in Excel and finally jumped on Access with version 1.0. Eventually, I migrated to SQL Server. And I will tell you, that if someone asked me to write a basic select query with a left join from scratch, forget it. It would take me 10 minutes (if I'm lucky). I use the Access grid, copy it over to SQL and I'm done in less than a minute. (Note: I sometimes have to fine tune the syntax). I have built very large, 400 + user systems with SQL Server and build 90% - 95% of my Stored Procedures with the Access query grid. I know many of the nuances of the Access query grid and can create very complex queries in a 10th of the time using that tool. But, from an educational standpoint, I would certainly introduce it to students as an excellent tool but still teach the basic methods. You never know how each student applies their knowledge. Some will build applications, other will become database designers on large scale systems which require very fined tunes sql statements. Each job use a different tool set. Now, I have based these comment solely on building queries, not on database design. That's a whole different world with primary/foreign keys and database normalization theories and more. Yet, if your out of college and just starting to learn query design on your own. Learn the query grid in Access. A 'Totally' excellent tool. John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C Contractor/Morgan Research Sent: Friday, December 12, 2003 12:22 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] Slashdot: SQL vs Access for Learning Database Concepts? This was posted on Slashdot last night. I'm sure some of the folks on here, (like maybe Susan Harkins, Martin Reid, and John Colby), might have an interesting opinion about whether or not Access is a good "training vehicle" for learning SQL. http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& tid= 185&tid=99 P.S. About midway down in the reader postings, there are links to several articles comparing the pros and cons of Access [SQL] to other SQL products. Alan C. Lawhon _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Dec 15 08:45:11 2003 From: askolits at ot.com (John Skolits) Date: Mon, 15 Dec 2003 09:45:11 -0500 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 In-Reply-To: <3FDA253C.7020907@shaw.ca> Message-ID: Any one ever share their Outlook colander. This always worked before with Outlook 2000, but when I try and share with Outlook 2002, the 'ACCEPT" feature in the email sent for the confirmation is missing and it says Outlook has blocked an Active component. Checked around the web and couldn't find anything? Thanks, John From pharold at proftesting.com Mon Dec 15 09:43:50 2003 From: pharold at proftesting.com (Perry Harold) Date: Mon, 15 Dec 2003 10:43:50 -0500 Subject: [AccessD] Export to multiple Excel sheets In-Reply-To: Message-ID: <001701c3c322$3c76aa20$082da8c0@D58BT131> List of reserved words for ODBC http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com: 80/support/kb/articles/Q125/9/48.ASP&NoWebContent=1 Like Gustav said - desc is one of them. Perry Harold -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gina Hoopes Sent: Sunday, December 14, 2003 12:22 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I feel like I'm so, so close, but I'm getting another error message. This time it's in the Execute strSQL statement: Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt IN 'H:\Gouldnan\HSL\mcobudget_fe_NG.mdb'" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Clo When it reaches cnn.Execute strSQL, I get an error that says "The SELECT statement contains a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect." Drew, if you can figure out this one I'd appreciate your help. I'm also going to try the solutions offered by Steve, Alun and Shaun. Thank you all for your ideas, I hope this project can be put in the can tomorrow. From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 19:39:38 -0600 Aha, found the problem. Here's the strSQL statement: strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" The problem is the 'FROM qryGroupRpt' part. You are going to run this SQL against EXCEL, not the Access database, so you need to add an IN statement to the FROM clause, so it would read : 'FROM qryGroupRpt IN "C:\PathToDB\MyDatabase.mdb"' Make sense? Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Friday, December 12, 2003 4:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Here's the full procedure: Sub CenterGroupSheets() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = CurrentProject.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "e:\entprs\billina\budget fy05\mcoBudget_fe.mdb" End With ExcelConnection cnn, "e:\entprs\billina\budget fy05\MCOBudget_Macro.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Area FROM qryGroupRpt GROUP BY Area" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:36:06 -0600 What's the strSQL? (I know it's your SQL string, but what is it's value?) Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 4:19 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Tired of slow downloads and busy signals? Get a high-speed Internet connection! Comparison-shop your local high-speed providers here. https://broadband.msn.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 15 10:22:09 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Dec 2003 08:22:09 -0800 Subject: [AccessD] A97 and Axp coexisting in peace Message-ID: I run both A97 and MOD 2002 on WinXP on my office machine and A97, Office 2k and AXP on Win2k at home. I don't have problems between them. It sounds like you might have a corrupted A97 database to deal with. Charlotte Foust -----Original Message----- From: pcs at azizaz.com [mailto:pcs at azizaz.com] Sent: Monday, December 15, 2003 5:35 AM To: AccessD at databaseadvisors.com Subject: [AccessD] A97 and Axp coexisting in peace Hi, I have had hell the last week recovering from an Windows XP crash.... will not go into details.... But I have two questions, I hope you can help out with: 1) Working in the code window in A97, VBA no longer 'works' properly..... when doing a dim statement like dim strText as ..... at that point the different datatypes are not prompted. Instead MS comes to the rescue and says 'terribly sorry, but we have to shut down' etc. I know under certain circumstances the two versions of VBA of A97 and Axp are not happy coexisting.... Question is : How do we get them 'reconciled' and happy living together again????? Any help appreciated... I can start up Axp and work with VBA apparently with no problems, (apart from my own coding errors ;) .... 2) Second question: The replacement media I got from MS is WindowsXP including Service Pack 1. Any 'pitfalls' or 'gotchas' with the install of the service pack 1 ??? I seem to remember from the exchange on the list that service pack 1 somehow effects adversely Outlook Express (attachments!?) Thanks, Borge _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Mon Dec 15 10:25:30 2003 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 15 Dec 2003 11:25:30 -0500 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Message-ID: John, I'm not quite sure what it is you're doing. In Outlook 2002, the way I have shared my calendar is to right-click on Calendar, choose properties, select the permissions tab, and add persons and set permissions as needed. To my knowledge, no email is sent for confirmation. Mark -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Monday, December 15, 2003 9:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Any one ever share their Outlook colander. This always worked before with Outlook 2000, but when I try and share with Outlook 2002, the 'ACCEPT" feature in the email sent for the confirmation is missing and it says Outlook has blocked an Active component. Checked around the web and couldn't find anything? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Dec 15 10:30:49 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Dec 2003 08:30:49 -0800 Subject: [AccessD] Effect of XP SP2 for developpers? Message-ID: It doesn't look to me like there is too much change for regular Access apps unless you're using Shell or utilizing COM servers, but maybe I missed something. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, December 14, 2003 9:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Effect of XP SP2 for developpers? The following site address this question. Personally, I can't tell if Access is affected, but Windows developers definitely will be affected. (Watch for wrap) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/h tml/ securityinxpsp2.asp Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Saturday, December 13, 2003 5:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Effect of XP SP2 for developpers? I understood something about Windows XP SP2 thats gonna get in beta at he end of year having important effect for developers... Is this gooing to effect or app's in any way? Erwin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Dec 15 11:57:59 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 15 Dec 2003 11:57:59 -0600 Subject: [AccessD] Export to multiple Excel sheets Message-ID: <2F8793082E00D4119A1700B0D0216BF802227689@main2.marlow.com> These three lines: "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt IN 'H:\Gouldnan\HSL\mcobudget_fe_NG.mdb'" & _ Should be: "Cont05, NewExpPgm " & _ "INTO rs.Fields(0).Value & " " & _ "FROM qryGroupRpt IN 'H:\Gouldnan\HSL\mcobudget_fe_NG.mdb'" & _ Bad spacing in the SQL. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Sunday, December 14, 2003 11:22 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I feel like I'm so, so close, but I'm getting another error message. This time it's in the Execute strSQL statement: Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt IN 'H:\Gouldnan\HSL\mcobudget_fe_NG.mdb'" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Clo When it reaches cnn.Execute strSQL, I get an error that says "The SELECT statement contains a reserved word or an argument name that is misspelled or missing, or the punctuation is incorrect." Drew, if you can figure out this one I'd appreciate your help. I'm also going to try the solutions offered by Steve, Alun and Shaun. Thank you all for your ideas, I hope this project can be put in the can tomorrow. From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 19:39:38 -0600 Aha, found the problem. Here's the strSQL statement: strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" The problem is the 'FROM qryGroupRpt' part. You are going to run this SQL against EXCEL, not the Access database, so you need to add an IN statement to the FROM clause, so it would read : 'FROM qryGroupRpt IN "C:\PathToDB\MyDatabase.mdb"' Make sense? Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Friday, December 12, 2003 4:18 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Here's the full procedure: Sub CenterGroupSheets() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = CurrentProject.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "e:\entprs\billina\budget fy05\mcoBudget_fe.mdb" End With ExcelConnection cnn, "e:\entprs\billina\budget fy05\MCOBudget_Macro.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Area FROM qryGroupRpt GROUP BY Area" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT Area, CenterNo, AcctNo, Desc, Actual03, Budget04, ActNov03, AcctGroup, Forecast05, " & _ "Cont05, NewExpPgm," & _ "INTO rs.Fields(0).Value & " & _ "FROM qryGroupRpt" & _ "WHERE Area=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Fri, 12 Dec 2003 14:36:06 -0600 What's the strSQL? (I know it's your SQL string, but what is it's value?) Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 4:19 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets Drew, I've been working with your code and I'm stumped at the following line: cnn.Execute strSQL - it crashes there and I get a run-time error saying "Query input must contain at least one table or query". Since you indicated the "trick" was setting the Extended Properties in ExlCnn, I wonder if I'm getting tripped up by not having an object library or something. Any ideas? Thanks, Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:58:52 -0600 Hehehe, I must be bored today, cause I decided to try it out. This works PERFECTLY! Okay, I dumped a table into a blank database. The table is called tblRequests. It's the IS Request table that stores user requests for our company. To see if it worked, I was going to push the records out to an Excel file. I made a blank excel file, and removed all the sheets but one (wouldn't let me remove all of them....). Then I wrote the following code...technically, this code can be run from anything (with either VBA or VB). Function ExcelConnection(ExlCnn As ADODB.Connection, strFile As String) 'This function just makes an ADO connection to an excel file....the extended properties is the only trick Set ExlCnn = New ADODB.Connection With ExlCnn .Provider = "Microsoft.Jet.OLEDB.4.0" .Properties("Extended Properties") = "Excel 8.0" .Open strFile End With End Function Private Sub Command0_Click() Dim cnn As ADODB.Connection Dim cnnAcc As ADODB.Connection Dim strSQL As String Dim rs As ADODB.Recordset Set cnnAcc = New ADODB.Connection With cnnAcc .Provider = "Microsoft.Jet.OLEDB.4.0" .Open "D:\requests.mdb" End With ExcelConnection cnn, "D:\Book1.xls" Set rs = New ADODB.Recordset strSQL = "SELECT Requestor FROM tblRequests GROUP BY Requestor" 'Now going to open a recordset to the table, to get a list of the requestors..... rs.Open strSQL, cnnAcc, adOpenKeyset, adLockReadOnly rs.MoveFirst 'Now, I'm going to loop through the requestors, and push the data out to Excel Do Until rs.EOF = True strSQL = "SELECT TicketNumber, RequestDate, RequestType, RequestSubType, FullDescription INTO " & _ rs.Fields(0).Value & " " & _ "FROM tblRequests IN ""D:\requests.mdb"" " & _ "WHERE Requestor=""" & rs.Fields(0).Value & """" 'Note, I'm selecting fields from the Access table, pushing it INTO a table named for the Requestor (Field 0 of 'the recordset object), and I'm telling to pull the records FROM tblRequests IN an external Access .mdb. 'Since the next line uses a connection object connected to an Excel Worksheet, it will create that 'table' as 'a new sheet in the Excel Workbook cnn.Execute strSQL rs.MoveNext Loop rs.Close Set rs = Nothing cnn.Close Set cnn = Nothing cnnAcc.Close Set cnnAcc = Nothing MsgBox "Done" End Sub Worked like a charm! The only thing you will need to add, if you want, would be a little code to 'copy' a blank 'master' copy of an Excel Workbook to the location and name of the final .xls file you want. Pretty simple stuff, can write that if you want to. The real beauty of this method, is since it is using ADO, it is MUCH faster then using automation, and doesn't even require Access OR Excel to be on the machine you run this from (it just needs MDAC, for ADO). Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 1:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I'm willing to try anything. At the moment I'm trying to implement Lambert's suggestion but I'm afraid I don't know enough to fill in the blanks. Gina From: Drew Wutka Reply-To: Access Developers discussion and problem solving To: "'Access Developers discussion and problem solving'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 13:30:19 -0600 If you're going the code route, you may be able to pull this off with ADO. I have never tried making a new sheet from ADO, in Excel. Technically it should work, by just using a Make Table query. If you want to go this route, I'll see if it works or not. Drew -----Original Message----- From: Gina Hoopes [mailto:hoopesg at hotmail.com] Sent: Wednesday, December 10, 2003 11:54 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Export to multiple Excel sheets I would like to avoid hard-coding the centers in each dept. since they can change from year to year, and one of the depts has 64 centers which even by itself would be a lot of queries. I'm thinking the solution may be to create a recordset of each dept and loop through that, creating a recordset within that set for each center. If that's do-able, I don't know how to properly code the loops or how to export as it loops through. Thanks again, Gina From: "Heenan, Lambert" To: "'Access Developers discussion and problem solving'" CC: "'hoopesg at hotmail.com'" Subject: RE: [AccessD] Export to multiple Excel sheets Date: Wed, 10 Dec 2003 12:35:59 -0500 If you have a different query for each Center then the export will create different sheets for each one. Don't want multiple queries, but would rather use different parameters for each Center? Ok. Just use CopyObject to create a temporary copy of the query, export it and then delete the copy. Lambert > -----Original Message----- > From: Gina Hoopes [SMTP:hoopesg at hotmail.com] > Sent: Wednesday, December 10, 2003 12:14 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Export to multiple Excel sheets > > You all have been so helpful to me on my projects - I hope one day I can > be > on the helping end instead of always asking for help. > > I've got a table with about 10 fields, 2 of which are Dept and Center. > Any > given Dept might have multiple Centers. I'm exporting query results to > Excel spreadsheets, but I haven't been able to figure out how to have a > Dept > with multiple Centers export to one Excel file with a separate sheet for > each Center. Can anyone give me some ideas on how to accomplish this? Thanks, Gina _________________________________________________________________ Tired of slow downloads and busy signals? Get a high-speed Internet connection! Comparison-shop your local high-speed providers here. https://broadband.msn.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Mon Dec 15 12:01:10 2003 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Mon, 15 Dec 2003 12:01:10 -0600 Subject: [AccessD] Jeffrey F Demulling/MN/USB is out of the office. Message-ID: I will be out of the office starting 12/15/2003 and will not return until 01/12/2004. I will respond to your message when I return. Please contact Matt Lehmann (651) 244-8861 if you have an urgent matter. From mwp.reid at qub.ac.uk Mon Dec 15 13:31:03 2003 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Mon, 15 Dec 2003 11:31:03 -0800 Subject: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? References: Message-ID: <001e01c3c341$fb0623c0$ea0a6351@martin1> Students must hand code SQL and HTML. They are not permitted to use any GUI at all. Thats not to say they dont hard to tell the HTML written by Dreamweaver or Notepad but they have no GUI in the exam (<: Martin ----- Original Message ----- From: "John Skolits" To: "Access Developers discussion and problem solving" Sent: Monday, December 15, 2003 6:40 AM Subject: RE: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConcepts? > If I went back to college and had to learn SQl syntax, my guess would be > that learning how to code without a GUI tool would be a better method of > learning. But, I have learned my database knowledge on my own since the days > of Cornerstone. (Let's see if anyone remembers that one! It was way ahead of > its time). I then learned the database tools and macros in Excel and finally > jumped on Access with version 1.0. Eventually, I migrated to SQL Server. And > I will tell you, that if someone asked me to write a basic select query with > a left join from scratch, forget it. It would take me 10 minutes (if I'm > lucky). I use the Access grid, copy it over to SQL and I'm done in less than > a minute. (Note: I sometimes have to fine tune the syntax). > > I have built very large, 400 + user systems with SQL Server and build 90% - > 95% of my Stored Procedures with the Access query grid. I know many of the > nuances of the Access query grid and can create very complex queries in a > 10th of the time using that tool. > > But, from an educational standpoint, I would certainly introduce it to > students as an excellent tool but still teach the basic methods. You never > know how each student applies their knowledge. Some will build applications, > other will become database designers on large scale systems which require > very fined tunes sql statements. Each job use a different tool set. > > Now, I have based these comment solely on building queries, not on database > design. That's a whole different world with primary/foreign keys and > database normalization theories and more. > > Yet, if your out of college and just starting to learn query design on your > own. Learn the query grid in Access. A 'Totally' excellent tool. > > John Skolits > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawhon, Alan C > Contractor/Morgan Research > Sent: Friday, December 12, 2003 12:22 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] Slashdot: SQL vs Access for Learning Database > Concepts? > > > This was posted on Slashdot last night. I'm sure some of the folks on here, > (like maybe Susan Harkins, Martin Reid, and John Colby), might have an > interesting opinion about whether or not Access is a good "training vehicle" > for > learning SQL. > > > http://ask.slashdot.org/article.pl?sid=03/12/11/1811206&mode=thread&tid=146& > tid= > 185&tid=99 > > P.S. About midway down in the reader postings, there are links to several > articles comparing the pros and cons of Access [SQL] to other SQL products. > > > Alan C. Lawhon > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Mon Dec 15 13:36:05 2003 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 15 Dec 2003 19:36:05 +0000 Subject: [AccessD] Slightly OT: Access vs. ASP or HTML Message-ID: Hello All, I initially built this in A97...I have the task of providing a lookup feature. User will answer 4 yes/no questions...based on answers, possible solutions will be displayed(2-3 word solutions). There will never be more than 8 results returned...and the table containing the results will have approximately 300 records...and never grow. Nothing will be recorded, added or updated...this is strictly a lookup. With such a limited amount of data...would it be possible to leave out the db all together and create 1 HTML or ASP page? Any ideas/problems/suggestions anyone can provide would be greatly appreciated. Thanks, Mark A. Matte _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx From sgeller at cce.umn.edu Mon Dec 15 14:36:47 2003 From: sgeller at cce.umn.edu (Susan Geller) Date: Mon, 15 Dec 2003 14:36:47 -0600 Subject: [AccessD] Clear item from listbox Message-ID: Charlotte, I'm trying to implement your suggestion. Here's what I've got. Something is definitely not right: Dim intI As Integer For intI = 0 To Me.lst_TRANS_NO.ItemsSelected.Count - 1 Me.lst_TRANS_NO.ItemsSelected = False Next intI What am I doing wrong? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Are you trying to do this in Access or in the stored procedure? In Access, you can loop through the listbox's itemsselected collection and set each item's Selected property to false. If you're just seeing a marquee around the item rather than reverse video showing it is selected, then I can't help. I've never figured out how to get rid of that either. Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 08, 2003 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Clear item from listbox I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Dec 15 14:36:13 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 15 Dec 2003 14:36:13 -0600 Subject: [AccessD] Slightly OT: Access vs. ASP or HTML Message-ID: <2F8793082E00D4119A1700B0D0216BF80222768E@main2.marlow.com> If you have everything in a db already, just use ASP to kick the results out. Drew -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Monday, December 15, 2003 1:36 PM To: accessd at databaseadvisors.com Subject: [AccessD] Slightly OT: Access vs. ASP or HTML Hello All, I initially built this in A97...I have the task of providing a lookup feature. User will answer 4 yes/no questions...based on answers, possible solutions will be displayed(2-3 word solutions). There will never be more than 8 results returned...and the table containing the results will have approximately 300 records...and never grow. Nothing will be recorded, added or updated...this is strictly a lookup. With such a limited amount of data...would it be possible to leave out the db all together and create 1 HTML or ASP page? Any ideas/problems/suggestions anyone can provide would be greatly appreciated. Thanks, Mark A. Matte _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Mon Dec 15 14:59:08 2003 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 15 Dec 2003 12:59:08 -0800 Subject: [AccessD] Slightly OT: Access vs. ASP or HTML References: Message-ID: <3FDE209C.20002@shaw.ca> You could use an xml file with xpath query or vbscript and search xml dom. Mark A Matte wrote: > > Hello All, > > I initially built this in A97...I have the task of providing a lookup > feature. User will answer 4 yes/no questions...based on answers, > possible solutions will be displayed(2-3 word solutions). There will > never be more than 8 results returned...and the table containing the > results will have approximately 300 records...and never grow. Nothing > will be recorded, added or updated...this is strictly a lookup. > > With such a limited amount of data...would it be possible to leave out > the db all together and create 1 HTML or ASP page? Any > ideas/problems/suggestions anyone can provide would be greatly > appreciated. > > Thanks, > > Mark A. Matte > -- Marty Connelly Victoria, B.C. Canada From Jdemarco at hshhp.org Mon Dec 15 15:10:11 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Mon, 15 Dec 2003 16:10:11 -0500 Subject: [AccessD] Slightly OT: Access vs. ASP or HTML Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA20@TTNEXCHSRV1.hshhp.com> Or even text files for that matter. Jim DeMarco -----Original Message----- From: MartyConnelly [mailto:martyconnelly at shaw.ca] Sent: Monday, December 15, 2003 3:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Slightly OT: Access vs. ASP or HTML You could use an xml file with xpath query or vbscript and search xml dom. Mark A Matte wrote: > > Hello All, > > I initially built this in A97...I have the task of providing a lookup > feature. User will answer 4 yes/no questions...based on answers, > possible solutions will be displayed(2-3 word solutions). There will > never be more than 8 results returned...and the table containing the > results will have approximately 300 records...and never grow. Nothing > will be recorded, added or updated...this is strictly a lookup. > > With such a limited amount of data...would it be possible to leave out > the db all together and create 1 HTML or ASP page? Any > ideas/problems/suggestions anyone can provide would be greatly > appreciated. > > Thanks, > > Mark A. Matte > -- Marty Connelly Victoria, B.C. Canada _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 cfoust at infostatsystems.com Mon Dec 15 15:11:05 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Dec 2003 13:11:05 -0800 Subject: [AccessD] Clear item from listbox Message-ID: Requerying the listbox didn't clear the selections? Anyhow, if you want to clear the selections one at a time, you would use: Me.lst_TRANS_NO.ItemsSelected(intI) = False Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 15, 2003 12:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Charlotte, I'm trying to implement your suggestion. Here's what I've got. Something is definitely not right: Dim intI As Integer For intI = 0 To Me.lst_TRANS_NO.ItemsSelected.Count - 1 Me.lst_TRANS_NO.ItemsSelected = False Next intI What am I doing wrong? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Are you trying to do this in Access or in the stored procedure? In Access, you can loop through the listbox's itemsselected collection and set each item's Selected property to false. If you're just seeing a marquee around the item rather than reverse video showing it is selected, then I can't help. I've never figured out how to get rid of that either. Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 08, 2003 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Clear item from listbox I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HARVEYF1 at WESTAT.com Mon Dec 15 15:23:56 2003 From: HARVEYF1 at WESTAT.com (Francis Harvey) Date: Mon, 15 Dec 2003 16:23:56 -0500 Subject: [AccessD] Slashdot: SQL vs Access for Learning DatabaseConce pts? Message-ID: Greetings, I'll never understand the thinking behind these types of restrictions. It seems similar to the mentality that once outlawed calculator usage during mathematics exams even after you passed basic arithmetic. I can't imagine what an instructor expects to test by creating exams that require one to demonstrate a certain level of coding ability and then disallow the use of the common tools for the task. Personally, I preferred courses where coding ability was expected to be demonstrated in project work and exams only covered conceptual issues. Vendor certification exams are even better where you can use an actual product to develop exam solutions. Francis R Harvey III WB 303, (301)294-3952 harveyf1 at westat.com > -----Original Message----- > From: Martin Reid [mailto:mwp.reid at qub.ac.uk] > Sent: Monday, December 15, 2003 2:31 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Slashdot: SQL vs Access for Learning > DatabaseConcepts? > > > Students must hand code SQL and HTML. They are not permitted > to use any GUI > at all. Thats not to say they dont hard to tell the HTML written by > Dreamweaver or Notepad but they have no GUI in the exam (<: > > Martin From DMcAfee at haascnc.com Mon Dec 15 15:32:47 2003 From: DMcAfee at haascnc.com (David McAfee) Date: Mon, 15 Dec 2003 13:32:47 -0800 Subject: [AccessD] Clear item from listbox Message-ID: <657FB70438B7D311AF320090279C1801026D7D7E@EXCHMAIL> Susan, much easier: Me.lst_TRANS_NO.Value = Null D -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, December 15, 2003 1:11 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Requerying the listbox didn't clear the selections? Anyhow, if you want to clear the selections one at a time, you would use: Me.lst_TRANS_NO.ItemsSelected(intI) = False Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 15, 2003 12:37 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Charlotte, I'm trying to implement your suggestion. Here's what I've got. Something is definitely not right: Dim intI As Integer For intI = 0 To Me.lst_TRANS_NO.ItemsSelected.Count - 1 Me.lst_TRANS_NO.ItemsSelected = False Next intI What am I doing wrong? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 08, 2003 10:40 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Clear item from listbox Are you trying to do this in Access or in the stored procedure? In Access, you can loop through the listbox's itemsselected collection and set each item's Selected property to false. If you're just seeing a marquee around the item rather than reverse video showing it is selected, then I can't help. I've never figured out how to get rid of that either. Charlotte Foust -----Original Message----- From: Susan Geller [mailto:sgeller at cce.umn.edu] Sent: Monday, December 08, 2003 8:32 AM To: accessd at databaseadvisors.com Subject: [AccessD] Clear item from listbox I have a listbox and I want to clear all items selected in it. To do that, I am executing a stored procedure. But, even when I've done that, the first row in the listbox remains selected. Is there any code that will unselect all items in a list box? I'm in an adp in Access XP. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Mon Dec 15 15:47:51 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Mon, 15 Dec 2003 22:47:51 +0100 Subject: [AccessD] Effect of XP SP2 for developpers? Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFD9@stekelbes.ithelps.local> Well, I believe so to, but I'm not sure if all API calls will work. I have also some TCP/UDP/HTML Active-X controls I uses in some apps. Better do some tests first. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, December 15, 2003 5:31 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Effect of XP SP2 for developpers? It doesn't look to me like there is too much change for regular Access apps unless you're using Shell or utilizing COM servers, but maybe I missed something. Charlotte Foust -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Sunday, December 14, 2003 9:46 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Effect of XP SP2 for developpers? The following site address this question. Personally, I can't tell if Access is affected, but Windows developers definitely will be affected. (Watch for wrap) http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/h tml/ securityinxpsp2.asp Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps - IT Helps Sent: Saturday, December 13, 2003 5:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Effect of XP SP2 for developpers? I understood something about Windows XP SP2 thats gonna get in beta at he end of year having important effect for developers... Is this gooing to effect or app's in any way? Erwin _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From reuben at gfconsultants.com Mon Dec 15 16:07:13 2003 From: reuben at gfconsultants.com (Reuben Cummings) Date: Mon, 15 Dec 2003 17:07:13 -0500 Subject: [AccessD] Export to dBase Message-ID: I am trying to export some queries to dBase files. However, on some of the queries I get Error 3191, "Cannot define field more than once" Anyone care to explain what's wrong? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From garykjos at hotmail.com Mon Dec 15 16:15:45 2003 From: garykjos at hotmail.com (Gary Kjos) Date: Mon, 15 Dec 2003 16:15:45 -0600 Subject: [AccessD] Export to dBase Message-ID: Hi Reuben, Could we see the SQL for one of the failing queries? Gary Kjos garykjos at hotmail.com >From: "Reuben Cummings" >Reply-To: Access Developers discussion and problem >solving >To: "AccessD" >Subject: [AccessD] Export to dBase >Date: Mon, 15 Dec 2003 17:07:13 -0500 > >I am trying to export some queries to dBase files. > >However, on some of the queries I get Error 3191, "Cannot define field more >than once" > >Anyone care to explain what's wrong? > >Thanks. > >Reuben Cummings >GFC, LLC >phone: 812.523.1017 >email: reuben at gfconsultants.com _________________________________________________________________ Tired of slow downloads and busy signals? Get a high-speed Internet connection! Comparison-shop your local high-speed providers here. https://broadband.msn.com From cfoust at infostatsystems.com Mon Dec 15 16:18:19 2003 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 15 Dec 2003 14:18:19 -0800 Subject: [AccessD] Export to dBase Message-ID: Sounds like you may have a multitable query with values from fields of the same name being retrieved from each table. Charlotte Foust -----Original Message----- From: Reuben Cummings [mailto:reuben at gfconsultants.com] Sent: Monday, December 15, 2003 2:07 PM To: AccessD Subject: [AccessD] Export to dBase I am trying to export some queries to dBase files. However, on some of the queries I get Error 3191, "Cannot define field more than once" Anyone care to explain what's wrong? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Mon Dec 15 17:59:07 2003 From: stephen at bondsoftware.co.nz (Stephen Bond) Date: Tue, 16 Dec 2003 12:59:07 +1300 Subject: [AccessD] Report properties - A2000 vs A2002 (SOLVED) Message-ID: <70F3D727890C784291D8433E9C418F298F44@server.bondsoftware.co.nz> Charlotte - I think I've got it figured - the reports that were Modal/Popup/Dialog in 2002 were created from a modal/popup/dialog *form* (copy, change to report, etc) in 2000. These attributes are dormant in 2000 reports, only to erupt in 2002. As you suggested, I fixed them in 2002, then saved back to 2000 format, and all works well in both versions of Access. Thanks ... Stephen Bond -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Thursday, 11 December 2003 7:03 a.m. To: Access Developers discussion and problem solving Subject: RE: [AccessD] Report properties - A2000 vs A2002 Not a clue ... Unless some of them were actually created in 2002. Charlotte Foust -----Original Message----- From: Stephen Bond [ mailto:stephen at bondsoftware.co.nz] Sent: Wednesday, December 10, 2003 9:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Report properties - A2000 vs A2002 Thanks Charlotte - if I catch you right, I can do the changes in 2002 and then back-port to 2000? As long as I'm careful. And - just as a matter of interest - can you shed light on why would some reports in 2000 be one way (Yes/Yes/Dialog) and some the other, without any intention from me? M$ consistency - my oxymoron for the week. Stephen Bond > -----Original Message----- > From: Charlotte Foust [ mailto:cfoust at infostatsystems.com] > Sent: Thursday, 11 December 2003 5:57 a.m. > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Report properties - A2000 vs A2002 > > > Those properties are not exposed in 2000, so you can't change them > there. You need to change it in 2002 to No/No/Sizable or they'll keep > breaking in 2000. If you create reports from 2002 you need to avoid > the methods and properties that don't exist in 2000. Another one is > the OpenArgs property of 2002 reports. > > Charlotte Foust > > -----Original Message----- > From: Stephen Bond [ mailto:stephen at bondsoftware.co.nz] > Sent: Tuesday, December 09, 2003 6:55 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Report properties - A2000 vs A2002 > > > I take a (long-time working) app from a Win2000 / A2000 > environment to a > WinXP / A2002 environment. The app is not converted to > A2002, it stays > in A2000 format, and works well ... except for a couple of reports. > > Using A2002 to compare the properties of one of the reports that works > and one that doesn't, I see some that are different, namely, PopUp, > Modal, Border Style. The reports that don't work have these > properties to Yes/Yes/Modal; the ones that do work are No/No/Sizable. > > So back I go to A2000, and, no sign of these properties on a Report. > Next, trying to be clever, and still in A2000, I try setting a > WindowMode property when I invoke the report - but that works only in > A2002 (well it syntaxes out in A2000). > > In A2000 how do I change these properties? I suppose a work-around > would be to change the properties under A2002, but this > defeats the goal > of distributing one version only. > > Stephen Bond > Otatara, South Island, New Zealand > 03 213 1256 fax 03 213 0123 > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From askolits at ot.com Mon Dec 15 19:31:22 2003 From: askolits at ot.com (John Skolits) Date: Mon, 15 Dec 2003 20:31:22 -0500 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 In-Reply-To: Message-ID: You can actually share your calendar with someone who is not on your network. For example, you can sync your calendar on your work PC with the one in your home. You essentially do the same thing you said but when you add a person to the list, you add an email address. Outlook will send an email to the recipient and then they can accept the invitation. Then whenever either of your PCs make a change, the other one is updated through hidden email communications. It really works well, except when outlook 2002 started. Now the process doesn't seem to work. I'm guessing no one else has ever done this since there wasn't much of a response. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, December 15, 2003 11:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 John, I'm not quite sure what it is you're doing. In Outlook 2002, the way I have shared my calendar is to right-click on Calendar, choose properties, select the permissions tab, and add persons and set permissions as needed. To my knowledge, no email is sent for confirmation. Mark -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Monday, December 15, 2003 9:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Any one ever share their Outlook colander. This always worked before with Outlook 2000, but when I try and share with Outlook 2002, the 'ACCEPT" feature in the email sent for the confirmation is missing and it says Outlook has blocked an Active component. Checked around the web and couldn't find anything? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From prodevmg at yahoo.com Mon Dec 15 19:39:12 2003 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Mon, 15 Dec 2003 17:39:12 -0800 (PST) Subject: [AccessD] Export to dBase In-Reply-To: Message-ID: <20031216013912.84972.qmail@web20422.mail.yahoo.com> When I get this message it's when I have taken a field from the table and moved it on the grid more than once. Reuben Cummings wrote: I am trying to export some queries to dBase files. However, on some of the queries I get Error 3191, "Cannot define field more than once" Anyone care to explain what's wrong? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing From accessd at shaw.ca Mon Dec 15 19:44:14 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 15 Dec 2003 17:44:14 -0800 Subject: [AccessD] OT Outlook mail In-Reply-To: <70F3D727890C784291D8433E9C418F298F44@server.bondsoftware.co.nz> Message-ID: Hi folks: This is an off topic Outlook mail request but it is a real pain. Left the mail receiving on over-night, apparently there must have been some kind of power bounce; not enough to shut the computer down but the end result was that the pst file totally corrupted. The PST file is not yet to th 2GB maximum but it is getting up. Ran the scanpst against a copy and the end results was a couple of directory headers with nothing in them. There are dozens of directories and hundreds of files gone but the file size remains the same. I was wondering if the version of the scanpst file was some older version or if there is another fix program out there. Any help would be greatly appreciated. Jim From jeffrey.demulling at usbank.com Mon Dec 15 20:01:45 2003 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Mon, 15 Dec 2003 20:01:45 -0600 Subject: [AccessD] Jeffrey F Demulling/MN/USB is out of the office. Message-ID: I will be out of the office starting 12/15/2003 and will not return until 01/12/2004. I will respond to your message when I return. Please contact Matt Lehmann (651) 244-8861 if you have an urgent matter. From viner at eunet.yu Tue Dec 16 00:16:47 2003 From: viner at eunet.yu (Ervin Brindza) Date: Tue, 16 Dec 2003 07:16:47 +0100 Subject: [AccessD] Report from separated tables References: <000e01c3c305$369e4260$0100a8c0@razvoj> <4220063559.20031215150521@cactus.dk> Message-ID: <00e201c3c39e$9fb9aa20$0100a8c0@razvoj> Ok, I guess so, and need only a confirmation ;-) Many thanks, Ervin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: 15 December, 2003 3:05 PM Subject: Re: [AccessD] Report from separated tables > Hi Ervin > > You should be able to use a Union All query for tblFirst and tblSecond > filtering for records with amounts larger than zero. Then use this as > the source for a totals query where you Group By ItemID and Sum the > amounts. > > /gustav > > > the situation is: there are 3 tables: > > tblMain(Id, fldDate) > > tblFirst(Id, fldItemId, Amount1, Amount2) > > tblSecond(Id, fldItemId, Amount3, Amount4) > > The tblMain is on the 1 side, and tblFirst and tblSecond are on the many side. > > And there is a need for summing only those records (all of them) where are the sum of Amount1>0 or Amount2>0; and Amount3>0 or Amount4>0 > > E.g. > > tblMain > > 1 01/01/2003 > > 2 02/02/2003 > > (I'll use ItemName instead of ItemId) > > tblFirst > > 1 sugar 1.00 2.00 > > 1 salt 3.00 4.00 > > 2 sugar 10.00 12.00 > > 2 water 13.00 14.00 > > 2 pepper 0.00 0.00 > > > tblSecond > > 1 sugar 11.00 2.00 > > 1 salt 3.00 4.00 > > 2 sugar 10.00 12.00 > > 2 vine 23.00 24.00 > > > The report should show all used ingredients and sum the aomunts separately: > > 1 sugar 32.00 28.00 > > 2 salt 6.00 8.00 > > 3 water 13.00 14.00 > > 4 vine 23.00 24.00 > > May I use union query, subreport or something else? > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Dec 16 01:25:55 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 08:25:55 +0100 Subject: [AccessD] Export to dBase Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFDA@stekelbes.ithelps.local> DBF is limited to 8 character fields names (can be different depending on DBF version). I don't remember exacly what happends in access if you have for example txo field named: CustAddressLine1 CustAddressLine2 Both could be truncated to CustAddr. Create a query putting your own fieldnames at 8 chars like this. CustAdd1 :[CustAddressLine1] CustAdd2 :[CustAddressLine2] Erwin Craps -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie Johnson Sent: Tuesday, December 16, 2003 2:39 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Export to dBase When I get this message it's when I have taken a field from the table and moved it on the grid more than once. Reuben Cummings wrote: I am trying to export some queries to dBase files. However, on some of the queries I get Error 3191, "Cannot define field more than once" Anyone care to explain what's wrong? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Dec 16 01:31:33 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 08:31:33 +0100 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFDB@stekelbes.ithelps.local> Just a basic question to put us on the right track. Is your Outlook connected to a Microsoft Exhange Server? You can't (at my knowledge) share your agenda (or whatever from your mailbox) without Exchange server (using PST file). If you do have Exchange server, this functionality can be blocked at the server level. Check with your Exchange Server administrator. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, December 16, 2003 2:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 You can actually share your calendar with someone who is not on your network. For example, you can sync your calendar on your work PC with the one in your home. You essentially do the same thing you said but when you add a person to the list, you add an email address. Outlook will send an email to the recipient and then they can accept the invitation. Then whenever either of your PCs make a change, the other one is updated through hidden email communications. It really works well, except when outlook 2002 started. Now the process doesn't seem to work. I'm guessing no one else has ever done this since there wasn't much of a response. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, December 15, 2003 11:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 John, I'm not quite sure what it is you're doing. In Outlook 2002, the way I have shared my calendar is to right-click on Calendar, choose properties, select the permissions tab, and add persons and set permissions as needed. To my knowledge, no email is sent for confirmation. Mark -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Monday, December 15, 2003 9:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Any one ever share their Outlook colander. This always worked before with Outlook 2000, but when I try and share with Outlook 2002, the 'ACCEPT" feature in the email sent for the confirmation is missing and it says Outlook has blocked an Active component. Checked around the web and couldn't find anything? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 16 01:43:03 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 16 Dec 2003 07:43:03 -0000 Subject: [AccessD] Export to dBase In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CFDA@stekelbes.ithelps.local> Message-ID: <016901c3c3a8$3c750590$b274d0d5@minster33c3r25> Iirc the limit's 10 but it may vary by version. But I agree that's the problem. The export simply truncates your field names and if you have two which are not unique within the first 10 characters then you get this. As Erwin suggests, create a query where you can dictate the output names, and export that. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Erwin Craps - IT Helps > Sent: 16 December 2003 07:26 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Export to dBase > > > DBF is limited to 8 character fields names (can be different > depending on DBF version). > > I don't remember exacly what happends in access if you have > for example txo field named: > > CustAddressLine1 > CustAddressLine2 > Both could be truncated to CustAddr. > > Create a query putting your own fieldnames at 8 chars like > this. CustAdd1 :[CustAddressLine1] CustAdd2 :[CustAddressLine2] > > Erwin Craps > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Lonnie Johnson > Sent: Tuesday, December 16, 2003 2:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Export to dBase > > When I get this message it's when I have taken a field from > the table and moved it on the grid more than once. > > > > Reuben Cummings wrote: > I am trying to export some queries to dBase files. > > However, on some of the queries I get Error 3191, "Cannot > define field more than once" > > Anyone care to explain what's wrong? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > Lonnie > Johnson > ProDev, Professional Development of MS Access Databases Visit > me at ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From Erwin.Craps at ithelps.be Tue Dec 16 01:56:09 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 08:56:09 +0100 Subject: [AccessD] Export to dBase Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFDD@stekelbes.ithelps.local> WHAT!!! And now you're telling me... All those years I had to use all of my (limited) imagination to think of some cryptic 8 character fieldnames wile I had 10 :-) I feel like I been had :-) Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, December 16, 2003 8:43 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Export to dBase Iirc the limit's 10 but it may vary by version. But I agree that's the problem. The export simply truncates your field names and if you have two which are not unique within the first 10 characters then you get this. As Erwin suggests, create a query where you can dictate the output names, and export that. Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Erwin Craps > - IT Helps > Sent: 16 December 2003 07:26 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Export to dBase > > > DBF is limited to 8 character fields names (can be different depending > on DBF version). > > I don't remember exacly what happends in access if you have for > example txo field named: > > CustAddressLine1 > CustAddressLine2 > Both could be truncated to CustAddr. > > Create a query putting your own fieldnames at 8 chars like this. > CustAdd1 :[CustAddressLine1] CustAdd2 :[CustAddressLine2] > > Erwin Craps > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Lonnie > Johnson > Sent: Tuesday, December 16, 2003 2:39 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Export to dBase > > When I get this message it's when I have taken a field from the table > and moved it on the grid more than once. > > > > Reuben Cummings wrote: > I am trying to export some queries to dBase files. > > However, on some of the queries I get Error 3191, "Cannot define field > more than once" > > Anyone care to explain what's wrong? > > Thanks. > > Reuben Cummings > GFC, LLC > phone: 812.523.1017 > email: reuben at gfconsultants.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > Lonnie > Johnson > ProDev, Professional Development of MS Access Databases Visit me at > ==> http://www.prodev.us > > > > > > > > > > --------------------------------- > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rgilimited at btconnect.com Tue Dec 16 02:49:28 2003 From: rgilimited at btconnect.com (Robin Lawrence) Date: Tue, 16 Dec 2003 08:49:28 -0000 Subject: [AccessD] OT Outlook mail In-Reply-To: Message-ID: <000001c3c3b1$849fd1c0$5373a8c0@local> Jim, I have used OnTrack data recovery with success in the past to recover corrupted PST file that scanpst would not mend. You can get a trial version of EasyRecovery Pro at http://www.ontrack.com/easyrecoveryprofessional/ - this will tell you if your file is repairable - unfortunately if it is you have to fork out for rhe full product. HTH Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: 16 December 2003 01:44 To: Access Developers discussion and problem solving Subject: [AccessD] OT Outlook mail Hi folks: This is an off topic Outlook mail request but it is a real pain. Left the mail receiving on over-night, apparently there must have been some kind of power bounce; not enough to shut the computer down but the end result was that the pst file totally corrupted. The PST file is not yet to th 2GB maximum but it is getting up. Ran the scanpst against a copy and the end results was a couple of directory headers with nothing in them. There are dozens of directories and hundreds of files gone but the file size remains the same. I was wondering if the version of the scanpst file was some older version or if there is another fix program out there. Any help would be greatly appreciated. Jim _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Dec 16 03:08:17 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 16 Dec 2003 10:08:17 +0100 (CET) Subject: [AccessD] Export to dBase Message-ID: <2546530.1071565698030.JavaMail.www@wwinf3005> I think you will find that DBase has a limited field name size I think it's about 10 characters of hand. Usually you get this error when you have been using larger field names but the first 8-10 characters are the same. Paul Hartland Message date : Dec 15 2003, 10:14 PM >From : Reuben Cummings To : AccessD Copy to : Subject : [AccessD] Export to dBase I am trying to export some queries to dBase files. However, on some of the queries I get Error 3191, "Cannot define field more than once" Anyone care to explain what's wrong? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Tue Dec 16 03:26:09 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 16 Dec 2003 10:26:09 +0100 Subject: [AccessD] Slightly OT: Access vs. ASP or HTML In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F990173FA20@TTNEXCHSRV1.hshhp.com> References: <22F1CCD5171D17419CB37FEEE09D5F990173FA20@TTNEXCHSRV1.hshhp.com> Message-ID: <1895615995.20031216102609@cactus.dk> Hi Jim and Mark Yes, one batch file and 300 text files and you're done! Or, if you need a GUI, a simple script for the Windows Scripting Host. /gustav > Or even text files for that matter. > Jim DeMarco > -----Original Message----- > From: MartyConnelly [mailto:martyconnelly at shaw.ca] > Sent: Monday, December 15, 2003 3:59 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Slightly OT: Access vs. ASP or HTML > You could use an xml file with xpath query or vbscript and search xml dom. > Mark A Matte wrote: >> >> Hello All, >> >> I initially built this in A97...I have the task of providing a lookup >> feature. User will answer 4 yes/no questions...based on answers, >> possible solutions will be displayed(2-3 word solutions). There will >> never be more than 8 results returned...and the table containing the >> results will have approximately 300 records...and never grow. Nothing >> will be recorded, added or updated...this is strictly a lookup. >> >> With such a limited amount of data...would it be possible to leave out >> the db all together and create 1 HTML or ASP page? Any >> ideas/problems/suggestions anyone can provide would be greatly >> appreciated. >> >> Thanks, >> >> Mark A. Matte From andy at minstersystems.co.uk Tue Dec 16 04:23:07 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 16 Dec 2003 10:23:07 +0000 Subject: [AccessD] Export to dBase Message-ID: <20031216102305.3455C24E3F8@smithers.nildram.co.uk> Reuben Apart from solving this field-name problem there are other implications to exporting to dBase via a query rather than via the table. Advantages are that you can name the fields what you want, determine the field order and determine which fields get extracted (you may not need all). Disadvantages are that you determine which fields get extracted (you may want all). That last point isn't flippant. If you add a field to a table then the export of a table name will export it, whereas the export via a query where you've created the query columns (which you'll have to do to solve the naming issue) won't automatically pick the new field up. Depending on what's being done with the dbf this may be regarded as a good thing or a bad thing, but it needs to be taken into account. -- Andy Lacey http://www.minstersystems.co.uk Message date : Dec 15 2003, 10:14 PM >From : Reuben Cummings To : AccessD Copy to : Subject : [AccessD] Export to dBase I am trying to export some queries to dBase files. However, on some of the queries I get Error 3191, "Cannot define field more than once" Anyone care to explain what's wrong? Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com ________________________________________________ Message sent using UebiMiau 2.7.2 From askolits at ot.com Tue Dec 16 05:46:02 2003 From: askolits at ot.com (John Skolits) Date: Tue, 16 Dec 2003 06:46:02 -0500 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 In-Reply-To: <46B976F2B698FF46A4FE7636509B22DF03CFDB@stekelbes.ithelps.local> Message-ID: No exchange server. I have tested this between 2 different PC in two people's homes. Outlook 2002 keeps blocking the Active components. This problem occurred after updating one PC to 2002. It worked fine until then. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, December 16, 2003 2:32 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 Just a basic question to put us on the right track. Is your Outlook connected to a Microsoft Exhange Server? You can't (at my knowledge) share your agenda (or whatever from your mailbox) without Exchange server (using PST file). If you do have Exchange server, this functionality can be blocked at the server level. Check with your Exchange Server administrator. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, December 16, 2003 2:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 You can actually share your calendar with someone who is not on your network. For example, you can sync your calendar on your work PC with the one in your home. You essentially do the same thing you said but when you add a person to the list, you add an email address. Outlook will send an email to the recipient and then they can accept the invitation. Then whenever either of your PCs make a change, the other one is updated through hidden email communications. It really works well, except when outlook 2002 started. Now the process doesn't seem to work. I'm guessing no one else has ever done this since there wasn't much of a response. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, December 15, 2003 11:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 John, I'm not quite sure what it is you're doing. In Outlook 2002, the way I have shared my calendar is to right-click on Calendar, choose properties, select the permissions tab, and add persons and set permissions as needed. To my knowledge, no email is sent for confirmation. Mark -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Monday, December 15, 2003 9:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Any one ever share their Outlook colander. This always worked before with Outlook 2000, but when I try and share with Outlook 2002, the 'ACCEPT" feature in the email sent for the confirmation is missing and it says Outlook has blocked an Active component. Checked around the web and couldn't find anything? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Dec 16 06:00:35 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 16 Dec 2003 07:00:35 -0500 Subject: [AccessD] test Message-ID: I'm back John W. Colby www.ColbyConsulting.com From Erwin.Craps at ithelps.be Tue Dec 16 06:07:18 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 13:07:18 +0100 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFE5@stekelbes.ithelps.local> I'm Sorry John But I have the impression we are not all on the same golflength over here. At my knowledge there is no way you can share your agenda without Microsoft Exchange server (or some other server software). In the old days ther was a file based postoffice from MS, but I believe they stoppped support in Outlook 97. Since you are talking about Active X controls, I believe you are refering to a different kind of sharing. Do you mean that both pc are using the same PST file? Please xplain your situation more detailed. Or our you talking about sharing the calender from Outlook in Access? And do both computers have a different version of Outlook? Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, December 16, 2003 12:46 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 No exchange server. I have tested this between 2 different PC in two people's homes. Outlook 2002 keeps blocking the Active components. This problem occurred after updating one PC to 2002. It worked fine until then. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Erwin Craps - IT Helps Sent: Tuesday, December 16, 2003 2:32 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 Just a basic question to put us on the right track. Is your Outlook connected to a Microsoft Exhange Server? You can't (at my knowledge) share your agenda (or whatever from your mailbox) without Exchange server (using PST file). If you do have Exchange server, this functionality can be blocked at the server level. Check with your Exchange Server administrator. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Skolits Sent: Tuesday, December 16, 2003 2:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 You can actually share your calendar with someone who is not on your network. For example, you can sync your calendar on your work PC with the one in your home. You essentially do the same thing you said but when you add a person to the list, you add an email address. Outlook will send an email to the recipient and then they can accept the invitation. Then whenever either of your PCs make a change, the other one is updated through hidden email communications. It really works well, except when outlook 2002 started. Now the process doesn't seem to work. I'm guessing no one else has ever done this since there wasn't much of a response. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Monday, December 15, 2003 11:26 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 John, I'm not quite sure what it is you're doing. In Outlook 2002, the way I have shared my calendar is to right-click on Calendar, choose properties, select the permissions tab, and add persons and set permissions as needed. To my knowledge, no email is sent for confirmation. Mark -----Original Message----- From: John Skolits [mailto:askolits at ot.com] Sent: Monday, December 15, 2003 9:45 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Any one ever share their Outlook colander. This always worked before with Outlook 2000, but when I try and share with Outlook 2002, the 'ACCEPT" feature in the email sent for the confirmation is missing and it says Outlook has blocked an Active component. Checked around the web and couldn't find anything? Thanks, John _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From andy at minstersystems.co.uk Tue Dec 16 06:22:54 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 16 Dec 2003 12:22:54 +0000 Subject: [AccessD] test Message-ID: <20031216122251.DE51924E82A@smithers.nildram.co.uk> >From where? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "AccessD" Subject: [AccessD] test Date: 16/12/03 17:04 I'm back John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From wdhindman at bellsouth.net Tue Dec 16 06:25:56 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 16 Dec 2003 07:25:56 -0500 Subject: [AccessD] test References: Message-ID: <000401c3c3cf$c19bb6c0$6101a8c0@dejpolsys> ...you were gone? :)))) William Hindman There are no easy answers, but there are simple answers. We must have the courage to do what we know is morally right." --Ronald Reagan ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Tuesday, December 16, 2003 7:00 AM Subject: [AccessD] test > I'm back > > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jcolby at colbyconsulting.com Tue Dec 16 06:31:19 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 16 Dec 2003 07:31:19 -0500 Subject: [AccessD] test In-Reply-To: <20031216122251.DE51924E82A@smithers.nildram.co.uk> Message-ID: The server provider to my web service provider took all the machines and disappeared into the sunset (or so I am told). My site and (of course) email went down last Friday. I got home from a business trip last night and contacted my web server provider. They set up a new account on a new server, and I am setting up all my email accounts, transferring my web pages etc. PITA John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Tuesday, December 16, 2003 7:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] test >From where? -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "AccessD" Subject: [AccessD] test Date: 16/12/03 17:04 I'm back John W. Colby www.ColbyConsulting.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Dec 16 06:35:28 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 16 Dec 2003 07:35:28 -0500 Subject: [AccessD] test In-Reply-To: <000401c3c3cf$c19bb6c0$6101a8c0@dejpolsys> Message-ID: I'm crushed. You mean nobody missed me? ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, December 16, 2003 7:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] test ...you were gone? :)))) William Hindman There are no easy answers, but there are simple answers. We must have the courage to do what we know is morally right." --Ronald Reagan ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Tuesday, December 16, 2003 7:00 AM Subject: [AccessD] test > I'm back > > John W. Colby > www.ColbyConsulting.com > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Tue Dec 16 06:40:05 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 16 Dec 2003 07:40:05 -0500 Subject: [AccessD] test References: Message-ID: <001601c3c3d1$bb7a9520$6101a8c0@dejpolsys> ...evidently everyone missed you ...more target practice is needed, eh? :)))) William Hindman There are no easy answers, but there are simple answers. We must have the courage to do what we know is morally right." --Ronald Reagan ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Tuesday, December 16, 2003 7:35 AM Subject: RE: [AccessD] test > I'm crushed. You mean nobody missed me? > > ;-) > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William > Hindman > Sent: Tuesday, December 16, 2003 7:26 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] test > > > ...you were gone? :)))) > > William Hindman > There are no easy answers, but there are simple answers. We must have > the courage to do what we know is morally right." --Ronald Reagan > > > ----- Original Message ----- > From: "John W. Colby" > To: "AccessD" > Sent: Tuesday, December 16, 2003 7:00 AM > Subject: [AccessD] test > > > > I'm back > > > > John W. Colby > > www.ColbyConsulting.com > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Jdemarco at hshhp.org Tue Dec 16 07:18:58 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 16 Dec 2003 08:18:58 -0500 Subject: [AccessD] Fax: code or fax app UI Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA26@TTNEXCHSRV1.hshhp.com> I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? TIA, Jim DeMarco Director Product Development Hudson Health Plan *********************************************************************************** "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 Erwin.Craps at ithelps.be Tue Dec 16 07:29:03 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 14:29:03 +0100 Subject: [AccessD] Fax: code or fax app UI Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFE8@stekelbes.ithelps.local> I'm not that familiar with winfax anymore but 4 years ago I could import txt or DBF files into winfax. So you could save your excel file as a dbf or so... Maybe a recent version already accepts Excel... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, December 16, 2003 2:19 PM To: AccessD (E-mail) Subject: [AccessD] Fax: code or fax app UI I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? TIA, Jim DeMarco Director Product Development Hudson Health Plan ************************************************************************ *********** "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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Tue Dec 16 07:36:13 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 16 Dec 2003 08:36:13 -0500 Subject: [AccessD] Fax: code or fax app UI Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA29@TTNEXCHSRV1.hshhp.com> Thanks Erwin. So you used the external file as the address list? Jim DeMarco -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 16, 2003 8:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fax: code or fax app UI I'm not that familiar with winfax anymore but 4 years ago I could import txt or DBF files into winfax. So you could save your excel file as a dbf or so... Maybe a recent version already accepts Excel... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, December 16, 2003 2:19 PM To: AccessD (E-mail) Subject: [AccessD] Fax: code or fax app UI I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? TIA, Jim DeMarco Director Product Development Hudson Health Plan ************************************************************************ *********** "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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 Erwin.Craps at ithelps.be Tue Dec 16 07:44:34 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 14:44:34 +0100 Subject: [AccessD] Fax: code or fax app UI Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFEA@stekelbes.ithelps.local> I imported an external file in a specific addressbook of winfax. Not a direct link. When I had a new file I deleted all contacts in this addressbook and imported again. Once you know it, a 5 minutes job. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, December 16, 2003 2:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fax: code or fax app UI Thanks Erwin. So you used the external file as the address list? Jim DeMarco -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 16, 2003 8:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fax: code or fax app UI I'm not that familiar with winfax anymore but 4 years ago I could import txt or DBF files into winfax. So you could save your excel file as a dbf or so... Maybe a recent version already accepts Excel... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, December 16, 2003 2:19 PM To: AccessD (E-mail) Subject: [AccessD] Fax: code or fax app UI I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? TIA, Jim DeMarco Director Product Development Hudson Health Plan ************************************************************************ *********** "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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hshhp.org Tue Dec 16 07:47:08 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Tue, 16 Dec 2003 08:47:08 -0500 Subject: [AccessD] Fax: code or fax app UI Message-ID: <22F1CCD5171D17419CB37FEEE09D5F990173FA2A@TTNEXCHSRV1.hshhp.com> OK thanks. I'd forgotten about the address book. Jim D. -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 16, 2003 8:45 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fax: code or fax app UI I imported an external file in a specific addressbook of winfax. Not a direct link. When I had a new file I deleted all contacts in this addressbook and imported again. Once you know it, a 5 minutes job. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, December 16, 2003 2:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fax: code or fax app UI Thanks Erwin. So you used the external file as the address list? Jim DeMarco -----Original Message----- From: Erwin Craps - IT Helps [mailto:Erwin.Craps at ithelps.be] Sent: Tuesday, December 16, 2003 8:29 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Fax: code or fax app UI I'm not that familiar with winfax anymore but 4 years ago I could import txt or DBF files into winfax. So you could save your excel file as a dbf or so... Maybe a recent version already accepts Excel... Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco Sent: Tuesday, December 16, 2003 2:19 PM To: AccessD (E-mail) Subject: [AccessD] Fax: code or fax app UI I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? TIA, Jim DeMarco Director Product Development Hudson Health Plan ************************************************************************ *********** "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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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". ************************************************************************ *********** _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: 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 wdhindman at bellsouth.net Tue Dec 16 07:52:43 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 16 Dec 2003 08:52:43 -0500 Subject: [AccessD] Fax: code or fax app UI References: <22F1CCD5171D17419CB37FEEE09D5F990173FA26@TTNEXCHSRV1.hshhp.com> Message-ID: <002701c3c3db$e2ca51b0$6101a8c0@dejpolsys> Jim ...WinFax Pro provides a manual import facility that I've used successfully with an Access mdb ...but what used to be a great piece of software has, imnsho, gone south since Symantec bought it and I wouldn't recommend it to anyone currently ...full of minor bugs on XP systems and the user interface is more like Win 3 :( William Hindman There are no easy answers, but there are simple answers. We must have the courage to do what we know is morally right." --Ronald Reagan ----- Original Message ----- From: "Jim DeMarco" To: "AccessD (E-mail)" Sent: Tuesday, December 16, 2003 8:18 AM Subject: [AccessD] Fax: code or fax app UI > I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). > > Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? > > TIA, > > Jim DeMarco > Director Product Development > Hudson Health Plan > > > > > **************************************************************************** ******* > "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". > **************************************************************************** ******* > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jcolby at colbyconsulting.com Tue Dec 16 08:00:25 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 16 Dec 2003 09:00:25 -0500 Subject: [AccessD] OT: IIS / web site Message-ID: For some reason I am unable to modify (using Dreamweaver) the files on my hard disk that represent my web site. I get an Access Denied. Does anyone know if IIS locks files it is serving? I think I turned on IIS to test serving this directory locally over my intranet. John W. Colby www.ColbyConsulting.com From Erwin.Craps at ithelps.be Tue Dec 16 08:03:32 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 15:03:32 +0100 Subject: [AccessD] Fax: code or fax app UI Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFEB@stekelbes.ithelps.local> Sorry to hear that. Winfax was the best fax software I ever used, never understood why they never had a real server version of it. This is why I bougth GFI Faxmaker. I never understood how Winfax could send such high quality crystal sharp faxes at low resolution. I was never able to come even close with GFI. Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Tuesday, December 16, 2003 2:53 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Fax: code or fax app UI Jim ...WinFax Pro provides a manual import facility that I've used successfully with an Access mdb ...but what used to be a great piece of software has, imnsho, gone south since Symantec bought it and I wouldn't recommend it to anyone currently ...full of minor bugs on XP systems and the user interface is more like Win 3 :( William Hindman There are no easy answers, but there are simple answers. We must have the courage to do what we know is morally right." --Ronald Reagan ----- Original Message ----- From: "Jim DeMarco" To: "AccessD (E-mail)" Sent: Tuesday, December 16, 2003 8:18 AM Subject: [AccessD] Fax: code or fax app UI > I have a marketing manager who needs to send a broadcast fax to 200 locations. He has all the names and fax numbers in an Excel sheet. I know I can automate Winfax (which we don't have a copy of at this time but can/will get if need be) and then I can read the names and numbers in via VBA code and send the 200 faxes. What I'm wondering though before we go to work is is there a way to feed a fax app the Excel sheet as the address list? In other words is there a fax app (doesn't need to be Winfax) that will accept a file as the address list? I'm trying to avoid coding if possible (at least for the time being). > > Also, our network guys are hard at work install an app called Faxpress that allows desktop receipt/sending of faxes. Does anyone here have any experience with this product? > > TIA, > > Jim DeMarco > Director Product Development > Hudson Health Plan > > > > > ************************************************************************ **** ******* > "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". > ************************************************************************ **** ******* > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Tue Dec 16 08:21:14 2003 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 16 Dec 2003 09:21:14 -0500 Subject: [AccessD] Fax: code or fax app UI References: <46B976F2B698FF46A4FE7636509B22DF03CFEB@stekelbes.ithelps.local> Message-ID: <004c01c3c3df$dce69c50$6101a8c0@dejpolsys> ...with the exception of their AV software, I've stopped using or recommending Symantec software, even the Norton Utilities ...just too many problems with code that's supposed to solve them, not cause them ...the further away they get from the original Norton products, the worse they seem to get ...the Delrina comm products used to be the best on the market until Symantec bought them out and replaced their development teams ...I'm currently looking at moving off NAV to Trend's AV products although there are problems there as well ...just my opinion, its worth what it cost you :(((( ...would really like to find a quality desktop fax solution that integrates seamlessly with a networked Access mdb ...so far, no luck :( William Hindman There are no easy answers, but there are simple answers. We must have the courage to do what we know is morally right." --Ronald Reagan ----- Original Message ----- From: "Erwin Craps - IT Helps" To: "Access Developers discussion and problem solving" Sent: Tuesday, December 16, 2003 9:03 AM Subject: RE: [AccessD] Fax: code or fax app UI > Sorry to hear that. > Winfax was the best fax software I ever used, never understood why they > never had a real server version of it. > This is why I bougth GFI Faxmaker. > I never understood how Winfax could send such high quality crystal sharp > faxes at low resolution. > I was never able to come even close with GFI. > > Erwin > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > Hindman > Sent: Tuesday, December 16, 2003 2:53 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Fax: code or fax app UI > > Jim > > ...WinFax Pro provides a manual import facility that I've used > successfully with an Access mdb ...but what used to be a great piece of > software has, imnsho, gone south since Symantec bought it and I wouldn't > recommend it to anyone currently ...full of minor bugs on XP systems and > the user interface is more like Win 3 :( > > William Hindman > There are no easy answers, but there are simple answers. We must have > the courage to do what we know is morally right." --Ronald Reagan > > > ----- Original Message ----- > From: "Jim DeMarco" > To: "AccessD (E-mail)" > Sent: Tuesday, December 16, 2003 8:18 AM > Subject: [AccessD] Fax: code or fax app UI > > > > I have a marketing manager who needs to send a broadcast fax to 200 > locations. He has all the names and fax numbers in an Excel sheet. I > know > I can automate Winfax (which we don't have a copy of at this time but > can/will get if need be) and then I can read the names and numbers in > via > VBA code and send the 200 faxes. What I'm wondering though before we go > to > work is is there a way to feed a fax app the Excel sheet as the address > list? In other words is there a fax app (doesn't need to be Winfax) > that > will accept a file as the address list? I'm trying to avoid coding if > possible (at least for the time being). > > > > Also, our network guys are hard at work install an app called Faxpress > that allows desktop receipt/sending of faxes. Does anyone here have any > experience with this product? > > > > TIA, > > > > Jim DeMarco > > Director Product Development > > Hudson Health Plan > > > > > > > > > > > ************************************************************************ > **** > ******* > > "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". > > > ************************************************************************ > **** > ******* > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at pacific.net.hk Tue Dec 16 08:55:34 2003 From: stuart at pacific.net.hk (Stuart Sanders) Date: Tue, 16 Dec 2003 22:55:34 +0800 Subject: [AccessD] Fax: code or fax app UI References: <46B976F2B698FF46A4FE7636509B22DF03CFEB@stekelbes.ithelps.local> <004c01c3c3df$dce69c50$6101a8c0@dejpolsys> Message-ID: <007a01c3c3e4$a947ca40$b1a211d2@bitswshome> Interestingly, a couple of years ago I helped a client "upgrade" from an old version of winfax on a stand-alone PC to a networked version. The new version of winfax (unlike the old) had a hard coded limitation to two fax ports. Where as the older version (version 7 I think) was only limited to your com ports. They had bought special hardware for the old fax server that ended up having to be scrapped. On the AV side (since William mentioned it), I still think their corporate AV offering is OK since you don't have to mess around with proving your subscription is valid or activating it. And it is still a seperate product and close the the original IBM (I think) offering. The single PC/home version on the other hand I have to say sucks badly. I know 3 people who have tried the 2004 version with the so called simple activation and every single one of them had problems. One I spent a good 3 hours just trying to uninstall the damn thing as it wouldn't install or uninstall. Eventually I ended up manually hacking the registry for an hour so that it stopped thinking it was already installed, so that I could install it and then uninstall. Another person (and I wasn't involved in this one) kept having their version say the trial was expired, even after activating a dozen times. In the end she got a refund and removed it. Even today on another system I had to activate the thing 4 times before it would stick, and I don't know how long it will stay this time. Unfortunately, unlike the old days their website is useless about activation problems. All you get is some marketing crap about how this is good for software and bad for pirates. Well bully for them, they've lost me as a client and anyone else I can infuence. Stuart ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Tuesday, December 16, 2003 10:21 PM Subject: Re: [AccessD] Fax: code or fax app UI > ...with the exception of their AV software, I've stopped using or > recommending Symantec software, even the Norton Utilities ...just too many > problems with code that's supposed to solve them, not cause them ...the > further away they get from the original Norton products, the worse they seem > to get ...the Delrina comm products used to be the best on the market until > Symantec bought them out and replaced their development teams ...I'm > currently looking at moving off NAV to Trend's AV products although there > are problems there as well ...just my opinion, its worth what it cost you > :(((( > > ...would really like to find a quality desktop fax solution that integrates > seamlessly with a networked Access mdb ...so far, no luck :( > > William Hindman > There are no easy answers, but there are simple answers. We must have > the courage to do what we know is morally right." --Ronald Reagan > > > ----- Original Message ----- > From: "Erwin Craps - IT Helps" > To: "Access Developers discussion and problem solving" > > Sent: Tuesday, December 16, 2003 9:03 AM > Subject: RE: [AccessD] Fax: code or fax app UI > > > > Sorry to hear that. > > Winfax was the best fax software I ever used, never understood why they > > never had a real server version of it. > > This is why I bougth GFI Faxmaker. > > I never understood how Winfax could send such high quality crystal sharp > > faxes at low resolution. > > I was never able to come even close with GFI. > > > > Erwin > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William > > Hindman > > Sent: Tuesday, December 16, 2003 2:53 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Fax: code or fax app UI > > > > Jim > > > > ...WinFax Pro provides a manual import facility that I've used > > successfully with an Access mdb ...but what used to be a great piece of > > software has, imnsho, gone south since Symantec bought it and I wouldn't > > recommend it to anyone currently ...full of minor bugs on XP systems and > > the user interface is more like Win 3 :( > > > > William Hindman > > There are no easy answers, but there are simple answers. We must have > > the courage to do what we know is morally right." --Ronald Reagan > > > > > > ----- Original Message ----- > > From: "Jim DeMarco" > > To: "AccessD (E-mail)" > > Sent: Tuesday, December 16, 2003 8:18 AM > > Subject: [AccessD] Fax: code or fax app UI > > > > > > > I have a marketing manager who needs to send a broadcast fax to 200 > > locations. He has all the names and fax numbers in an Excel sheet. I > > know > > I can automate Winfax (which we don't have a copy of at this time but > > can/will get if need be) and then I can read the names and numbers in > > via > > VBA code and send the 200 faxes. What I'm wondering though before we go > > to > > work is is there a way to feed a fax app the Excel sheet as the address > > list? In other words is there a fax app (doesn't need to be Winfax) > > that > > will accept a file as the address list? I'm trying to avoid coding if > > possible (at least for the time being). > > > > > > Also, our network guys are hard at work install an app called Faxpress > > that allows desktop receipt/sending of faxes. Does anyone here have any > > experience with this product? > > > > > > TIA, > > > > > > Jim DeMarco > > > Director Product Development > > > Hudson Health Plan > > > > > > > > > > > > > > > > > ************************************************************************ > > **** > > ******* > > > "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". > > > > > ************************************************************************ > > **** > > ******* > > > > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From HARVEYF1 at WESTAT.com Tue Dec 16 08:55:00 2003 From: HARVEYF1 at WESTAT.com (Francis Harvey) Date: Tue, 16 Dec 2003 09:55:00 -0500 Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 Message-ID: Greetings John, As far as I can determine the feature you are referring to was called Net Folders and isn't supported in Outlook 2002. Here's a site with a good summary of the feature as well as a possible alternative: http://www.slipstick.com/outlook/share.htm#netfolders After reading your comment, I only just realized that it would be cool to have my Exchange calendar at work update my home calendar on Outlook 2000, so please share any solution that you decide upon. That's the weird thing about Microsoft products; I sometimes don't realize that I've subconsciously come to believe that things that aren't supported aren't possible. Good luck. Francis R Harvey III WB 303, (301)294-3952 harveyf1 at westat.com > -----Original Message----- > From: John Skolits [mailto:askolits at ot.com] > Sent: Monday, December 15, 2003 8:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 > > > You can actually share your calendar with someone who is not on your > network. > For example, you can sync your calendar on your work PC with > the one in your > home. You essentially do the same thing you said but when you > add a person > to the list, you add an email address. Outlook will send an > email to the > recipient and then they can accept the invitation. Then > whenever either of > your PCs make a change, the other one is updated through hidden email > communications. It really works well, except when outlook > 2002 started. Now > the process doesn't seem to work. > > I'm guessing no one else has ever done this since there > wasn't much of a > response. > > John > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark > S. (Newport News) > Sent: Monday, December 15, 2003 11:26 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] OT: Outlook Sharing Calendar in 2002 > > > John, > > I'm not quite sure what it is you're doing. In Outlook 2002, > the way I have > shared my calendar is to right-click on Calendar, choose > properties, select > the permissions tab, and add persons and set permissions as > needed. To my > knowledge, no email is sent for confirmation. > > > > Mark > > > > -----Original Message----- > From: John Skolits [mailto:askolits at ot.com] > Sent: Monday, December 15, 2003 9:45 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Outlook Sharing Calendar in 2002 > > > Any one ever share their Outlook colander. This always worked > before with > Outlook 2000, but when I try and share with Outlook 2002, > the 'ACCEPT" > feature in the email sent for the confirmation is missing and it says > Outlook has blocked an Active component. Checked around the > web and couldn't > find anything? > > Thanks, > > John > > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From stuart at pacific.net.hk Tue Dec 16 09:00:35 2003 From: stuart at pacific.net.hk (Stuart Sanders) Date: Tue, 16 Dec 2003 23:00:35 +0800 Subject: Fw: [AccessD] Fax: code or fax app UI (Out of the Office) Message-ID: <008e01c3c3e5$5c570600$b1a211d2@bitswshome> bleh ... can we nuke anyone who sets autoreplies to emails lists ----- Original Message ----- From: "Dwylene Garcia" To: Sent: Tuesday, December 16, 2003 10:52 PM Subject: Re: [AccessD] Fax: code or fax app UI (Out of the Office) I will be on a leave of absence until January 5, 2004. Here's a list of resources that may be able to help you in my absence: Microsoft Office help desk: Lisa Pagano x1755 or via email Lisa will be teaching the computer classes and answering help desk calls in my absence. Register or Cancel Computer Classes: To register for any class offered by the Kent Education Department, call x1471. All other issues: If you have an issue that cannot wait for my return in January, please call Lisa Moone in the Education Department x1471 and she will be happy to direct your call to the appropriate person. Have a wonderful holiday season and I will see you next year! 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: [AccessD] 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 accessd at shaw.ca Tue Dec 16 09:52:22 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 16 Dec 2003 07:52:22 -0800 Subject: [AccessD] OT Outlook mail In-Reply-To: <000001c3c3b1$849fd1c0$5373a8c0@local> Message-ID: Hi Robin: Thank very much, I will check this out and get back with the results. Jim PS are we related?...(same last names) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robin Lawrence Sent: Tuesday, December 16, 2003 12:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Outlook mail Jim, I have used OnTrack data recovery with success in the past to recover corrupted PST file that scanpst would not mend. You can get a trial version of EasyRecovery Pro at http://www.ontrack.com/easyrecoveryprofessional/ - this will tell you if your file is repairable - unfortunately if it is you have to fork out for rhe full product. HTH Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: 16 December 2003 01:44 To: Access Developers discussion and problem solving Subject: [AccessD] OT Outlook mail Hi folks: This is an off topic Outlook mail request but it is a real pain. Left the mail receiving on over-night, apparently there must have been some kind of power bounce; not enough to shut the computer down but the end result was that the pst file totally corrupted. The PST file is not yet to th 2GB maximum but it is getting up. Ran the scanpst against a copy and the end results was a couple of directory headers with nothing in them. There are dozens of directories and hundreds of files gone but the file size remains the same. I was wondering if the version of the scanpst file was some older version or if there is another fix program out there. Any help would be greatly appreciated. Jim _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net 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: [AccessD] [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 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Erwin.Craps at ithelps.be Tue Dec 16 09:59:45 2003 From: Erwin.Craps at ithelps.be (Erwin Craps - IT Helps) Date: Tue, 16 Dec 2003 16:59:45 +0100 Subject: [AccessD] System Settings Etc Message-ID: <46B976F2B698FF46A4FE7636509B22DF03CFF0@stekelbes.ithelps.local> Iinventory (old Lan Auditor) is what I use from time to time. http://www.iinventory.com/page.asp?w=33&Ref=6 Erwin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, December 16, 2003 4:49 PM To: accessd Cc: dba-vb Subject: [AccessD] System Settings Etc 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Dec 16 09:59:51 2003 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 16 Dec 2003 16:59:51 +0100 Subject: [AccessD] System Settings Etc In-Reply-To: <26431645.1071589727952.JavaMail.www@wwinf3006> References: <26431645.1071589727952.JavaMail.www@wwinf3006> Message-ID: <4829238052.20031216165951@cactus.dk> Hi Paul For reports try AIDA: http://www.aida32.hu/aida32.php /gustav > 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 From Jeanine.Scott at wellsfargo.com Tue Dec 16 10:06:10 2003 From: Jeanine.Scott at wellsfargo.com (Jeanine.Scott at wellsfargo.com) Date: Tue, 16 Dec 2003 10:06:10 -0600 Subject: [AccessD] Performance Access FE and SQL server BE [help!] Message-ID: <4B406F52C8856849A80477BE6D5B713205738BFA@msgsn55iadsm09.wellsfargo.com> Performance Access FE and SQL server BE [help!] New SQL database. Existing Access97 app connects to the SQL db via a dsnless connection using NT authentication. Application resides on client. There are approx 15 users in the app. The backend data is about a gig. The application is code heavy. Almost all the processes are ADO direct calls. The command and connection timeout are both set at 5000. Great performance for the first 4 days. Last Tuesday the performance started to slow and from then to now we are alternating between acceptable although not great preformance to a crawl speed (7-10 minutes!). I have done the following: 1.) reinstalled MDAC 2.) reinstalled Access 3.) compacted and repaired the front end app 4.) rebuilt the indexes on SQL 5.) had a trace put on to see if there are any locking issues (there are not) 6.) had a network sniffer put on to determine bandwidth utilization. 25% utilization no packets being dropped. 7.) checked utilization on the server (10% utilization most of the time) 8.) ruled out any type of SMS issue (one of the errors pointed me in this direction) Some of the errors we have received have been: * login failed for user [null]: not a trusted sql connection. (this is after they have logged in and recordsets/data has been returned from the server.) * DBNETLIB connection read. recv(). General network error check your network documentation. * timeout expired and then under that is the following "general network error: check your network documentation" Can anyone help? If you have any ideas on anything to do with the SQL server or network please let me know what I should say to the DBA and the network contact. Thank you!!!! From andy at minstersystems.co.uk Tue Dec 16 10:09:12 2003 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 16 Dec 2003 16:09:12 +0000 Subject: [AccessD] System Settings Etc Message-ID: <20031216160909.79D7024EB41@smithers.nildram.co.uk> Paul It may not give you all you need (and it doesn't print) but I use frmSysInfo from ACG and very pretty it is too. If you're interested go to http://ourworld.compuserve.com/homepages/attac-cg/ATip.htm and select 'Free File Library' and it's the first option. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: "Access Developers discussion and problem solving" To: "accessd" Cc: "dba-vb" Subject: [AccessD] System Settings Etc Date: 16/12/03 14:51 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 _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ________________________________________________ Message sent using UebiMiau 2.7.2 From rgilimited at btconnect.com Tue Dec 16 10:11:29 2003 From: rgilimited at btconnect.com (Robin Lawrence) Date: Tue, 16 Dec 2003 16:11:29 -0000 Subject: [AccessD] OT Outlook mail In-Reply-To: Message-ID: <000301c3c3ef$43b65a10$5373a8c0@local> Jim, Well I did have an Uncle Eddie who disappeared off to the States in 1950 or so before I was born, but have no idea wether he went North ... Lets just say the chances are probably small !!! Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: 16 December 2003 15:52 To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT Outlook mail Hi Robin: Thank very much, I will check this out and get back with the results. Jim PS are we related?...(same last names) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robin Lawrence Sent: Tuesday, December 16, 2003 12:49 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT Outlook mail Jim, I have used OnTrack data recovery with success in the past to recover corrupted PST file that scanpst would not mend. You can get a trial version of EasyRecovery Pro at http://www.ontrack.com/easyrecoveryprofessional/ - this will tell you if your file is repairable - unfortunately if it is you have to fork out for rhe full product. HTH Rgds Robin Lawrence -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence (AccessD) Sent: 16 December 2003 01:44 To: Access Developers discussion and problem solving Subject: [AccessD] OT Outlook mail Hi folks: This is an off topic Outlook mail request but it is a real pain. Left the mail receiving on over-night, apparently there must have been some kind of power bounce; not enough to shut the computer down but the end result was that the pst file totally corrupted. The PST file is not yet to th 2GB maximum but it is getting up. Ran the scanpst against a copy and the end results was a couple of directory headers with nothing in them. There are dozens of directories and hundreds of files gone but the file size remains the same. I was wondering if the version of the scanpst file was some older version or if there is another fix program out there. Any help would be greatly appreciated. Jim _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From chizotz at charter.net Tue Dec 16 10:17:10 2003 From: chizotz at charter.net (Ron Allen) Date: Tue, 16 Dec 2003 11:17:10 -0500 Subject: [AccessD] System Settings Etc In-Reply-To: <26431645.1071589727952.JavaMail.www@wwinf3006> Message-ID: Paul, You can try Sandra http://www.sisoftware.co.uk/ or Advisor http://www.belarc.com/Download.html They may do want you need. Ron On Tue, 16 Dec 2003 16:48:47 +0100 (CET) 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 >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com